.g4

1 claimant 1 primary 0 secondary unambiguous primary

SWH popularity

Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.

395.6K
total files
172.9K
first seen 2021–2025 (43.7%)
2020
median year (half its files since)

Case variants in archive: .g4 (395.0K), .G4 (517) — aggregated above.

Attribution status

This extension is attributed to ANTLR as primary by 1 authoritative claim.

Authoritative sources: ✓ Linguist ✗ Pygments · no claim ✗ Wikidata · no claim ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (1)

Languages that list .g4 among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
ANTLRlinguistprimary

Wikidata says… (2)

File formats, image formats, audio codecs and other non-PL entities that claim .g4 on Wikidata (property P1195) or in the Wikipedia infobox. Source: data/derived/external_extension_index.csv. Click Use as new PL on any row to open the Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata URL, and this extension — one submission creates the PL + claim.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
ANTLR4 grammar file Q137703953
file format
file format———Use as new PL ↗
Intergraph Raster Q28206359
file format
file format———Use as new PL ↗

SWH-mined examples (1)

Real archived programs with this extension, byte-verified against the SWH archive, grouped by predicted language and by how the prediction was made. Useful for deciding what this extension actually is when the attribution is uncertain.
ANTLR (1) — 1 via unique-primary
css3Lexer.g4 · 8238 B · seen 32× in SWH
predicted: ANTLR via unique-primary
swh:1:cnt:ff407232577a56eabdc19765891a0201b640ba12;origin=https://github.com/HanzoDev1375/Ghostide;anchor=swh:1:rev:d17e8d7d703a0bb603464be365e4d690367ebdf3;path=/grammars-v4/css3Lexer.g4
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .g4 is, request a fresh mining run.
(or open the pre-filled issue directly)