import { type Rule } from "https://deno.land/x/moo@0.5.1-deno.2/mod.ts";
Properties
Moo tracks detailed information about the input for you.
It will track line numbers, as long as you apply the lineBreaks: true
option to any tokens which might contain newlines. Moo will try to warn you if you forget to do this.
Moo doesn't allow capturing groups, but you can supply a transform function, value(), which will be called on the value before storing it in the Token object.
optional
type: TypeMapperUsed for mapping one set of types to another. See https://github.com/no-context/moo#keywords for an example