you know what i mean. the stampedes, the constant grazing. sigh.
anyone tried the version of bison that comes with OSX or know anything about it? i'm getting some odd behavior.
to test, i made a very simple grammar which generates/accepts the language consisting of the string "hi there. how are you?" and the parser chokes. is says it expected the token "hi". this is, of course, in fact the first token of the input i feed it.
asking the parser to generate debug strings, i find out that, while my yylex function is correctly identifying the token and returning the index (5) of that token in the generated token table (i used the %token_table declaration), somehow the parser thinks it was passed the index 2, which points to "$undefined".
anyone follow this? have any thoughts? thanks in advance
(oh, i also couldn't get %pure_parser to work correctly, but that's something else.)
[ 12-21-2001: Message edited by: aleph_null ]