Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » How to get LPG to treat comments as terminals
How to get LPG to treat comments as terminals [message #574256] Wed, 19 November 2008 15:02
Eclipse User
Originally posted by: aker1121.yahoo.com

By looking into how JDT handles JavaDoc I have
started to understand that the parser must produce
terminals for comments. In the DSL we have created
an IDE for comments can occur 'everyware' (like it is
in java, c,c++ etc), so the way forward can not be
to add comments token in the lexical rule file.

Can someone please give me an hint here?
I can see a solution where occurences of whitespace also
could mean a comment, but how do I do that?

I'm fairly new to LPG and DSL so please have oversight
in my lack of understanding for this.


regards,
Aker Br
Previous Topic:LPG question: how to add a method to generated code
Next Topic:LPG question: how to add a method to generated code
Goto Forum:
  


Current Time: Thu Aug 28 19:18:10 EDT 2014

Powered by FUDForum. Page generated in 0.01762 seconds