Enumeration ParseMessage
The result of the Parser.Parse method.
Member Summary
|
|
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.
|
|
|
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.
|
|
|
Something is very wrong when this message is returned.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
This message is returned each time a token is read.
|
Property Detail
Accept
public AcceptThe 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 CommentErrorThe 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 InternalErrorSomething is very wrong when this message is returned.
LexicalError
public LexicalErrorThe 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 ReductionWhen 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 SyntaxErrorOften 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 TokenReadThis message is returned each time a token is read.