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

Can syntax depth be supported? #5

Open
Yurii-huang opened this issue Oct 25, 2022 · 1 comment
Open

Can syntax depth be supported? #5

Yurii-huang opened this issue Oct 25, 2022 · 1 comment

Comments

@Yurii-huang
Copy link

Sorry, calling lex one-dimensional table seems to have no effect. It seems a bit silly for reference and definition.
But I see checkstyle-8.43-all.jar about syntax parsing. I don't understand the meaning of this git.

Or is there any original intention?
For example, it enables simple syntax diagnosis

@eddieantonio
Copy link
Member

I do not quite understand what the issue is, exactly. Could you please rephrase?

This package was intended for obtaining:

  1. parse errors from the javac compiler (diagnostics)
  2. the one-dimensional token stream from the lexical analysis stage (scanner) of the javac parser

Note that javac does not use two-dimensional information about the source code while parsing -- just when producing error messages. I think it's silly that parsers do not take advantage of the two-dimensional nature of code!

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