Hi,
I am using Dynamic language within which I have a default state and several child states.
Against this dynamic language I have build a parser using the grammar designer.
The problem I have currently is that my parser is not provided the tokens within the child state.
In my case I have a default state that transitions into macro state by MacroStartToken. My parser would read the MacroStartToken and skip all of the MacroStateTokens and continue on to the next token after exiting from macro state.
To illustrate, I have the following...
DefaultStateToken1
DefaultStateToken2
MacroStartToken
MacroStateToken1
MacroStateToken2
MacroEndToken
DefaultStateToken3
DefaultStateToken4
By following the parser in debug mode the code would read in...
DefaultStateToken1
DefaultStateToken2
MacroStartToken
DefaultStateToken3
DefaultStateToken4
My question is, how do I get to the skipped tokens without writer yet another parser to handle the child state?
I am using Dynamic language within which I have a default state and several child states.
Against this dynamic language I have build a parser using the grammar designer.
The problem I have currently is that my parser is not provided the tokens within the child state.
In my case I have a default state that transitions into macro state by MacroStartToken. My parser would read the MacroStartToken and skip all of the MacroStateTokens and continue on to the next token after exiting from macro state.
To illustrate, I have the following...
DefaultStateToken1
DefaultStateToken2
MacroStartToken
MacroStateToken1
MacroStateToken2
MacroEndToken
DefaultStateToken3
DefaultStateToken4
By following the parser in debug mode the code would read in...
DefaultStateToken1
DefaultStateToken2
MacroStartToken
DefaultStateToken3
DefaultStateToken4
My question is, how do I get to the skipped tokens without writer yet another parser to handle the child state?