[antlr-interest] Re: PERL VS ANTLR

cintyram <cintyram at yahoo.com> cintyram at yahoo.com
Mon Jan 27 10:57:49 PST 2003


well , in principle, antlr supports context free , which is a super
set of regular ;
but perl is a programming languge and helps you in doing specific
tasks which might be part of your solution, like making it easy to
read a file, etc .. also the pattern matching and other r.e functions
are very powerful and sufficient for most common tasks; for eg: if all
you have to do is read links out of a file, or simply search and
replace a specific patter with a specific other .. then perl might be
easier to use; 

on the other hand, if you try writing a system like monty's gcc
framework etc. in PERL you will find that it is easier to think and
specify in ebnf ;
so the comparison is actually case by case , and one should not
generalize ;


also with antlr, you generate code to do something, but with perl you
actually formulate the whole solution and code it!! 

so your question for the most part wants to compare apples and oranges.
/e
cheers
ram



--- In antlr-interest at yahoogroups.com, "John D. Mitchell"
<johnm-antlr at n...> wrote:
> Sounds like a troll but what the heck... :-)
> 
> >>>>> "sudip" == sudip mitra <s_mitra8 at y...> writes:
> [...]
> 
> > I was wondering how do Perl and Antlr compare .  Would Antlr be a
> > superset of Perl ?  Or is Perl THE language for text manipulation ?
> > Answers to this question should ignore the learning time .I just
want to
> > know if Antlr can do more than Perl even if its a language blah blah
> > ...!!!
> 
> (A) Perl is a general purpose programming language.
> 
> (B) Perl programs for translation work tend very strongly to be based on
> ad hoc, simplistic (though often ridiculously complex) use of regular
> expressions.
> 
> (C) ANTLR is a grammar-based lexer/parser/walker generator.
> 
> Go wild,
> 	John


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list