News for hackers. Stuff that matters.
Re:Ruby mistakes by batiste on Thursday January 17, 2013 @09:48AM (#5072887)
Re:Ruby mistakes by ch0wn on Thursday January 17, 2013 @11:52AM (#5073585)
One of my favorite things about Python 3 is that the grammar actually got smaller: http://docs.python.org/3/reference/grammar.html

It's only three lines, but still.

Re:Ruby mistakes by sepeth on Thursday January 17, 2013 @10:53AM (#5073268)
It seems that Ruby uses GNU Bison:

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?vi...

It is not so clear for documentation purposes, but grammar rules are in between 850-4988 lines.

File/Line size does not tell much about Grammar complexity, but anyway, the whole parse.y file is bigger than cpython/Parser directory. BTW, Ruby's parse.y file is just the input to Bison.