3 ms·
Well, you could use perl6's grammar, which is the closest you can get. Comparing it to python is rather funny: http://www.python.org/doc/2.5.1/ref/grammar.txt
by martythemaniak 17y ago
Well, you could use perl6's grammar, which is the closest you can get. Comparing it to python is rather funny:
http://www.python.org/doc/2.5.1/ref/grammar.txt http://www.python.org/doc/2.5.1/ref/grammar.txt
http://svn.pugscode.org/pugs/src/perl6/STD.pm http://svn.pugscode.org/pugs/src/perl6/STD.pm
If you do a wc, perl6 is about 12-20 times the size of python (depending if you use lines or chars). It would be funny to see the per6 graph...
- chromatic 17y ago> [Perl 6] is about 12-20 times the size of python.... The Perl 6 grammar also includes comments and is itself written in Perl 6. A metacircular Python grammar would look different from the existing Python grammar.