hello list,

My name is Markus Liedl. I'm working on an alternative Ruby grammar.

It is currently only working within Emacs, but I intend to write  a grammar 
interpreter in Ruby, so one can use Ruby as a host language instead of Emacs 
Lisp.

Have a look and tell me what you think about it.

It's hosted on rubyforge, project name ruby-tp-dw-gram; you can check it out via

  svn checkout svn://rubyforge.org/var/svn/ruby-tp-dw-gram

See below for the top of the README file.

thanks,
Markus Liedl








                   Ruby Top Down Grammar

This project tries to implement a reusable top-down grammar of
the Ruby language.

It may be used to
  * bootstrap a pure ruby vm
  * advanced syntax highlighting in emacs

This Ruby grammar can be classified as a non-exhaustively
backtracking, non-deterministic top-down parser.

It is close to a "Parsing expression grammar", although it uses two features, 
modes and marks, which make me unsure whether this
categorization fits.

The ruby grammar is written in a parsing specific language in Lisp syntax. This 
decision was made because it is simple to parse. An implementation of this 
definition language takes a few hundred lines (well, in elisp).  This 
facilitates bootstraping.

Another goal was to avoid 'semantic actions' written in an arbitrary language. 
This is necessary for seriously targetting multiple host languages.

...
_______________________________________________
Rubygrammar-grammarians mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians

Reply via email to