ericmckean / noop

Automatically exported from code.google.com/p/noop
Apache License 2.0
0 stars 0 forks source link

ANTLR prints errors for methods containing "$" #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Run the build, and you'll see errors like this:

error(114):
/Users/alexeagle/IdeaProjects/noop/src/main/antlr/noop/grammar/NoopAST.g:48:2:
attribute is not a token, parameter, or return value: eq

ANTLR expects all "$" chars to denote a replacement token from the
production line - but many Scala methods contain dollar signs in their
compiled names, like $plus$eq for the "+=" method.

The build succeeds anyway, so this is just annoying.

Original issue reported on code.google.com by aeagle22206 on 6 Sep 2009 at 5:17

GoogleCodeExporter commented 9 years ago
Just needed backslashes...

Original comment by aeagle22206 on 11 Sep 2009 at 10:56