Skip to content
Snippets Groups Projects
Commit 7073f04d authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed a few warnings.

Rev: lib/modules/Parser.pmod/LR.pmod/module.pmod:1.16
parent 8c0fd38c
Branches
Tags
No related merge requests found
/* /*
* $Id: module.pmod,v 1.15 2007/05/03 09:09:41 grubba Exp $ * $Id: module.pmod,v 1.16 2008/01/09 16:10:29 grubba Exp $
* *
* A BNF-grammar in Pike. * A BNF-grammar in Pike.
* Compiles to a LALR(1) state-machine. * Compiles to a LALR(1) state-machine.
...@@ -228,7 +228,7 @@ class Parser ...@@ -228,7 +228,7 @@ class Parser
/* Priority table for terminal symbols */ /* Priority table for terminal symbols */
static mapping(string : Priority) operator_priority = ([]); static mapping(string : Priority) operator_priority = ([]);
static multiset(mixed) nullable = (< >); static multiset(int|string) nullable = (< >);
#if 0 #if 0
static mapping(mixed : multiset(Rule)) derives = ([]); static mapping(mixed : multiset(Rule)) derives = ([]);
...@@ -704,7 +704,6 @@ class Parser ...@@ -704,7 +704,6 @@ class Parser
//! Rule to add. //! Rule to add.
void add_rule(Rule r) void add_rule(Rule r)
{ {
array(Rule) rules;
int|string symbol; int|string symbol;
/* DEBUG */ /* DEBUG */
...@@ -918,7 +917,7 @@ class Parser ...@@ -918,7 +917,7 @@ class Parser
static void shift_conflict(int empty) static void shift_conflict(int empty)
{ {
/* Ignored */ empty; /* Ignored */
} }
static void handle_shift_conflicts() static void handle_shift_conflicts()
...@@ -950,6 +949,7 @@ class Parser ...@@ -950,6 +949,7 @@ class Parser
static void follow_conflict(int empty) static void follow_conflict(int empty)
{ {
empty; /* Ignored */
} }
static void handle_follow_conflicts() static void handle_follow_conflicts()
...@@ -982,7 +982,6 @@ class Parser ...@@ -982,7 +982,6 @@ class Parser
static int go_through(Kernel state, int item_id, static int go_through(Kernel state, int item_id,
Item current_item) Item current_item)
{ {
int index;
Item i, master; Item i, master;
i = state->item_id_to_item[item_id]; i = state->item_id_to_item[item_id];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment