grammars-v4
Grammars written for ANTLR v4; expectation that the grammars are free of actions
What XERJ indexed
Snapshot
Only cpp at commit 04b362f71d (2026-10-22). master is 64 commits ahead.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-23. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
hacktoberfest
Example questions
- How does grammars-v4 implement hacktoberfest?
- Where does grammars-v4 handle “Added C++23 grammar”?
- What does cpp do in grammars-v4?
Inside the indexed corpus
- 26,422 files, 222.1 MB in total, about 8.6 KB per file.
- The selected commit changed 15 of those files.
- Languages by size: ANTLR 61.3%, Java 11%, Python 6%, C# 4.6%, TypeScript 4.3%.
- On GitHub since 2012-09-25, last push 2026-10-30, 8,489 commits on master.
- The pin is 64 commits behind master; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported MIT for antlr/grammars-v4 on 2026-10-31, but the LICENSE file at commit 04b362f71d was reviewed as NONE. The corpus is the pinned commit, so answers from it follow NONE.
Contributors
Pavel Bondar (@bondar-p) has 1 selected repository on the hub.
Using XERJ with grammars-v4
- Index a monorepo so your agent stops reading the whole repo The pinned tree has 26,422 files.
- Search an OpenAPI spec so an agent can find endpoints The hub files it under API design and specification.
- Best MCP servers for local code search in 2026, compared
- Best grep alternative for AI coding agents (2026)
The prompt
Paste it into your AI agent. It clones antlr/grammars-v4 at the pinned commit and indexes it on your machine.
Search the GitHub repository antlr/grammars-v4 with XERJ (https://hub.xerj.org/corpus/antlr--grammars-v4). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/antlr/grammars-v4 grammars-v4 && git -C grammars-v4 checkout 04b362f71d357f581d191969c3ae0e56be296eaa 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./grammars-v4 --url http://127.0.0.1:9200 --prefix grammars-v4 --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: check the LICENSE file. Keep the copyright notice and credit the authors.
Related
Pavel BondarAPI design and specification corporaquinnkicsswagger-uiapache/cordova-androideclipse-apoapsis/ort-serverClickHouse/ClickHouse
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.
