Closed paulyoung closed 10 years ago
A note on the interface and my thinking behind why I chose to make it the way it is:
Everything is a function call, even though we could use direct access to objects.
For example:
grammar.conditionalOperator().gte();
could have been:
grammar.conditionalOperator.gte;
where conditionalOperator
could be an object, and gte
a string.
I decided to make everything a function call for the following reasons:
Much cleaner - the peg file was getting out of hand! Your reasoning makes sense
Go ahead and push to master & update the other grammars. You should have access now
This is exactly the same as #8 except that it's from the-gss/ccss-compiler instead of paulyoung/ccss-compiler which will makes things easier for another pull request I'm working on.