[Xtext] Generated Antlr parser artifacts [message #638548] |
Thu, 11 November 2010 10:44  |
Eclipse User |
|
|
|
Hello, I am still struggling with calling Xtext/Xpand from a Java project.
The Xtext editor is working fine with the grammar I defined. I exported the Xtext project as a plugin and added the Xtext Nature to my Java project.
Now, I would like to programmatically parse the files containing my language, for example, to check if it is correct or to get the names of the entities and save them in a data base. For example, if the file containg code written in my DSL looks like:
entity name_1 (
)
entity name_2 (
)
I would like to get "name_1" and "name_2" in my java code.
I have been looking to the generated classes in myproject.parser.antlr and I am wondering if maybe a class like MyprojectParser could be used for my purposes.
Thank you very much for your help.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03605 seconds