[antlr-interest] another lookahead issue with TokenStreamRewriteEngine

SainTiss saintiss at arklinux.org
Thu Feb 5 11:30:19 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 05 February 2004 20:23, Terence Parr wrote:
> >
> > so the newline and "final" have been read as well, even though they
> > obviously
> > aren't part of the first statement. Is there a way to get rid of this?
> > Preferrably a way to make sure no tokens are read beyond the actual
> > statement?
>
> Would adding EOF to the end of statementCOmplete help?
>

Not in my case, no... I'm parsing 1 string, which contains several statements. 
EOF would work if I could parse the statements separately, but to do that I'd 
need to know where each new statement begins, for which I'd need a parser in 
the first place... So that'd be a vicious circle...

Thanks,

Hans

- -- 
Ark Linux - Linux for the Masses (http://arklinux.org)

Capitalism: 
You don't have any cows. The bank will not lend you money to buy cows, 
because you don't have any cows to put up as collateral.

Representative Democracy:
You have two cows. Your neighbors pick someone to tell you who gets the milk. 

In a world without walls and fences, who needs windows and gates?

Hans Schippers
2LIC INF
UA 2003-2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAIpnLXlnUYIbmLOQRAvLlAJ4grlrykXIjcPOf5DXba+S3NA4ojwCggYPP
2LAFroqIaj0cIKqud/ZujtM=
=t3r/
-----END PGP SIGNATURE-----



 
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