#6 Part of the optional node is erronously dupplicated

open
nobody
None
5
2012-10-08
2010-04-13
Per-Anders Staav
No

This is probably a bug with the same root cause as bug 2953949, but I add a report for it still since I believe this variation to produce the error give more information about the issue.

The EBNF production
ConditionalExpression ::= ConditionalOrExpression ( "?" Expression ":" Expression )?
gives an picture with an erronous extra mandatory Expression at the end.

The thing to observe is that it is not the whole optional part that is repeated, but just the last Expression. Hopefully this information can make it more simple to track down the problem.

Discussion

  • Result png from ConditionalExpression

     
  • Edgar Espina
    Edgar Espina
    2010-04-24

    Hi,

    I reported the previous bug and also solve it :D. Unfortunately there isn't any available version for download :(, you need to check out the source code and create a jar. Please note that the head version is very different from what you see so far. Clapham is generating this kind of document now:
    http://antlrv3ide.sourceforge.net/resources/ANTLRv3/ANTLRv3.html

    Thank you,

    edgar