| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
|
#2
| |||
| |||
| >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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.