Re:Java in College: "You might as well be teaching Chinese t...
by kragen on Sunday December 21, 2008 @12:53AM
(#405239)
I count 23 in a PEG language without repetition. Here's an expanded version of your fragment that runs successfully:
And here's a grammar for the subset of Ruby it uses:
I have tested it (in http://github.com/kragen/peg-bootstrap/tree/master/peg.md) and it seems to work for that fragment, although I haven't examined the parse tree to see if it's right. (Obviously the definition of namechar is wrong, and there's no $end token separating statements, and you can't call methods on things that aren't constants or self, etc.)
[ Parent
| on HN ]
There are no comments on this comment yet.