[antlr-interest] Re: syn pred implementation
lgcraymer
lgc at mail1.jpl.nasa.gov
Wed Mar 10 13:30:53 PST 2004
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
<*> 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