Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Include * in Xtext grammar
Include * in Xtext grammar [message #1838958] Wed, 10 March 2021 12:59
John Henbergs is currently offline John HenbergsFriend
Messages: 239
Registered: October 2020
Senior Member
Hi all,

I am writing a grammar and I have the following rule:

Person:
name=ID;

When I write the grammar I want to write

John * (name followed by space followed by asterisk, or even without the space).

How could I write that? Because the asterisk is not allowed to be written as an ID.

Thank you!
Previous Topic:Migrating from ANTLR3 to ANTLR4
Next Topic:Guice error in tests after adding Formatter [SOLVED]
Goto Forum:
  


Current Time: Fri Apr 19 22:06:38 GMT 2024

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

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

Back to the top