Class
Constants
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
Instance Methods
No documentation available
No documentation available
No documentation available

common

No documentation available
No documentation available
No documentation available
No documentation available

The method to fetch next token. If you use do_parse method, you must implement next_token.

The format of return value is [TOKEN_SYMBOL, VALUE]. token-symbol is represented by Ruby’s symbol by default, e.g. :IDENT for ‘IDENT’. “;” (String) for ‘;’.

The final symbol (End of file) must be false.

This method is called when a parse error is found.

ERROR_TOKEN_ID is an internal ID of token which caused error. You can get string representation of this ID by calling token_to_str.

ERROR_VALUE is a value of error token.

value_stack is a stack of symbol values. DO NOT MODIFY this object.

This method raises ParseError by default.

If this method returns, parsers enter “error recovering mode”.

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

For debugging output

No documentation available
No documentation available
No documentation available

Convert internal ID of token symbol to the string.

Exit parser. Return value is Symbol_Value_Stack.

Leave error recovering mode.

Enter error recovering mode. This method does not call on_error.