You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am now writing every port for the PostgreSQL grammar. But, I'm finding that the grammar is not Target Agnostic
In PostgreSQLLexer.g4, checkLA('-') cannot be target agnostic because not all languages can automatically cast a character literal (or string literal) '-' to an integer (e.g., JavaScript).
All actions in the .g4's must be parameterless method calls.
The text was updated successfully, but these errors were encountered:
kaby76
added a commit
to kaby76/grammars-v4
that referenced
this issue
Nov 13, 2024
* Fixes for #4321, #4322
* Update README.md
Warnings fixed.
* Fixes for #4324, adding ports.
* Fix Antlr4ng, CSharp, and Java ports. Change Deque to Stack to clarify port code.
* Add TypeScript port, fix symbol conflict for TypeScript port.
The TypeScript port generates `any_name._list()` accessor method for alts with multiple `any_name` references. This conflicts with the symbol reference `any_name_list`, which is another production.
* Fix Cpp target.
* Try to get Mac to behave.
* Not sure what happened. Try again.
* Try3.
* Add Dart target.
* Add Python3 target.
* Add JavaScript port.
* Fix Go port.
* Add blurb on target agnostic to readme.
* Clean up. Force rebuild of Macos Java.
I am now writing every port for the PostgreSQL grammar. But, I'm finding that the grammar is not Target Agnostic
In PostgreSQLLexer.g4, checkLA('-') cannot be target agnostic because not all languages can automatically cast a character literal (or string literal)
'-'
to an integer (e.g., JavaScript).All actions in the .g4's must be parameterless method calls.
The text was updated successfully, but these errors were encountered: