Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about syntax parsing #82

Open
UtOpiiAa opened this issue Mar 9, 2024 · 2 comments
Open

Questions about syntax parsing #82

UtOpiiAa opened this issue Mar 9, 2024 · 2 comments

Comments

@UtOpiiAa
Copy link

UtOpiiAa commented Mar 9, 2024

When I analyse my g4 file, an exception is raised : ANT02 error(156): invalid escape sequence \" 。 I don't know how to handle this problem,so I have to delete this '\"'

My full entry is below :

fragment
ESC_SEQ
: '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
| UNICODE_ESC
| OCTAL_ESC
;

@kaby76
Copy link
Owner

kaby76 commented Mar 9, 2024

You don't need to "escape" a double quote. So instead of '\"' it should be '"'.

@UtOpiiAa
Copy link
Author

UtOpiiAa commented Mar 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants