An NDoc Documented Class Library

ParseMessage Enumeration

Available parse messages.

public enum ParseMessage

Members

Member Name Description
Empty Nothing
TokenRead Each time a token is read, this message is generated.
Reduction When the engine is able to reduce a rule, this message is returned. The rule that was reduced is set in the GOLDParser's ReduceRule property. The tokens that are reduced and correspond the rule's definition are stored in the Tokens() property.
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.
NotLoadedError Before any parsing can take place, a Compiled Grammar Table file must be loaded.
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.
SyntaxError Often the parser will read a token that is not expected in the grammar. When this happens, the Tokens() property is filled with tokens the parsing engine expected to read. To recover: push one of the expected tokens on the input queue.
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 delimiter.
InternalError Something is wrong, very wrong.
CommentBlockRead A block comment is complete. When this message is returned, the content of the CurrentComment property is set to the comment text. The text includes starting and ending block comment characters.
CommentLineRead Line comment is read. When this message is returned, the content of the CurrentComment property is set to the comment text. The text includes starting line comment characters.

Requirements

Namespace: GoldParser

Assembly: GoldParser (in GoldParser.dll)

See Also

GoldParser Namespace