Closed GoogleCodeExporter closed 9 years ago
The resulting state table is listed below. It looks Ok except that states 2 and
4
seem to be unreachable.
State table
-----------
state 0
*start* --> . top *eoi* (rule 1)
*default* : Error
DECLARE : shift and goto state 1
state 1
top --> DECLARE . LONG ident (rule 2)
*default* : Error
LONG : shift and goto state 3
state 2
*start* --> top . *eoi* (rule 1)
*default* : Error
*eoi* : shift and goto state 4
state 3
top --> DECLARE LONG . ident (rule 2)
*default* : Error
ident : shift and goto state 5
state 4
*start* --> top *eoi* . (rule 1)
*default* : reduce using rule 1
*eoi* : Accept input
state 5
top --> DECLARE LONG ident . (rule 2)
*default* : reduce using rule 2
Original comment by tsichev...@gmail.com
on 5 Nov 2009 at 1:54
From the documentation:
http://code.google.com/p/lalr-scm/wiki/ParserDefinition
The token should either be a symbol or a record created by the function
make-lexical-token.
Original comment by schemeway
on 5 Nov 2009 at 9:01
The problem was I used the the old token format (name/value pair) which is no
more
suitable in version 2.4 of lalr generator, so this issue shall possible be
closed.
Original comment by tsichev...@gmail.com
on 5 Nov 2009 at 9:01
Original issue reported on code.google.com by
tsichev...@gmail.com
on 5 Nov 2009 at 1:42