Greetings,

> Lemon does not have any feature that will provide the application with  
> access to the follow-set.  You could perhaps tease that informatino  
> out of the "*.out" output file using a script, though.

Capital idea! That does indeed do the trick. It's straightforward to 
extract the terminals that can be shifted in each state from the .out 
file and thus generate a mapping from states to follow sets.

Afterwards, the current state can be queried from %syntax_error as 
yypParser->yystack[yypParser->yyidx].stateno (not part of the public 
interface of course, but it works), and thus a nice error message can be 
generated from the previously created collection of follow sets.

Thank you very much,
-- Markus Thiele
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to