antlr/grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.

11,054

stars

7,611

commits

ANTLR

primary language

Sep 9, 2026

updated

hacktoberfest

README

Last PR merge build: CI Weekly .jar build: Weekly JAR Weekly dev build: Weekly Dev

Grammars-v4

This repository is a collection of formal grammars written for ANTLR v4.

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

Performance

Grammar performance table (sortable by column header).

FAQ

Please refer to the grammars-v4 Wiki

Code of Conduct

Please refer to House Rules

Contributors

(top 30 of 378)

teverett

3,034 commits

KvanTTT

605 commits

kaby76

550 commits

parrt

364 commits

antlr/grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.

11,054

stars

7,611

commits

ANTLR

primary language

Sep 9, 2026

updated

hacktoberfest

README

Last PR merge build: CI Weekly .jar build: Weekly JAR Weekly dev build: Weekly Dev

Grammars-v4

This repository is a collection of formal grammars written for ANTLR v4.

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

Performance

Grammar performance table (sortable by column header).

FAQ

Please refer to the grammars-v4 Wiki

Code of Conduct

Please refer to House Rules

Contributors

(top 30 of 378)

teverett

3,034 commits

KvanTTT

605 commits

kaby76

550 commits

parrt

364 commits

Languages

ANTLR

60.0%

Java

11.5%

Python

6.3%

C#

4.8%

TypeScript

4.5%

Shell

2.5%

C++

2.3%

JavaScript

2.2%

Dart

1.6%

Go

1.4%