parser.rb


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

next_token
yylex() of yacc. This method must returns Array like [token, value]. token is Ruby simbol (Fixnum) or String as default.
EOF is [false, false].
on_error( err_tok, err_val, _values )
yyerror() of yacc.
err_tok is token simbol on error (internal type). err_val is its value. _values is semantic value stack.

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