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
20082026
-
…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…
comment by mdaniel · 2025-09-07 · in The Expression Problem and its solutions (2016) -
…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…
comment by specialist · 2022-12-19 · in SQLite internals: How the most-used database works -
…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 -
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]
comment by lf-non · 2020-02-09 · in Ask HN: Is there a good JavaScript SQL parser for the front end? -
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 -
…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!"
comment by bmn__ · 2018-07-31 · in Show HN: Owl, a new kind of parser generator -
…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 -
…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 -
More detailed changelog: https://github.com/antlr/antlr4/releases/tag/4.6
comment by NicolaiS · 2016-12-16 · in ANTLR 4.6 Released -
…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