antlr4
antlr4 copied to clipboard
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
% go get -u github.com/xiazemin/sqlc/cmd/[email protected] github.com/xiazemin/sqlc/cmd/sqlc imports github.com/xiazemin/sqlc/internal/cmd imports github.com/xiazemin/sqlc/internal/compiler imports github.com/xiazemin/sqlc/internal/engine/sqlite imports github.com/antlr/antlr4/runtime/Go/antlr: ambiguous import: found package github.com/antlr/antlr4/runtime/Go/antlr in multiple modules: github.com/antlr/antlr4 v0.0.0-20200209180723-1177c0b58d07 (/Users/xiazemin/go/pkg/mod/github.com/antlr/[email protected]/runtime/Go/antlr) github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210521184019-c5ad59b459ec (/Users/xiazemin/go/pkg/mod/github.com/antlr/antlr4/runtime/!go/[email protected])
# About As the Java API doc on the ANTLR 4 site does not permit searching (it fails with 404) I tried to build the Javadoc from source. This was...
* target information: C++ * smallest possible grammer: https://s3.amazonaws.com/artifacts.opencypher.org/M19/Cypher.g4 (from openCypher website: http://opencypher.org/resources/) * antlr version: 4.10.1 (target bytecode is Java 8) * gcc version: 7.3.0 * gcc compile flags:...
* Merge `getTargetStringLiteralFromString` and `getTargetStringLiteralFromANTLRStringLiteral` into `getTargetStringLiteralFromAntlrGrammar` since they do almost the same. `getTargetStringLiteralFromAntlrGrammar` has `keepEscaping` paramter. If it's `true`, then escaped chars are being escaped in target code (it's...
This PR adds explicit [permissions section](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions) to workflows. This is a security best practice because by default workflows run with [extended set of permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) (except from `on: pull_request` [from external...
Adds user contributed basic tree walker to the v4 code base
fix: #3875 Extremely poor performance on poorly written grammars The problem was once again a poorly written hash function, which caused ATN config sets to hash poorly. The poor grammar...
PR Summary 1. The [ANTLR grammar for Cypher](https://opencypher.org/resources/) contains a Token named `NULL` which is a reserve word in `Cpp`. This PR adds `NULL` to the list of reserve words...
All ts tests pass locally. Submitting a PR to ensure nothing else is broken, and try ts CI. Also fixes #3868 tsc generates tons of warnings which I need to...