top | item 5072745

(no title)

darrencauthon | 13 years ago

Example? I don't understand what is meant by this.

discuss

order

batiste|13 years ago

sepeth|13 years ago

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.

kyllo|13 years ago

When he says the complex grammar is a barrier to entry for implementation I think he is referring not to the difficulty of writing code in Ruby, but to the difficulty of writing a Ruby interpreter.

wmoxam|13 years ago

What is meant is that Ruby is difficult to parse compared to most languages. By comparison Lisp is easy to parse