grammars-v4
grammars-v4 copied to clipboard
Grammars written for ANTLR v4; expectation that the grammars are free of actions.
php bug https://github.com/antlr/grammars-v4/assets/143449333/87ebf2f0-df55-4c92-b849-98f501a5fa44
 Grammar error Hello, I am using your Html grammar and the style tag and script are not colored like other tags.
Testing of the TypeScript target is broken. Tests fail with import module problem. ``` $ bash run.sh ../hw-examples/alter_operator.sql Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\msys64\home\Kenne\issues\g4-3890\sql\plsql\Generated-TypeScript-hw\PlSqlLexerBase' imported from C:\msys64\home\Kenne\issues\g4-3890\sql\plsql\Generated-TypeScript-hw\PlSqlLexer.js Did you mean...
There are numerous warnings for the Go and Cpp targets. See https://github.com/antlr/grammars-v4/actions/runs/7183158267 ``` Restore cache failed: Dependencies file is not found in /home/runner/work/grammars-v4/grammars-v4. Supported file pattern: go.sum ... 'antlr4::dfa::Vocabulary::EMPTY_VOCABULARY': Use...
Sample snippet: `local _addr = tostring(_obj).sub(8)` 
Hi, I think this grammar https://github.com/antlr/grammars-v4/blob/master/vba/vba.g4 has a problem with long lines. This obfuscator https://github.com/oriolOrnaque/VBAObfuscator/ creates too long lines. The length limit of a line is 1023 https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/line-too-long I didn't...
I find the rule not working on sql with cube clauses, for example ### Input ```sql GROUP BY a, CUBE(b,c) ``` ### Output `group_clause(group_by_list[group_by_item(a_expr("a"),group_by_item(a_expr("CUBE(b,c)")))])` The problem is the cube clause...
I'm using the ANTLR4 [Java20 grammar](https://github.com/antlr/grammars-v4/tree/master/java/java20), and finding some unexpected behaviour when parsing Java code that uses contextual keywords in a valid contexts, such as in method names - as,...