Hello!
Is it possible to reference the parameter to Parser.parse() in a parser definition? I.e. something like:
const parser = new Parser()
.choice({
tag: "$target.length"
choices: {
2: /* buffer is two bytes long */,
4: /* buffer is four bytes long */,
6: /* buffer is six bytes long */
}
});
Thanks in advance.