Re: FreeMarker, ANTLR & New FreeMarker Template Notations [was: JetBrains / IntelliJ IDEA v8 to Support FreeMarker!]

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On 2008.04.03., at 2:09, Randall R Schulz wrote:
> On Wednesday 02 April 2008 15:41, Jonathan Revusky wrote:
>>
>> JavaCC pulls
>> tokens off the token source on an as-needed basis. In JavaCC you can
>> even do something like token_source.setState(...) from within the
>> expression parser.
>
> I consider that a far more defensible design, personally.

Although in the particular case of the FreeMarker grammar, we ended up  
with a generated parser that'll pretokenize the whole input file,  
thanks to certain lookaheads; see <http://sourceforge.net/tracker/index.php?func=detail&aid=1851842&group_id=794&atid=100794 
 >. I have no idea whether we can fix this, or is it now an inherent  
consequence of our grammar...

Attila.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.