Problem serializing valid file content with expression [message #753376] |
Wed, 26 October 2011 22:36 |
Mary Komor Messages: 61 Registered: July 2009 |
Member |
|
|
Hi,
In my DSL grammar, I have rules for expressions that is modeled after the
expression language used by the compiler for my language. It's actually
pretty standard expression language. However, the
BacktrackingSemanticSequencer seems to be having problems creating the
sequence following these rules and gets stuck when trying to create the
"backtracking failed diagnotic" when serialization fails.
Here's what I tried to do:
1. Programmatically load my resource (XtextResource) containing very minimal
content which has a very simple expression. The load and parse completes
successfully.
2. Then I call the ConcreteSyntaxValidator to make sure that there are no
validation errors.
3. Right away, I call save on the resource with validation switched off. The
save never returns. When I take a look in the debugger, it's stuck in
NfaToGrammar#<ELEMENT, STATE, TOKEN> ELEMENT nfaToGrammar(Nfa<STATE>,
Function<STATE, TOKEN>, IGrammarFactory<ELEMENT, TOKEN>)
I've let it run for a couple of hours and it has still not returned. Any
ideas why the serializer is having problems serializing valid content?
Mary
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03633 seconds