3 ms·
So far I've used it for several small tools, including some that refactored code for other, larger projects. Grammars really make that pleasant.
by perlgeek 10y ago
So far I've used it for several small tools, including some that refactored code for other, larger projects. Grammars really make that pleasant.
- chubot 10y agoAre 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...