« Prev 4.5 Defining tokens without a matching pattern - the tokenid statement | Table of Contents | Next » 4.7 Ignoring input sections - the drop statement |
A pattern statement is used to define a lexer pattern that can execute user code but may not result in a matched token.
Example:
/foo+/ << writeln("saw a foo pattern"); >>
This can be especially useful with Lexer modes.
See also Regular expression syntax.
« Prev 4.5 Defining tokens without a matching pattern - the tokenid statement | Table of Contents | Next » 4.7 Ignoring input sections - the drop statement |