parser.rb


These are important methods which you must implement in your parser code (inner).

next_token
yylex in yacc. This method must returns Array like [token, value]. token is Ruby simbol (Fixnum) or String, as default.
on_error( err_tok, err_val, _tokens, _values, _states )
err_tok is token simbol on error, err_val is its value. Rest is system stacks.

Copyright(c) 1998-1999 Minero Aoki <aamine@dp.u-netsurf.ne.jp>