General purpose language possible [message #856097] |
Wed, 25 April 2012 07:16  |
Eclipse User |
|
|
|
First of all I'm completely new to XText. I've read through the tutorials and toyed around with them in my installation.
My actual goal is to get some syntax coloring for ObjectiveC files. So I thought why not do this properly. I found a grammar for ObjectiveC here:
www.antlr.org/grammar/1212699960054/ObjectiveC2ansi.g
And used ANTLRworks to make the grammar "backtracking free":
gist.github.com/2488942
Then I added in eclipse a new XText project and used the following as my grammar file:
gist.github.com/2488959
Now my problems and questions:
Whenever I make a change to this file a "XText validation" job starts that never finishes. Can I turn this off somehow?
Whenever I run the mwe2 file it starts until it comes to the point "Validating resources" and does not continue. Has this something to do with my aforementioned problem?
Is XText suited at all for general purpose languages? Is this grammar too big, too complex? Is it feasible at all and should I read on? Is there a simpler way for syntax coloring? What would you recommend? Of course features like code completion would be nice in the future but are not necessary now.
Sorry for the links I'm not allowed to use them before I have 25 posts.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04506 seconds