[antlr-interest] Regression in ANTLRWorks 1.3 tree view pane

David-Sarah Hopwood david-sarah at jacaranda.org
Sun Sep 27 15:28:14 PDT 2009


On upgrading to ANTLRWorks 1.3, there is a regression in the display
of the tree view of the grammar in the left-hand pane:

 - all productions are shown under the same label, which is the first
   label that has any productions.
 - the last character of each label up to that point is truncated.

This can be reproduced with a very simple grammar file:

lexer grammar Test;

// $< One
// $< Two
A : 'a';
// $< Three
B : 'b';
// $>
C : 'c';
// $>
D : 'd';
// $>

resulting in the tree

- On
  - Tw
    + A
    + B
    + C
    + D

rather than the expected

- One
  - Two
    + A
    - Three
      + B
    + C
  + D

This is on Vista SP2, in case it matters.

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com



More information about the antlr-interest mailing list