[antlr-interest] Translation and pattern matching....

Pierre-Etienne Moreau Pierre-Etienne.Moreau at loria.fr
Fri Nov 24 13:10:36 PST 2006


Dear Mathieu,

> One colleague of mine has just pointed me to TOM : http://tom.loria.fr
> which may be of some interest to those of you who want to transform
> antlr trees with pattern matching rules.

you are completely right. Thanks for the advertisement :-)

Tom provides an efficient implementation of AST as well as pattern
matching. 
Attached to this mail you can find 2 examples of tom-antlr v2 usage:
- in the first one, the AST (in Tom representation) is built by the
  parser, such that the AST can be directly matched, traversed, or
  transformed

- in the second example, we use the AST facilities offered by ANTLR. The
  transformation into a Tom AST is done in a second step.

We plan to use the rewrite rule facilities offered by ANTLR v3 to
directly build a Tom AST. Please, contact us if you are interested.

  cheers,
  Pierre-Etienne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example-tom-antlr.tgz
Type: application/x-tar-gz
Size: 2864 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20061124/fc0a1ba6/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20061124/fc0a1ba6/attachment-0001.bin 


More information about the antlr-interest mailing list