◆ transition()
Called when transitioning parsing between two commands.
For example, cmdParserA->transition(parseCtx, cmdA, cmdB, cmdParserB) is called after command B is done parsing to notify command A parser about the transition from command A to command B. This is useful for sequential commands, because at the time command A is being parsed, we don't have any information about command B, so we cannot set the next pointer. Transition method can be used to set the next pointer after command B is available.
- Parameters
-
parseCtx | Parse context. |
oldCommand | Old command (created by this parser). |
newCommand | New command (created by newCommandParser). |
newCommandParser | Command parser which created the new command. |
Reimplemented from MutationOfJB::CommandParser.
The documentation for this class was generated from the following file: