Top "Antlr" questions

ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.

ANTLR: Is there a simple example?

I'd like to get started with ANTLR, but after spending a few hours reviewing the examples at the antlr.org …

java antlr antlr4 antlr3
lexers vs parsers

Are lexers and parsers really that different in theory? It seems fashionable to hate regular expressions: coding horror, another blog …

parsing antlr lexer pygments
How to convert a String to its equivalent LINQ Expression Tree?

This is a simplified version of the original problem. I have a class called Person: public class Person { public string …

c# lambda antlr dsl predicate
Why is .NET exception not caught by try/catch block?

I'm working on a project using the ANTLR parser library for C#. I've built a grammar to parse some text …

c# .net exception antlr
Advantages of Antlr (versus say, lex/yacc/bison)

I've used lex and yacc (more usually bison) in the past for various projects, usually translators (such as a subset …

c++ antlr yacc bison
How to create AST with ANTLR4?

I've been searching A LOT about this and I couldn't find anything useful that REALLY helps me build an AST. …

java compiler-construction antlr abstract-syntax-tree antlr4
Is there a simple example of using antlr4 to create an AST from java source code and extract methods, variables and comments?

Can someone provide a detailed example as to how I can do this using antlr4? Instructions right from installing antlr4 …

java antlr
If/else statements in ANTLR using listeners

I'm creating a simple programming language for a school project. I'm using ANTLR 4 to generate a lexer and a parser …

java listener antlr antlr4
What does "fragment" mean in ANTLR?

What does fragment mean in ANTLR? I've seen both rules: fragment DIGIT : '0'..'9'; and DIGIT : '0'..…

antlr
ANTLR4 visitor pattern on simple arithmetic example

I am a complete ANTLR4 newbie, so please forgive my ignorance. I ran into this presentation where a very simple …

java antlr antlr4 lexer