[antlr-interest] Re: syn pred implementation

matthew ford Matthew.Ford at forward.com.au
Thu Mar 11 11:52:39 PST 2004


Actually we are talking machine generated code here so error code returns
are OK,
if we can trust the machine to generate the code to check them
matthew
----- Original Message ----- 
From: "lgcraymer" <lgc at mail1.jpl.nasa.gov>
To: <antlr-interest at yahoogroups.com>
Sent: Thursday, March 11, 2004 8:30 AM
Subject: [antlr-interest] Re: syn pred implementation


> I certainly agree on exceptions for errors--that's an ergonomic issue
since error codes are rarely checked--whether they are set in
> errno (C) or are returned from functions--if an operation normally
succeeds.
>
> --Loring
>
>
> --- In antlr-interest at yahoogroups.com, Terence Parr <parrt at c...> wrote:
> > Heh great ideas everybody!
> >
> > I will definitely explore this option.  I like having a single style of
> > code gen that will work on all algol derivatives so exception-based
> > implementations ain't so good.  I just have to look at it some more.
> >
> >  From a grammar user perspective, however, I think exceptions for errors
> > is a major leap over other stuff.  Perhaps we can just make it look
> > like you have exceptions but under the hood it's a bunch of IFs and
> > such.
> >
> > I wonder what LISP and ML will do.  Hmm...
> >
> > Oh, the old C-code generator for PCCTS used longjmp for predicates ;)
> >
> > Ter
> > --
> > Professor Comp. Sci., University of San Francisco
> > Creator, ANTLR Parser Generator, http://www.antlr.org
> > Cofounder, http://www.jguru.com
> > Cofounder, http://www.knowspam.net enjoy email again!
> > Cofounder, http://www.peerscope.com pure link sharing
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>



 
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