You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CaretToken used in ANTLRWorks 2 and GoWorks already acts as this type of token used with ANTLR 4. A generalized mechanism for handling this could be implemented by allowing the pushMode operation to push more than one mode in parallel, creating multiple branches of the lexer. For example, a new command could be created with the following form:
pushAnyMode(PossibleModeA, PossibleModeB)
The actual determination of the mode taken during parsing is determined by the prediction algorithm at the parser at the time the potential tokens are examined.
The text was updated successfully, but these errors were encountered:
The
CaretToken
used in ANTLRWorks 2 and GoWorks already acts as this type of token used with ANTLR 4. A generalized mechanism for handling this could be implemented by allowing thepushMode
operation to push more than one mode in parallel, creating multiple branches of the lexer. For example, a new command could be created with the following form:The actual determination of the mode taken during parsing is determined by the prediction algorithm at the parser at the time the potential tokens are examined.
The text was updated successfully, but these errors were encountered: