TXL ANTLR

This is a discussion on TXL ANTLR within the Compilers forums in Theory and Concepts category; Hi I was wondering what the difference is between TXL and ANTLR, are these similar tools. What other tools are there than can be used for help in building compilers besides these and of course LEX/YACC? I am not interested in starting a flame war, just want to know what you people use and which you can recommend. I have looked a bit on ANTLR and it seems quite nice, but was juse wondering if there are other alternatives. tia Anders....

Go Back   Application Development Forum > Theory and Concepts > Compilers

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 09:39 AM
Anders Karlsson
Guest
 
Default TXL ANTLR

Hi

I was wondering what the difference is between TXL and ANTLR, are
these similar tools. What other tools are there than can be used for
help in building compilers besides these and of course LEX/YACC?

I am not interested in starting a flame war, just want to know what
you people use and which you can recommend.

I have looked a bit on ANTLR and it seems quite nice, but was juse
wondering if there are other alternatives.

tia
Anders.
Reply With Quote
  #2  
Old 08-29-2008, 02:55 AM
Jatin Bhateja
Guest
 
Default Re: TXL ANTLR

>I was wondering what the difference is between TXL and ANTLR, are
>these similar tools. What other tools are there than can be used for
>help in building compilers besides these and of course LEX/YACC?


>I am not interested in starting a flame war, just want to know what
>you people use and which you can recommend.


>I have looked a bit on ANTLR and it seems quite nice, but was juse
>wondering if there are other alternatives.


TXL and ANTLR both have following common features

* Both are LL(k) parser generators.
* Both are mainly used for making language translation. Can
generates parse tree and a tree walker.

ANTLR is a popular tool and the code generated is very clean, easy to
understand and edited also.

The fundamental difference b/w ANTLR/TXL and Yacc is the underlined
parsing algorithm. Yacc is an LALR parser
generator.

Hope this gives you some idea.

--
Thanks and Regards
Jatin Bhateja
Reply With Quote
  #3  
Old 08-30-2008, 06:25 AM
Johannes
Guest
 
Default Re: TXL ANTLR

On Aug 29, 8:55 am, Jatin Bhateja <Jatin_Bhat...@mentor.com> wrote:
> TXL and ANTLR both have following common features
>
> * Both are LL(k) parser generators.


That's not quite true. ANTLR is LL(*), meaning it can have an
infinitive lookahead similar to LR parsers. This is done via
generating DFAs for those situations. "The Definitive ANTLR Reference"
contains an in-depth explanation of this technique and is recommend if
you stay with ANTLR.

Johannes
Reply With Quote
  #4  
Old 09-23-2008, 12:56 PM
idbaxter@semdesigns.com
Guest
 
Default Re: TXL ANTLR

On Aug 28, 8:39 am, Anders Karlsson <ander...@gmail.com> wrote:
> I was wondering what the difference is between TXL and ANTLR, are
> these similar tools. What other tools are there than can be used for
> help in building compilers besides these and of course LEX/YACC?
>
> I have looked a bit on ANTLR and it seems quite nice, but was juse
> wondering if there are other alternatives.


[Warning: vendor content ahead. YMMV.]

Semantic Designs offers the DMS Software Reengineering Toolkit.
Provides lexers, parsers, automatic AST construction, control and data
flow analysis machinery, points-to analyzers, surface syntax pattern
matching and pattern instantiation, source-to-source rewrites, and
industrial strength front ends for many lanuages including C, C++,
Java and COBOL.

You can see a comparision of DMS, TXL, ANTLR
and a number of other tools at
http://www.semdesigns.com/Products/D...omparison.html


--
Ira Baxter, CTO
www.semanticdesigns.com

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:22 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.