import { type Rule } from "https://deno.land/x/leac@v0.6.0/leac.ts";
Lexing rule.
Base rule looks for exact match by it's name.
If the name and the lookup string have to be different
then specify str
property as defined in StringRule.
Properties
Matched token won't be added to the output array if this set to true
.
(Think twice before using this.)
optional
push: LexerSwitch to another lexer function after this match, concatenate it's results and continue from where it stopped.