Grammars written for ANTLR v4; expectation that the grammars are free of actions.
ANTLR Assembly Java C# Swift PLSQL Other
Clone or download
teverett Merge pull request #1203 from devjunhong/master
fix erase and string declaration
Latest commit 780bcc6 Aug 8, 2018
Permalink
Failed to load latest commit information.
_grammar-test Apache Cassandra CQL3 Grammar Jul 23, 2018
abnf antlr4test-maven-plugin.version Sep 2, 2016
agc normalize text file line endings Nov 5, 2017
antlr3 simplecalc Mar 12, 2018
antlr4 normalize text file line endings Nov 5, 2017
apex \r\n -> \n for all *.g4 files. May 14, 2017
arithmetic normalize text file line endings Nov 5, 2017
asm6502 more cunning EOLs Apr 20, 2018
asm8080 more cunning EOLs Apr 20, 2018
asm8086 AND Apr 22, 2018
asmMASM masmdirectives May 1, 2018
asmZ80 more cunning EOLs Apr 20, 2018
asn fix generate fail while target language is golang Dec 1, 2017
aspectj initial commit of AspectJ grammar May 4, 2015
atl antlr4test-maven-plugin.version Sep 2, 2016
basic normalize text file line endings Nov 5, 2017
bnf normalize text file line endings Nov 5, 2017
brainfuck normalize text file line endings Nov 5, 2017
c - BugFix: Type cast expression with custom types cannot be recognized. Mar 18, 2018
calculator normalize text file line endings Nov 5, 2017
capnproto Add Apache Thrift grammar with examples Mar 9, 2018
clf normalize line endings on ubuntu Nov 5, 2017
clif Removed useless escapes for string literals and char sets: '\"' -> '"… Feb 26, 2017
clojure Merge branch 'master' of https://github.com/antlr/grammars-v4 into ma… Sep 17, 2017
cobol85 alignment with current ProLeap parser grammars Dec 16, 2017
cookie yup Jul 29, 2017
cool another COOL example Jun 12, 2018
cpp Fix Rule Names Conflicts Jun 23, 2017
cql3 grammar formatting Jul 24, 2018
creole antlr4test-maven-plugin.version Sep 2, 2016
csharp csharp: add 'out type' in argument May 10, 2018
css3 Add font-feature-values support to CSS3. May 27, 2017
csv removed unused files Jul 16, 2017
databank additional example Jul 4, 2018
datetime antlr4test-maven-plugin.version Sep 2, 2016
dcm normalize text file line endings Nov 5, 2017
dice normalize text file line endings Nov 5, 2017
dot dot: skip all lines beginning with a '#' character Jun 9, 2018
ecmascript ECMAScript.GoTarget.g4 moved to Go/ECMAScript.g4 for accordance with … Oct 12, 2017
edif300 Add EDIF 3 0 0 Level 1 grammar Dec 18, 2017
emailaddress reduce test output Jul 11, 2017
erlang normalize text file line endings Nov 5, 2017
fasta normalize text file line endings Nov 5, 2017
fen first commit of fen Nov 11, 2017
flatbuffers Add Apache Thrift grammar with examples Mar 9, 2018
fol Fixed for endlines Nov 27, 2017
fortran77 more examples Jul 9, 2018
fusion-tables normalize text file line endings Nov 5, 2017
gff3 normalize text file line endings Nov 5, 2017
gml normalize text file line endings Nov 5, 2017
golang golang: Fixed issue parsing structures with functionType parameters Aug 8, 2018
graphql Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
graphstream-dgs Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
gtin gtin14 Aug 29, 2017
html normalize text file line endings Nov 5, 2017
hypertalk Adds support for multiple stack windows and remote navigation Jul 7, 2018
icalendar Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
idl Removed useless escapes for string literals and char sets: '\"' -> '"… Feb 26, 2017
inf inf updates Sep 30, 2017
informix Fixed parsers "match an empty string" and "greedy" issues. Apr 2, 2017
iri \r\n -> \n for all *.g4 files. May 14, 2017
istc istc Aug 30, 2017
java PlSqlLexer: REMARK_COMMENT and PROMPT_MESSAGE commands recognition op… Apr 5, 2018
java8-js refactoring of java8 ts and js targets Sep 17, 2017
java8-ts refactoring of java8 ts and js targets Sep 17, 2017
java8 removed unused element which breaks python target Feb 22, 2018
java9 java9: fix identifier parsing May 14, 2018
javadoc normalize text file line endings Nov 5, 2017
javascript Updated JavaScriptBaseLexerclasses for Java runtime. Apr 9, 2018
jpa normalize text file line endings Nov 5, 2017
json Disallow control characters in string fields Feb 14, 2018
kotlin Renamed "kotlin-alt" to "kotlin" Oct 6, 2017
kuka Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
lambda lambda Apr 15, 2017
lcc egs Aug 30, 2017
less less example Jul 5, 2018
logo normalize text file line endings Nov 5, 2017
lolcode normalize text file line endings Nov 5, 2017
lua antlr4test-maven-plugin.version Sep 2, 2016
masm normalize text file line endings Nov 5, 2017
mdx normalize text file line endings Nov 5, 2017
memcached_protocol Fixes lexers greedy issues. Apr 2, 2017
metric more examples Jul 15, 2017
modelica normalize text file line endings Nov 5, 2017
modula2pim4 normalize text file line endings Nov 5, 2017
molecule docs Aug 27, 2017
morsecode morsecode Sep 25, 2017
mps normalize text file line endings Nov 5, 2017
mumath normalize text file line endings Nov 5, 2017
mumps updates Jul 15, 2018
muparser normalize text file line endings Nov 5, 2017
mysql Revert "mysql lexer, enable lower case letters in variables" Aug 3, 2018
objc Objective C grammar updated. Sep 15, 2017
oncrpc normalize text file line endings Nov 5, 2017
p P’’ May 16, 2017
pascal pascal bool Jul 22, 2018
pcre antlr4test-maven-plugin.version Sep 2, 2016
pddl normalize text file line endings Nov 5, 2017
pdn pdn readme Aug 26, 2017
pdp7 normalize text file line endings Nov 5, 2017
peoplecode normalize text file line endings Nov 5, 2017
pgn normalize text file line endings Nov 5, 2017
php Fix typo Jun 5, 2018
pl0 pl0 refactoring Jul 6, 2018
plsql added 10g possibility to plsql / CSharp target Jun 29, 2018
postalcode normalize text file line endings Nov 5, 2017
powerbuilder examples Jun 30, 2018
prolog name fix Feb 22, 2018
propcalc normalize text file line endings Nov 5, 2017
properties Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
protobuf3 Replaced: \v -> \u000B ; \0 -> \u0000. Feb 26, 2017
prov-n UPDATE: prov-n grammar for default namespace and some workaround for … Aug 1, 2018
python2-js fix: example "this.parser" to "var parser" Feb 8, 2018
python2 add python2 to test suite Sep 20, 2017
python3-js python3 alternative targets Sep 20, 2017
python3-py Add testbench and use Python test_grammar file Dec 16, 2017
python3-ts python3 alternative targets Sep 20, 2017
python3 different python3 targets Sep 20, 2017
python3alt Finished QC on examples in the shaldq.py file. Jun 2, 2017
quakemap floats Aug 12, 2017
r Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
rcs normalize text file line endings Nov 5, 2017
redcode normalize text file line endings Nov 5, 2017
restructuredtext inclusion of restructuredtext into base build Dec 27, 2017
rexx rexx example Dec 5, 2017
robotwars normalize text file line endings Nov 5, 2017
romannumerals normalize text file line endings Nov 5, 2017
rpn normalize text file line endings Nov 5, 2017
ruby normalize text file line endings Nov 5, 2017
scala Fixed parsers "match an empty string" and "greedy" issues. Apr 2, 2017
scss pom.xml fix Jul 17, 2017
sexpression antlr4test-maven-plugin.version Sep 2, 2016
sgf Add sgf-grammar Nov 11, 2017
sharc normalize text file line endings Nov 5, 2017
smalltalk Fixed parsers "match an empty string" and "greedy" issues. Apr 2, 2017
smiles first commit of smiles Nov 11, 2017
smtlibv2 grammar name Sep 15, 2017
snobol Removed useless escapes for string literals and char sets: '\"' -> '"… Feb 26, 2017
solidity Update Solidity grammar and add more examples Jul 21, 2018
sparql antlr4test-maven-plugin.version Sep 2, 2016
sqlite antlr4test-maven-plugin.version Sep 2, 2016
stacktrace Minor change, to make parsing this g4 file easier. Oct 24, 2017
stringtemplate Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
suokif Replaced: \v -> \u000B ; \0 -> \u0000. Feb 26, 2017
swift-fin normalize text file line endings Nov 5, 2017
swift2 Revert "lineends" Oct 29, 2017
swift3 Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
telephone reduce test output Jul 11, 2017
thrift Add Apache Thrift grammar with examples Mar 9, 2018
tiny normalize text file line endings Nov 5, 2017
tinybasic oops Nov 10, 2017
tinyc normalize text file line endings Nov 5, 2017
tnsnames normalize text file line endings Nov 5, 2017
tnt normalize text file line endings Nov 5, 2017
tsql Fix test-name Jul 17, 2018
tsv oops Jul 4, 2018
turtle-doc formatting Dec 19, 2017
turtle Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
ucb-logo normalize text file line endings Nov 5, 2017
unicode Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
upnp Support added for escaped double quote and space Nov 14, 2017
url normalize text file line endings Nov 5, 2017
useragent normalize text file line endings Nov 5, 2017
vb6 vbs dummy Feb 15, 2018
vba support fixed length string declaration Aug 8, 2018
verilog Fix #950: Verilog grammar: Symbol "range" conflicts with target lang… Apr 3, 2018
vhdl eol Mar 31, 2018
wavefront normalize text file line endings Nov 5, 2017
webidl Removed useless escapes for string literals and char sets: '\"' -> '"… Feb 26, 2017
xml Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
xpath xpath: fix qName/functionName rules May 11, 2018
z Multiple minor fixes to the pom.xml's to ensure the correct grammar i… Oct 24, 2017
.editorconfig Added end_of_line for *.g4 to .editorconfig. Oct 22, 2017
.gitattributes revert last commit Nov 13, 2017
.gitignore normalize line endings on ubuntu Nov 5, 2017
.travis.yml sudo Sep 10, 2017
README.md updated readme Dec 10, 2017
count_error_files.sh some shell scripts Jul 16, 2017
count_examples.sh some shell scripts Jul 16, 2017
pom.xml UPDATE: added prov-n module Jul 26, 2018

README.md

Travis Status

grammars-v4

Grammars written for ANTLR v4

This repository is a collection of Antlr4 grammars.

The root directory name is the all-lowercase name of the language parsed by the grammar. For example, java, cpp, csharp, c, etc...

FAQ

Please refer to the grammars-v4 Wiki