[antlr-interest] DFA's encoded directly in java bytecodes
Terence Parr
parrt at cs.usfca.edu
Mon Oct 25 11:55:42 PDT 2004
On Oct 25, 2004, at 2:45 AM, Martin Probst wrote:
> Hi,
> I'm pretty sure you know about this but it wasn't mentioned on the
> list so
> I thought I'll drop a line ...
>
>> For the Java target of ANTLR 3.0, I've been concerned about the
>> hideous
>> nature of the code generated for DFA machines. Without a goto
>> instruction in Java, [...]
>
> It is true that there is no *real* goto statement in Java (and the
> reserved keyword isn't used) but there is somewhat of a goto statement
> that looks like this:
> mylabel1:
> for (...)
> for (...)
> if (ragnaroek)
Hi Martin
heh, cool is this the norse "end of the world" term? ;) Thought i read
that term somewhere. ;)
> break mylabel1;
> which is effectively a goto, though it will not work if you want to
> jump
Somebody just mentioned this to me last night (another Martin believe
it or not) and I and not thought of a "one time executed for loop", but
you cannot jump *forward* can you? You can only break out of a
loop...i thought of break first, naturally.
Ter
--
CS Professor & Grad Director, 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!
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