Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Infinite loop in UI internal ANTLR parser
Infinite loop in UI internal ANTLR parser [message #1214481] Wed, 27 November 2013 18:19 Go to next message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
Hi, the ANTLR UI parser I get with the attached grammar enters an infinite loop when I call the content assist.
I put trace in the internal parser before calling each DFA and I cycle on rule__Block__Alternatives_2 as shown below, any idea why ? The line number printed by dfa70.getDescription() does not correspond to anything meaningful to me.
Any help would be really appreciated.
The input fragment corresponding to the loop is :

package test.base;
import model.A;

public class Urlu {
public static int zabab = 1;
public static String azba = "aaa";
public Urlu() {
A aa = new A();
int arbou = 1 ;

I should add the resulting parser java class is very huge, 190000 lines.

dfa70 9227:1: rule__Block__Alternatives_2 : ( ( ( rule__Block__Group_2_0__0 ) ) | ( ( rule__Block__ExpressionsAssignment_2_1 ) ) | ( ( rule__Block__ExpressionsAssignment_2_2 ) ) | ( ( rule__Block__ExpressionsAssignment_2_3 ) ) | ( ( rule__Block__ExpressionsAssignment_2_4 ) ) | ( ( rule__Block__ExpressionsAssignment_2_5 ) ) | ( ( rule__Block__ExpressionsAssignment_2_6 ) ) | ( ( rule__Block__ExpressionsAssignment_2_7 ) ) | ( ( rule__Block__ExpressionsAssignment_2_8 ) ) | ( ( rule__Block__ExpressionsAssignment_2_9 ) ) | ( ( rule__Block__ExpressionsAssignment_2_10 ) ) | ( ( rule__Block__ExpressionsAssignment_2_11 ) ) | ( ( rule__Block__ExpressionsAssignment_2_12 ) ) | ( ( rule__Block__ExpressionsAssignment_2_13 ) ) | ( ( rule__Block__ExpressionsAssignment_2_14 ) ) | ( ( rule__Block__ExpressionsAssignment_2_15 ) ) );
dfa70 9227:1: rule__Block__Alternatives_2 : ( ( ( rule__Block__Group_2_0__0 ) ) | ( ( rule__Block__ExpressionsAssignment_2_1 ) ) | ( ( rule__Block__ExpressionsAssignment_2_2 ) ) | ( ( rule__Block__ExpressionsAssignment_2_3 ) ) | ( ( rule__Block__ExpressionsAssignment_2_4 ) ) | ( ( rule__Block__ExpressionsAssignment_2_5 ) ) | ( ( rule__Block__ExpressionsAssignment_2_6 ) ) | ( ( rule__Block__ExpressionsAssignment_2_7 ) ) | ( ( rule__Block__ExpressionsAssignment_2_8 ) ) | ( ( rule__Block__ExpressionsAssignment_2_9 ) ) | ( ( rule__Block__ExpressionsAssignment_2_10 ) ) | ( ( rule__Block__ExpressionsAssignment_2_11 ) ) | ( ( rule__Block__ExpressionsAssignment_2_12 ) ) | ( ( rule__Block__ExpressionsAssignment_2_13 ) ) | ( ( rule__Block__ExpressionsAssignment_2_14 ) ) | ( ( rule__Block__ExpressionsAssignment_2_15 ) ) );
d

[Updated on: Wed, 27 November 2013 18:25]

Report message to a moderator

Re: Infinite loop in UI internal ANTLR parser [message #1218422 is a reply to message #1214481] Fri, 29 November 2013 09:09 Go to previous message
Christian Mauceri is currently offline Christian MauceriFriend
Messages: 22
Registered: May 2012
Location: Paris
Junior Member
It would be nice, at least the infinite loop exception be triggered.
Previous Topic:Howto prevent being sent to the language model file by Eclipse from Java
Next Topic:Formatter on files with different line-endings
Goto Forum:
  


Current Time: Thu Dec 18 13:41:43 GMT 2014

Powered by FUDForum. Page generated in 0.01642 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software