Search code examples
ruby-on-railscompiler-constructionnlpgrammarformal-languages

Where to find formal grammar for Ruby on Rails, Cobal, and VSL?


Does anyone know where I can get the formal grammar for these languages especially Ruby on Rails? I'm interested in looking at how the language is processed.

Thanks


Solution

  • Ruby on Rails is a framework, not a language. It's written in the Ruby language. You can get the source for Ruby at http://www.ruby-lang.org/en/downloads/. It uses lex and yacc for parsing; as far as I know, that code's contained in parse.y.