News for hackers. Stuff that matters.
Re:Parsing in JavaScript: all the tools and libraries you ca... by fjfaase on Tuesday May 25, 2021 @02:42AM (#27273599)
I wrote something similar in JavaScript. You need something like:

function as_and_bs() { return parse_text("aaaaabbbaaaabb", make_grammar( parse_text("root : (\"a\" SEQ \"b\" SEQ)SEQ OPT", iparse_grammar))) }

The code can be found at https://github.com/FransFaase/ParserWorkshop/

There are no comments on this comment yet.