Compiling a larger grammar takes forever [message #756639] |
Mon, 14 November 2011 09:49  |
Eclipse User |
|
|
|
Hello Guys!
I've converted a large grammar for the Arden Syntax from a SableCC-compatible form to xText. I mainly changed the grammar syntax and solved left-recursion to accomplish this. Also I added names to a couple of rule calls because in several rules, I got the warning "An unassigned rule call is not allowed when the 'current' is already created." .
The code basically is a valid LL(1)-grammar though it seems it is not a valid xCode grammar because of the problem presented below.
Aside from some warnings of the kind "The rule ... may be consumed without object instantiation...", the code validates fine.
But my problem is, when I try to generate the xText Artifacts, the compiler takes a really long time and does not finish. Once it ran for 6 hours, but it did not complete, so I canceled it.
Because the grammar is really big, I attached the project as a .zip file instead of copying it into this post.
Do you have any ideas how I can get the grammar compiled?
Maybe adding further names to rule calls or anything else?
Edit: I know that there are several Java Errors but I think they should be gone after code generation completes.
[Updated on: Mon, 14 November 2011 09:54] by Moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04878 seconds