Replies: 1 comment
-
I have fixed this. The character used for a quote is not an ASCII quote, the character copied from that web page is not a conventional ASCII quote. The quote chars copied from that web page were The one expected by Here's the raw file, it contains some correct and incorrect quotes to show the problem: This seems to suggest a small weakness, perhaps Antlr could, should report that it is seeing non-ASCII characters if the grammar file is pure ASCII, if it is UTF8 it could also warn that incorrect quotes are being used rather than react as it does... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed this blog post to get me started on Windows.
I created the simple
Expr.g4
file as instructed, when I ranantlr Expr.g4
I get:I could see that the test file was UTF-8, I therefore re-saved it as simple ANSI as an experiment and get:
This the text from my
Expr.g4
Does
antlr
only accept ANSI files? If so how does one incorporate Unicode characters into a grammar?Help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions