import 'parsnip-ts/token'
Create a parser for extracting a token. Ignores anything matched by ignore
ignore
const token = createToken(whitespace) const ifKeyword = token(/if/y) keyword.matches(' if ') // true
Parser that matches content that should be ignored
Generated using TypeDoc
Create a parser for extracting a token. Ignores anything matched by
ignore
const token = createToken(whitespace) const ifKeyword = token(/if/y) keyword.matches(' if ') // true