Parse Message Constants

 

 

Message Numeric Value Details
gpMsgTokenRead 1 Each time a token is read, this message is generated.
gpMsgReduction 2 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.
gpMsgAccept 3 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.
gpMsgNotLoadedError 4 Before any parsing can take place, a Compiled Grammar Table file must be loaded.
gpMsgLexicalError 5 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.
gpMsgSyntaxError 6 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.
gpMsgCommentError 7 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.
gpMsgInternalError 8 Something is wrong, very wrong.
gpMsgCommentBlockRead 9 Added in version 2.4.

This message is returned anytime a block comment is read by the system. When the system is reading a block comment, line comments are  completely ignored. The content of the block comment is stored in the CurrentComment( ) method.

gpMsgCommentLineRead 10 Added in version 2.4.

Each time the system reads a line comment, this message is returned. The content of the line comment is stored in the CurrentComment( ) method.