grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

tsql grammar contains symbol conflicts for PHP target

Open kaby76 opened this issue 2 years ago • 1 comments

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.

kaby76 avatar Dec 22 '22 12:12 kaby76

Linked issue in the ANTLR repository: https://github.com/antlr/antlr4/issues/3462

KvanTTT avatar Dec 22 '22 13:12 KvanTTT