bramp / antlr4-grammars Goto Github PK
View Code? Open in Web Editor NEWPrecompiled Go versions of most of the grammars on https://github.com/antlr/grammars-v4.
License: Apache License 2.0
Precompiled Go versions of most of the grammars on https://github.com/antlr/grammars-v4.
License: Apache License 2.0
This repo has been stop updating since nearly two years ago. Any plan for catching up?
The https://github.com/antlr/grammars-v4 was last updated "22 hours ago" as we speak.
Hi there
I have ANTLR grammars for the 1C language, and I'm interested in contributing to the project. Could you please outline the necessary steps for becoming a contributor? I'm willing to attempt adding support for this language if you can provide a brief overview of what needs to be done.
Looking forward to your guidance.
I fixed the symbol names at Clojure.
https://github.com/damesek/antlr-clojure-to-go/blob/master/Clojure.g4
If you would like to add to this repo, feel free.
Regards,
Szabolcs
diff --git a/Makefile b/Makefile
index c736ddb..bce3572 100644
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,7 @@ grammars-v4:
# and creates a slightly different set of named files. This makes it
# difficult to have one file. This is the best hack that keeps Make
# working correctly.
-BUILD=sh -c '\
+BUILD=bash -c '\
basedir=$$PWD; \
errors=$$0/$$(basename $$1).log; \
mkdir -p $$0; \
@@ -1029,7 +1029,9 @@ plsql plsql/plsql_test.go: plsql/plsqlparser_base_listener.go plsql/plsqlparser_
plsql/doc.go: plsql/plsql_test.go
%/plsqlparser_base_listener.go %/plsqlparser_listener.go %/plsql_parser.go: grammars-v4/plsql/PlSqlParser.g4 plsql/plsql_lexer.go
- ${BUILD} plsql grammars-v4/plsql/PlSqlParser.g4 plsql/plsqlparser_base_listener.go plsql/plsqlparser_listener.go plsql/plsql_parser.go
+ mkdir -p grammars-v4/plsql/mod
+ sed -e 's/range/range_/g' grammars-v4/plsql/PlSqlParser.g4 >grammars-v4/plsql/mod/PlSqlParser.g4
+ ${BUILD} plsql grammars-v4/plsql/mod/PlSqlParser.g4 plsql/plsqlparser_base_listener.go plsql/plsqlparser_listener.go plsql/plsql_parser.go
%/plsql_lexer.go: grammars-v4/plsql/PlSqlLexer.g4
${BUILD} plsql grammars-v4/plsql/PlSqlLexer.g4 plsql/plsql_lexer.go
Some of the grammars have a ".tree" and ".error" file. Read them as part of the test case and check the parsed output matches.
On this page there is a list of subpackages, but no short descriptions. Update the doc.go files to have a short description of the package (and take the long name of the grammar out of the pom.xml).
Please make a cop Cpp samples
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.