[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3966":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":39,"readmeContent":40,"aiSummary":41,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":42,"discoverSource":43},3966,"antlr4","antlr\u002Fantlr4","antlr","ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.","http:\u002F\u002Fantlr.org",null,"Java",18908,3450,366,898,0,2,10,43,45,"BSD 3-Clause \"New\" or \"Revised\" License",false,"dev",[7,5,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cpp","csharp","dart","golang","grammar","java","javascript","language-recognition","parse","parser-generator","parsing","php","python","swift","2026-06-12 02:00:56","# ANTLR v4\n\n[![Java 11+](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fjava-11+-4c7e9f.svg)](http:\u002F\u002Fjava.oracle.com)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-BSD-blue.svg)](https:\u002F\u002Fraw.githubusercontent.com\u002Fantlr\u002Fantlr4\u002Fmaster\u002FLICENSE.txt)\n\n**ANTLR** (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build parse trees and also generates a listener interface (or visitor) that makes it easy to respond to the recognition of phrases of interest.\n\n**Dev branch build status**\n\n[![MacOSX, Windows, Linux](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Factions\u002Fworkflows\u002Fhosted.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Factions\u002Fworkflows\u002Fhosted.yml) (github actions)\n\n\u003C!--\n* [![Windows](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Factions\u002Fworkflows\u002Fwindows.yml\u002Fbadge.svg?branch=dev)](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Factions\u002Fworkflows\u002Fwindows.yml) (github actions)\n\n* [![Circle CI Build Status (Linux)](https:\u002F\u002Fimg.shields.io\u002Fcircleci\u002Fbuild\u002Fgh\u002Fantlr\u002Fantlr4\u002Fmaster?label=Linux)](https:\u002F\u002Fapp.circleci.com\u002Fpipelines\u002Fgithub\u002Fantlr\u002Fantlr4) (CircleCI)\n\n[![AppVeyor CI Build Status (Windows)](https:\u002F\u002Fimg.shields.io\u002Fappveyor\u002Fbuild\u002Fparrt\u002Fantlr4?label=Windows)](https:\u002F\u002Fci.appveyor.com\u002Fproject\u002Fparrt\u002Fantlr4) \n[![Travis-CI Build Status (Swift-Linux)](https:\u002F\u002Fimg.shields.io\u002Ftravis\u002Fantlr\u002Fantlr4.svg?label=Linux-Swift&branch=master)](https:\u002F\u002Ftravis-ci.com\u002Fgithub\u002Fantlr\u002Fantlr4)\n-->\n\n\n## Versioning\n\nANTLR 4 supports 10 target languages\n(Cpp, CSharp, Dart, Java, JavaScript, PHP, Python3, Swift, TypeScript, Go),\nand ensuring consistency across these targets is a unique and highly valuable feature.\nTo ensure proper support of this feature, each release of ANTLR is a complete release of the tool and the 10 runtimes, all with the same version.\nAs such, ANTLR versioning does not strictly follow semver semantics:\n\n* a component may be released with the latest version number even though nothing has changed within that component since the previous release\n* major version is bumped only when ANTLR is rewritten for a totally new \"generation\", such as ANTLR3 -> ANTLR4 (LL(\\*) -> ALL(\\*) parsing)\n* minor version updates may include minor breaking changes, the policy is to regenerate parsers with every release (4.11 -> 4.12)\n* backwards compatibility is only guaranteed for patch version bumps (4.11.1 -> 4.11.2)\n\nIf you use a semver verifier in your CI, you probably want to apply special rules for ANTLR, such as treating minor change as a major change.\n\n## Repo branch structure\n\nThe default branch for this repo is [`master`](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Ftree\u002Fmaster), which is the latest stable release and has tags for the various releases; e.g., see release tag [4.9.3](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Ftree\u002F4.9.3).  Branch [`dev`](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Ftree\u002Fdev) is where development occurs between releases and all pull requests should be derived from that branch. The `dev` branch is merged back into `master` to cut a release and the release state is tagged (e.g., with `4.10-rc1` or `4.10`.) Visually our process looks roughly like this:\n\n\u003Cimg src=\"doc\u002Fimages\u002Fnew-antlr-branches.png\" width=\"500\">\n\nThe Go target now has its own dedicated repo:\n\n```bash\n$ go get github.com\u002Fantlr4-go\u002Fantlr\n```\n**Note**\nThe dedicated Go repo is for `go get` and `import` only. Go runtime development is still performed in the main `antlr\u002Fantlr4` repo. \n\n## Authors and major contributors\n\n* [Terence Parr](http:\u002F\u002Fwww.cs.usfca.edu\u002F~parrt\u002F), parrt@cs.usfca.edu\nANTLR project lead and supreme dictator for life\n[University of San Francisco](http:\u002F\u002Fwww.usfca.edu\u002F)\n* [Sam Harwell](http:\u002F\u002Ftunnelvisionlabs.com\u002F) (Tool co-author, Java and original C# target)\n* [Eric Vergnaud](https:\u002F\u002Fgithub.com\u002Fericvergnaud) (Javascript, TypeScript, Python2, Python3 targets and maintenance of C# target)\n* [Peter Boyer](https:\u002F\u002Fgithub.com\u002Fpboyer) (Go target)\n* [Mike Lischke](http:\u002F\u002Fwww.soft-gems.net\u002F) (C++ completed target)\n* Dan McLaughlin (C++ initial target)\n* David Sisson (C++ initial target and test)\n* [Janyou](https:\u002F\u002Fgithub.com\u002Fjanyou) (Swift target)\n* [Ewan Mellor](https:\u002F\u002Fgithub.com\u002Fewanmellor), [Hanzhou Shi](https:\u002F\u002Fgithub.com\u002Fhanjoes) (Swift target merging)\n* [Ben Hamilton](https:\u002F\u002Fgithub.com\u002Fbhamiltoncx) (Full Unicode support in serialized ATN and all languages' runtimes for code points > U+FFFF)\n* [Marcos Passos](https:\u002F\u002Fgithub.com\u002Fmarcospassos) (PHP target)\n* [Lingyu Li](https:\u002F\u002Fgithub.com\u002Flingyv-li) (Dart target)\n* [Ivan Kochurkin](https:\u002F\u002Fgithub.com\u002FKvanTTT) has made major contributions to overall quality, error handling, and Target performance.\n* [Justin King](https:\u002F\u002Fgithub.com\u002Fjcking) has done a huge amount of work across multiple targets, but especially for C++.\n* [Ken Domino](https:\u002F\u002Fgithub.com\u002Fkaby76) has a knack for finding bugs\u002Fissues and analysis; also a major contributor on the [grammars-v4 repo](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fgrammars-v4).\n* [Jim Idle](https:\u002F\u002Fgithub.com\u002Fjimidle) has contributed to previous versions of ANTLR and recently jumped back in to solve a major problem with the Go target.\n\n\n## Useful information\n\n* [Release notes](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Freleases)\n* [Getting started with v4](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Fgetting-started.md)\n* [Official site](http:\u002F\u002Fwww.antlr.org\u002F)\n* [Documentation](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Findex.md)\n* [FAQ](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Ffaq\u002Findex.md)\n* [ANTLR code generation targets](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Ftargets.md)\u003Cbr>(Currently: Java, C#, Python3, JavaScript, TypeScript, Go, C++, Swift, Dart, PHP)\n* _Note: As of version 4.14, we are dropping support for Python 2. We love the Python\ncommunity, but Python 2 support was officially halted in Jan 2020. More recently,\nGitHub also dropped support for Python 2, which has made it impossible for us to\nmaintain a consistent level of quality across targets (we use GitHub for our CI).\nLong live Python 3!_\n* [Java API](http:\u002F\u002Fwww.antlr.org\u002Fapi\u002FJava\u002Findex.html)\n* [ANTLR v3](http:\u002F\u002Fwww.antlr3.org\u002F)\n* [v3 to v4 Migration, differences](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Ffaq\u002Fgeneral.md)\n\nYou might also find the following pages useful, particularly if you want to mess around with the various target languages.\n \n* [How to build ANTLR itself](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Fbuilding-antlr.md)\n* [How we create and deploy an ANTLR release](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fantlr4\u002Fblob\u002Fmaster\u002Fdoc\u002Freleasing-antlr.md)\n\n## The Definitive ANTLR 4 Reference\n\nProgrammers run into parsing problems all the time. Whether it’s a data format like JSON, a network protocol like SMTP, a server configuration file for Apache, a PostScript\u002FPDF file, or a simple spreadsheet macro language—ANTLR v4 and this book will demystify the process. ANTLR v4 has been rewritten from scratch to make it easier than ever to build parsers and the language applications built on top. This completely rewritten new edition of the bestselling Definitive ANTLR Reference shows you how to take advantage of these new features.\n\nYou can buy the book [The Definitive ANTLR 4 Reference](http:\u002F\u002Famzn.com\u002Fdp\u002F1934356999) at amazon or an [electronic version at the publisher's site](https:\u002F\u002Fpragprog.com\u002Fbook\u002Ftpantlr2\u002Fthe-definitive-antlr-4-reference).\n\nYou will find the [Book source code](http:\u002F\u002Fpragprog.com\u002Ftitles\u002Ftpantlr2\u002Fsource_code) useful.\n\n## Additional grammars\n[This repository](https:\u002F\u002Fgithub.com\u002Fantlr\u002Fgrammars-v4) is a collection of grammars without actions where the\nroot directory name is the all-lowercase name of the language parsed\nby the grammar. For example, java, cpp, csharp, c, etc...\n","ANTLR (ANother Tool for Language Recognition) 是一个强大的解析器生成器，用于读取、处理、执行或转换结构化文本或二进制文件。它支持从语法定义自动生成能够构建解析树的解析器，并提供监听器接口（或访问者模式），使得对感兴趣短语的识别响应变得简单。ANTLR 4 支持包括 C++, C#, Dart, Java, JavaScript, PHP, Python3, Swift, TypeScript 和 Go 在内的十种目标语言，确保了跨语言的一致性。适用于需要构建语言处理器、工具或框架的各种场景，如编译器开发、数据格式解析等。","2026-06-11 02:57:29","top_language"]