Posted 18 years ago
by Russell Mason

Hi
In the documentation there is an example of an implementation for PerformLexicalParse.
This has a comment to 'back up certain number of tokens ...'. In the Simple language I can't see anything that does this and the parsing method (GetNextTokenLexicalParseData) seems to come from the MergableLanguage (through IMergableLanguageParser). I am trying to derive from SyntaxLanguage where I think I have to do more of this myself than the MergableLanguage.
Is there some kind of default implementation of this 'backing up' in MergableLanguage, if so is there a helper or code you provide to show a basic implementation? By default is this likely to just back track to the last whitespace character?
Thanks
Russell Mason
In the documentation there is an example of an implementation for PerformLexicalParse.
This has a comment to 'back up certain number of tokens ...'. In the Simple language I can't see anything that does this and the parsing method (GetNextTokenLexicalParseData) seems to come from the MergableLanguage (through IMergableLanguageParser). I am trying to derive from SyntaxLanguage where I think I have to do more of this myself than the MergableLanguage.
Is there some kind of default implementation of this 'backing up' in MergableLanguage, if so is there a helper or code you provide to show a basic implementation? By default is this likely to just back track to the last whitespace character?
Thanks
Russell Mason