Parsing with Antlr4 and Go

1 · Andrew Brampton · Dec. 16, 2017, 8:50 p.m.
Originally published as part of the Go Advent 2017 series What is ANTLR? ANTLR (ANother Tool for Language Recognition), is an ALL(*) parser generator. In layman’s terms, Antlr, creates parsers in a number of languages (Go, Java, C, C#, Javascript), that can process text or binary input. The generated parser provides a callback interface to parse the input in an event-driven manner, which can be used as-is, or used to build parse trees (a data structure representing the input). ANTLR is used by a...