« Prev 4.6 Specifying a lexer pattern - the pattern statement | Table of Contents | Next » 4.8 Regular expression syntax |
drop
statementA drop
statement can be used to specify a lexer pattern that when matched
should result in the matched input being dropped and lexing continuing after
the matched input.
A common use for a drop
statement would be to ignore whitespace sequences in
the user input.
Example:
drop /\s+/;
See also Regular expression syntax.
« Prev 4.6 Specifying a lexer pattern - the pattern statement | Table of Contents | Next » 4.8 Regular expression syntax |