Enumeration ParseMessage

The result of the Parser.Parse method.

Member Summary
Accept
The engine will returns this message when the source text has been accepted as both complete and correct. In other words, the source text was successfully analyzed. 
CommentError
The parser reached the end of the file while reading a comment. This is caused when the source text contains a "run-away" comment, or in other words, a block comment that lacks the end-delimiter. 
InternalError
Something is very wrong when this message is returned. 
LexicalError
The tokenizer will generate this message when it is unable to recognize a series of characters as a valid token. To recover, pop the invalid token from the input queue using Parser.PopInputToken
Reduction
When the engine is able to reduce a rule, this message is returned. The rule that was reduced is set in the Parser.Reduction property. The tokens that are reduced and correspond to the rule's definition can be acquired using the GetToken or GetTokens methods. 
SyntaxError
Often the parser will read a token that is not expected in the grammar. When this happens, you can acquire the expected tokens using the GetToken or GetTokens methods. To recover, push one of the expected tokens onto the input queue. 
TokenRead
This message is returned each time a token is read. 

Property Detail

Accept

public Accept
The engine will returns this message when the source text has been accepted as both complete and correct. In other words, the source text was successfully analyzed.

CommentError

public CommentError
The parser reached the end of the file while reading a comment. This is caused when the source text contains a "run-away" comment, or in other words, a block comment that lacks the end-delimiter.

InternalError

public InternalError
Something is very wrong when this message is returned.

LexicalError

public LexicalError
The tokenizer will generate this message when it is unable to recognize a series of characters as a valid token. To recover, pop the invalid token from the input queue using Parser.PopInputToken.

Reduction

public Reduction
When the engine is able to reduce a rule, this message is returned. The rule that was reduced is set in the Parser.Reduction property. The tokens that are reduced and correspond to the rule's definition can be acquired using the GetToken or GetTokens methods.

SyntaxError

public SyntaxError
Often the parser will read a token that is not expected in the grammar. When this happens, you can acquire the expected tokens using the GetToken or GetTokens methods. To recover, push one of the expected tokens onto the input queue.

TokenRead

public TokenRead
This message is returned each time a token is read.