Class: Message

BNF~ Message

Represents a message of the parser automaton.


new Message(verb, symbol, info)

Creates a new message; see factory methods grammar.accept(), grammar.reduce(), grammar.shift_or_goto(), and parser.observe().

Parameters:
Name Type Description
verb string

one of 'accept', 'error', 'goto', 'reduce', or 'shift'.

symbol module:BNF~T | module:BNF~NT

symbol on which to send message.

info Number | module:BNF~Rule

additional information, if any.

Properties:
Name Type Description
verb string

one of 'accept', 'error', 'goto', 'reduce', or 'shift'.

symbol module:Base~Symbol

symbol on which to message.

info Number | module:BNF~Rule

additional information, if any.

Source:

Methods


toString()

Displays symbol, message, and additional information if any.

Source:
Returns:
Type
string