Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » 3rd Comment Terminal
3rd Comment Terminal [message #642993] Fri, 03 December 2010 15:21
Carl Wannheden is currently offline Carl WannhedenFriend
Messages: 6
Registered: January 2010
Junior Member
Hi all,
I'm trying to define a third type of Comment in addition to SL_COMMENT
and ML_COMMENT in my grammar. My approach so far has been

- declare the MY_COMMENT terminal rule in my grammar
- bind a custom IHiddenTokenHelper with an isComment(AbstractRule)
returning true for any of my 3 comment rules in the runtime module
- adding hidden(NL, WS, ML_COMMENT, MY_COMMENT, SL_COMMENT) in my grammar

But so far, I only get parsing errors on MY_COMMENT rule.

Does anybody have experience with more than two comment terminals?

/Carl
Previous Topic:Headless RCP app with xtext?
Next Topic:having trouble with the new outline api
Goto Forum:
  


Current Time: Thu Apr 18 02:21:47 GMT 2024

Powered by FUDForum. Page generated in 0.01840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top