Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Why are ANTLR files built in two different packages(Xtext ANTLR files built in two different packages)
Why are ANTLR files built in two different packages [message #1746056] Thu, 20 October 2016 22:01 Go to next message
Larry Cousin is currently offline Larry CousinFriend
Messages: 15
Registered: September 2016
Junior Member
I am very novice with Xtext. I have observed, however, that when I "Generate Xtext Artifacts" for my <DSL>.xtext file that what appears to be the same ANTLR files are built in <DSL path>.src-gen.<DSL path>.parser.antlr.internal (and ...parser.antlr.lexer [because I am bactracking the lexer]). These same files are also in <DSL path>.ide.src-gen.<DSL path>.ide.contentassist.antlr.internal (and ... ide.contentassist.antlr.lexer).

Given the name "contentassist" in the path, I'm sure this has samething to do with that. Can someone tell me why these ANTLR files are duplicated and what "contentassist" is?

Re: Why are ANTLR files built in two different packages [message #1746061 is a reply to message #1746056] Fri, 21 October 2016 03:13 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10434
Registered: July 2009
Senior Member
The content assist parser calculates possible follow up elements to be able to give content assist
The runtime parser calculates a ast

They do different things => two parsers
Previous Topic:Please use the TypeReference(packageName, className)
Next Topic:Dealing with Eclipse XText syntax errors
Goto Forum:

Current Time: Sun Apr 30 15:33:27 GMT 2017

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

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