[antlr-interest] RewriteEmptyStreamException after switching to 3.1

Oliver B. Fischer o.b.fischer at gmx.de
Sun Sep 21 17:46:47 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all,

I am currently switching to ANTLR 3.1 since I would like to use the new
AST rewriting feature.

My parser grammar contains the following rule:
options {output    = AST; }
...
myStatementlist
  : statementOrBlock*
  ;

statementOrBlock
  : statement
  | myBlock
  ;

This rule leads to an
org.antlr.runtime.tree.RewriteEmptyStreamException: rule myStatementlist

I think it is because I don't create a tree structure in this rule.

Is this an error in ANTLR I would like to know...

Bye

Oliver

- --
Oliver B. Fischer, Schönhauser Allee 64, 10437 Berlin
Tel. +49 30 44793251, Mobil: +49 178 7903538
Mail: o.b.fischer at gmx.de Blog: http://www.sw-blog.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjW6vYACgkQbyc4N0PdoAzfsgCffQbnOwnJm0QKxdVB654/ZM7Z
N6sAnAuGp6tw2+jLgnxy3Yv74ufw8MiX
=4wFG
-----END PGP SIGNATURE-----


More information about the antlr-interest mailing list