For Programmers: Free Programming Magazines  


Home > Archive > Compilers > August 2005 > Re: component-based programming and compiler construction









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: component-based programming and compiler construction
Jatin Bhateja, Noida

2005-08-31, 3:58 am

Hi
There is a tool named ANTLR (Another tool for language recognition )
which is helpful in this context.
It provides three fractures .Lexical analyzer, parser and tree walker.
Means once you generate the AST after lexical and parsing phase the you
can traverse this tree and
Do what ever you want with it.

I personally made a small high level language translator using it. Once
on making the AST (abstract syntax tree) I
Traversed this AST and while doing so I associated the code to generate
the different language in its semantic actions.

There are other tolls like TXL , Sable-cc to which provide the same
functionality.

Thanks and Best Regards
Jatin Bhateja
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~
Contributing to the World by creating indispensable value

System Software CoE @ HCLT-Noida
http://www.hcltechnologies.com
Ph. : +91-120-2510701/702 Ext : 3126
FAX : +91-120-2510713
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com