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

tsql grammar contains symbol conflicts for PHP target #2973

Open
kaby76 opened this issue Dec 22, 2022 · 1 comment
Open

tsql grammar contains symbol conflicts for PHP target #2973

kaby76 opened this issue Dec 22, 2022 · 1 comment

Comments

@kaby76
Copy link
Contributor

kaby76 commented Dec 22, 2022

After working on cleaning up the PHP target runtime, I am going through and testing the target on selected grammars in this repo. Unfortunately, the Antlr tool generates name conflicts whenever there are names that are identical when not considering case. Therefore, a lexer rule symbol "FooBar" will conflict with parser rule symbol "foobar" because "FooBar".ToLower() == "foobar".ToLower().

Therefore, The tsql grammar won't work with PHP because of symbols CLUSTERED/clustered, OPTION/option, ALGORITHM/algorithm, TIME/time.

The grammar also has conflicts for EMPTY and TOSTRING, both are which are symbol conflicts with the runtime.

@KvanTTT
Copy link
Member

KvanTTT commented Dec 22, 2022

Linked issue in the ANTLR repository: antlr/antlr4#3462

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

No branches or pull requests

2 participants