[antlr-interest] Re: Syntatic predicates...

Ric Klaren klaren at cs.utwente.nl
Tue May 18 15:15:57 PDT 2004


Hi,

On Tue, May 18, 2004 at 10:06:48PM -0000, izniegoed wrote:
> (gah deleted the mail from my default mailer so praying the html
> interface won't blow up in my face :/ )
> 
> --- In antlr-interest at yahoogroups.com, Tom Verbeure <hombre at g...> wrote:
> > To put things in context: I am trying to convert the parts of the bnf
> > description of the VHDL language into ANTLR. The BNF is full of
> > ambiguities. I've used a bunch of existing ANTLR and non-ANTLR
> > grammars for VHDL and ADA as a guide, but still like to redo parts
> > myself just to get a full grasp of how to build a decent parser *and*
> > to learn features of the language. (Writing a parser force me to
> > explore language constructs that, before, I never considered to be
> > sematically correct, even after reading the official language
> > specification.)
> 
> Are you familiar with the CCTB based VHDL parser/lexer/frontend listed
> here:
> 
> http://www.vhdl.org/vi/comp.lang.vhdl/FAQ3.html
> 
> Which refers to a ftp here:
> 
> ftp://ftp.cs.utwente.nl/pub/src/VHDL/
> 
> CCTB or cocktail is a LL(1) parser tool with so the grammar might be
> interesting to look at.. (although the treeparser/transformer parts
> might not translate well to antlr)
> 
> CCTB's syntax is not that far away from antlr's.

I suddenly recall that it might be using the lalr parser of the toolbox and
not the ll(1) parser.. so this might not be interesting to look at .. :/

Cheers,

Ric
--
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755  ----
-----+++++*****************************************************+++++++++-------
     Human beings, who are almost unique in having the ability to learn
   from the experience of others, are also remarkable for their apparent
         disinclination to do so. --- Douglas Adams, Last Chance to See



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list