1

Do you have any idea why my parser is not generated when I create an empty grammar? (and yes I have saved the file)

I wish to integrate antlr in Eclipse. I installed Eclipse indigo 3.7, the required updates (GEF 3.2, ZEST 1.3, DLTK 3.0), then installed the antlr IDE plugin v2.1.2 and antlr3.4.

When putting everything together I realised that no .java files(lexer/parser) was generated from my defined grammar (combined/ lexer+parser).

It definitely has nothing to do with the grammar code itself.. it must be a mistake in the setting up or an annoying bug.

Running Eclipse indigo 3.7 Antlr 3.4

-------FIXED NOW------------ I definitely had a working grammar. I managed to fix it by using an older version. (antlr 3.2 and eclipse 3.5.1)

Vlad Otrocol
  • 2,952
  • 7
  • 33
  • 55
  • 1
    Is your grammar correct, no left recursion...., if yes then try to use an older version of ANTLR, 3.3 maybe. – sm13294 Apr 25 '12 at 11:25

1 Answers1

0

This does work with Indigo, IDE 2.1.2, and antlr 3.4 if the configuration is right. See my answer here.

Community
  • 1
  • 1
cb4
  • 6,689
  • 7
  • 45
  • 57