Hacker GitHub

← All repos

antlr/antlr4

View on GitHub ↗ ★ 19,037 Java

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

11 mentions on Hacker News by 8 people: 1 story, 10 comments · first 2016-04-22 · latest 2025-09-07

Mentions per year 11 mentions · busiest year 2016 (3)
20082026
  1. …4 does similar, I just haven't used it in as much anger because its runtime always jammed me up https://github.com/antlr/antlr4/blob/4.13.2/doc/listeners.md... I thought that IntelliJ did similarly but I am misremembering since they…
  2. …translate BNFs to LL(k) with some ALL( Star ). Meaning few take advantage of left-recursion. https://github.com/antlr/antlr4/blob/master/doc/left-recursi... Honestly, I struggled to understand these grammars. Plus, not being conversant…
  3. …the Antlr FAQ mentions that "almost no one uses parser generators to build commercial compilers." * https://github.com/antlr/antlr4/blob/master/doc/faq/general.... * See: "What do you think are the problems people will try to solve with…
    comment by bd82 · 2020-03-05 · in Why not to use (f)lex, yacc or bison
  4. Antlr4 supports a javascript target [1] and has parsers for most popular SQL dialects [2] [1] https://github.com/antlr/antlr4/blob/master/doc/javascript-t... [2] https://github.com/antlr/grammars-v4/tree/master/sql [2]
  5. Some of the top of my Head: - Antlr (https://github.com/antlr/antlr4/blob/master/doc/javascript-target.md) - PegJS (https://github.com/pegjs/pegjs) - Nearley (https://github.com/kach/nearley)
    comment by bd82 · 2019-12-12 · in Write a parser with JavaScript
  6. …find this disgusting. If you want a general parser that does not disappoint, get Marpa/libmarpa. ¹ https://github.com/antlr/antlr4/blob/4.6/doc/getting-started... "ANTLR v4 takes whatever you give it--it just doesn't give a crap!"
  7. …Parr) Said: "In my experience, almost no one uses parser generators to build commercial compilers." https://github.com/antlr/antlr4/blob/master/doc/faq/general.... . (no anchors for direct link).
    comment by bd82 · 2017-10-17 · in Ohm: Parsing Made Easy
  8. …In the world of JavaScript I'm familiar with two libraries that support Error Recovery: Antlr4 - https://github.com/antlr/antlr4 Chevrotain - https://github.com/SAP/chevrotain (disclaimer - I'm the author of Chevrotain)
    comment by bd82 · 2017-10-17 · in Ohm: Parsing Made Easy
  9. More detailed changelog: https://github.com/antlr/antlr4/releases/tag/4.6
    comment by NicolaiS · 2016-12-16 · in ANTLR 4.6 Released
  10. …very deep recursion. Also I think there were some dependencies on AWT or Swing for debug console. https://github.com/antlr/antlr4/issues/744
    comment by clumsysmurf · 2016-12-16 · in ANTLR 4.6 Released