You could  try to increase the time-out, I think it was called 
-Xconversiontimeout. In my grammar, I have to set it to 20 seconds until 
it works without error. It does not generate huge code, it just takes 
some time to find out to do nothing.

Andreas

[email protected] schrieb:
> thanks, now I got different errors (warnings I guess):
>
> error(10):  internal error:
> org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1242): could not
> even do k=1 for decision 8; reason: timed out (>1000ms)
>
>
> error(10):  internal error:
> org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1242): could not
> even do k=1 for decision 69; reason: timed out (>1000ms)
>
>
> error(10):  internal error:
> org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1242): could not
> even do k=1 for decision 126; reason: timed out (>1000ms)
>
> and so on....
>
> But the .java file is generated.
>
> Next? Increase the timeout? :)
>
>    Zoli
>
>   
>> I know this is not a very educating answer :-) But what about increasing
>> the stacksize of the JVM?
>>
>> Andreas
>>
>> [email protected] schrieb:
>>     
>>> Helo!
>>>
>>> I want to create a Tree Grammar from my "normal" grammar (with the
>>> method
>>> described in the ANTLR book), and after I corrected some obvious errors
>>> (remove AST operators, etc.) I got this one:
>>>
>>> Exception in thread "Thread-5" java.lang.StackOverflowError
>>>     at java.util.AbstractList$Itr.<init>(Unknown Source)
>>>     at java.util.AbstractList$ListItr.<init>(Unknown Source)
>>>     at java.util.AbstractList.listIterator(Unknown Source)
>>>     at java.util.AbstractList.listIterator(Unknown Source)
>>>     at org.antlr.misc.IntervalSet.add(IntervalSet.java:104)
>>>     at org.antlr.misc.IntervalSet.add(IntervalSet.java:93)
>>>     at org.antlr.misc.IntervalSet.of(IntervalSet.java:74)
>>>     at org.antlr.misc.IntervalSet.complement(IntervalSet.java:231)
>>>     at org.antlr.misc.IntervalSet.subtract(IntervalSet.java:264)
>>>     at org.antlr.analysis.DFAState.addReachableLabel(DFAState.java:343)
>>>     at org.antlr.analysis.DFAState.addNFAConfiguration(DFAState.java:254)
>>>     at
>>> org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:633)
>>>     at
>>> org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:756)
>>>     at
>>> org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:709)
>>> ....
>>> and so on.
>>>
>>>
>>> What could be wrong? How can I "debug" this kind of errors?
>>>
>>> Thanks,
>>>    Zoli
>>>
>>>
>>>
>>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>>> Unsubscribe:
>>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>>>
>>>       
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe:
>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>>
>>     
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>   


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to