2 ms·
Are any of those open source? I'd like to see grammars used in "real" code, not just examples.
by chubot 10y ago
Are any of those open source? I'd like to see grammars used in "real" code, not just examples.
- colomon 10y agoReal grammar [1], regularly used by me, at least. It may not be the best way of doing things today, it was written three or four Perl 6 compilers ago. But it works on the latest Rakudo release. [1] https://github.com/colomon/ABC/blob/master/lib/ABC/Grammar.pm https://github.com/colomon/ABC/blob/master/lib/ABC/Grammar.p... Edited to add: I think originally based it on https://web.archive.org/web/20120201072612/http://www.norbeck.nu/abc/bnf/abc20bnf.htm https://web.archive.org/web/20120201072612/http://www.norbec...