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

Cpp ANTLRInputStream cannot handle input with \x00 in the middle #4773

Open
YT-SUN97 opened this issue Feb 14, 2025 · 1 comment
Open

Cpp ANTLRInputStream cannot handle input with \x00 in the middle #4773

YT-SUN97 opened this issue Feb 14, 2025 · 1 comment

Comments

@YT-SUN97
Copy link

YT-SUN97 commented Feb 14, 2025

As described, the C++ code generated from ANTLR 4.13 uses a string structure when loading input. However, there is \x00 in the middle of the input in my use case, which will be regarded as a string termination and cause the parsing error. My questions are as follows

  1. Is there a proper way to solve this?
  2. if the only way is to override the input stream interface (e.g., use vector/bytes to replace string), is there any example I can follow?

Many thanks if you can provide any help.

@sexyjinn1010
Copy link

Your article has proven useful to me.It’s very informative and you are obviously very knowledgeable.해외문자 최하가격

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