Home | Download | ANTLRWorks | Wiki | About ANTLR | Contact | Support | Bugs | v2


Latest version is 3.4
Download now! »

Download
» Home
» Download
» ANTLRWorks
» News
»Using ANTLR
» Documentation
» FAQ
» Articles
» Grammars
» File Sharing
» Runtime API
» Tech Support
» Bug Tracking
»About ANTLR
» What is ANTLR
» Why use ANTLR
» Showcase
» Testimonials
» Getting Started
» Software License
» ANTLR WebLogs
» ANTLR Workshops
»StringTemplate
»ANTLR v2
»Contact
»Credits
»Contact


Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)

Search



Share List



RSS Feed


Android port for ANTLR Java Runtime - UPDATED
Earlence Fernandes Fri Jun 22, 2012 03:41
This package contains updated instructions and documentation for my earlier port.

Unification Algorithm in F#
Eric Taucher Fri Mar 16, 2012 10:43
Robinson Unification Algorithm in F# - Learning Version

Using antlr+stringtemplate to Generate Method Chaining, written in Chinese
YANG Guifu Mon Dec 5, 2011 08:13
It is a 6-days-blog attatched, which descibes step by step how to

Vim Stringtemplate Syntax
Kenney Westerhof Wed Sep 7, 2011 10:42
A VIM syntax file for StringTemplate files (.stg etc..)

Antlr D target
Márton Papp Wed Jul 20, 2011 12:42
A project for ANTLR D target at sourceforge.

ANTLR v3 task for Ant
Juergen Pfundt Mon May 16, 2011 14:34
[updated] A task for Ant that knows about building ANTLR v3 grammars.

Android port of the ANTLR Java Runtime
Earlence Fernandes of CRePE project Fri Feb 4, 2011 10:58
A tarball that can be overlayed on top of an existing antlr 3.3 distribution. Just download it, extract and copy over to an android source directory, run a make and everythings set. Context related policy enforcement for Android website: CRePE.

XQuery Grammar in Antrl
Adam Retter Thu Oct 28, 2010 06:49
ANTLR 3 grammar and generated Java parser for XQuery with Update, Scripting and Full Text extensions

mdsl
Sun Oct 10, 2010 23:30
mdsl is a simple interpreted language built on top of java.

Ikuspro: graphic program simulator with C-subset interpreter
Ivan Mosquera Sun Oct 3, 2010 04:03
For educational purposes. It's a java desktop apps which features a C-subset interpreter and It draws how the program evolvers while is interpreted. (direct link to C grammar,walker..: http://github.com/ivmos/Ikuspro/tree/master/src/ikuspro/interprete/c/)

Ikuspro: desktop app featuring C-subset interpreter.
Ivan Mosquera Thu Sep 30, 2010 14:56
http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=http://ivanmosquera.net/index.php/2010/07/26/ikuspro-es-libre/&sl=es&tl=en

Unicode category lexer fragments for ANTLR3
Robert Baruch Thu Nov 12, 2009 16:09
This zip file contains Unicode_5.2.0_Lexer.g, a set of lexer fragments you can include in your grammar to recognize a given character as any of the possible Unicode general categories. Need a Unicode lower case letter? UnicodeCategoryLl will do it. How about a number? UnicodeCategoryNd is what you need.

vim syntax highlighter for ANTLR v3
Davyd Madeley Fri Nov 21, 2008 10:43
I found an old vim syntax highlighter on antlr-interest, but it didn't deal very nicely with some things in my grammar. I've updated it and thought I'd share it with anyone who might be interested. Add it to
~/.vim/syntax/
And add something like this to your .vimrc:
au BufRead,BufNewFile *.g set syntax=antlr3


Sun-tuned ANTLR v2
Sun Microsystems / NetBeans Tue Jun 3, 2008 14:32
Sun's NetBeans team has produced a version of ANTLR v2 that is very highly tuned to get extremely high performance. See also NetBeans Sources.

Yggdrasil 0.5b2 manual
Loring Craymer Thu Nov 29, 2007 13:31
Yggdrasil documentation

C-- compiler and interpreter
Scott Fortmann-Roe Thu May 3, 2007 13:35
A simple interpreter and compiler for a subset of C supporting if-statements, loops, integers, functions, and arrays. The interpreter is implemented using a tree grammar and the compiler targets LLVM's intermediate representation. Tested with ANTLR 3.0b7.

antlr v3 rakefile.rb (a la Makefile)
Joseph Grace Sun Mar 25, 2007 15:31
A simple rakefile.rb to build antlr v3 (antlr.jar) from source. Includes clean, clobber, and default (antlr.jar) targets. Much simpler and self-explanatory than the ant file included with distribution.

Compiler and virtual machine for a simple language
Alex Stojan Mon Mar 5, 2007 20:18
This is a compiler for a simple statically-typed language that supports basic constructs like loops, if-then statements, pointers, functions, and arrays. It generates assembly files with instructions for a simple stack-based virtual machine (also included in the ZIP file). Both the compiler and the VM are implemented in C++, using ANTLR 2.7.5 for parsing and AST processing.

XEmacs mode for StringTemplates
stefan@amiq.ro Thu Jan 18, 2007 02:40
This is a XEmacs mode for string template files, that I developed some time ago.

Interim v3 jar file (depot change number 3386)
Kay Röpke Thu Jan 11, 2007 14:38
This jar file contains a build of the latest depot version of ANTLR v3, due to requests from the mailing list.

Yggdrasil 0.5b1 manual
Sat Oct 7, 2006 15:55
Yggdrasil documentation

Yggdrasil 0.5b1
Loring Craymer Sat Oct 7, 2006 15:53
Early Yggdrasil release. Based on ANTLR 3.0b4

2.7.6 compatible Bison translator
Loring Craymer Tue Jul 25, 2006 14:17
This one has the correct BisonReader.java

2.7.6 compatible Bison translator
Loring Craymer Sat Jul 22, 2006 11:18
Fixes token constructor on line 91 to be ANTLR 2.7.6 compatible

sentence generator
Gerrie Myburgh Thu Jun 29, 2006 21:53
sentence generator for a antlr grammar

Update to pretty printer
Mon Jun 26, 2006 21:00
Minor bug fixes.

Bison to ANTLR translator
Mon Jun 26, 2006 20:59
Translates bison/yacc grammars to ANTLR 2.7 grammars.

ANTLR pretty printer
Loring Craymer Thu Jun 1, 2006 13:27
Source to source ANTLR grammar translator

Antlr.NET 2.7.6
Adriano Bedeschi Sun Apr 9, 2006 13:38
Antlr.NET 2.7.6 converted from antlr.jar with IKVM - http://www.ikvm.net/

kcsparse - an ECMA-334 C# Grammar Sample for ANTLR v2.7.6 (C#)
Kunle Odutola Thu Dec 8, 2005 04:40
Yet Another C# Grammar For ANTLR (implementation language is also C#). It is probably more complete and includes both an ANTLR and a C# Flex lexer.

ANTLR port to C++
Arturo Montes Fri Sep 23, 2005 15:44
This is a port for ANTLR java to C++. This is like ANTLR C++ 2.7.4. I will be sending instructions. Keep follow. Best regards, Arturo Montes

antlr 2.7.5 Linux installation
Colm McHugh Wed Jul 6, 2005 14:12
Antlr 2.7.5 installation, built on RedHat EL 3

Vim syntax files for StringTemplate
Ken Wenzel Mon May 30, 2005 08:52
Two Vim syntax files for StringTemplate (angle bracket and dollar delimited).

antlr.NET 2.7.5 - exe for .NET and Mono
Doug Holton Sat May 7, 2005 17:45
This is antlr.jar converted to antlr.exe using IKVM (http://www.ikvm.net/). It runs on .NET or Mono (in Windows or Linux). Also included are the IKVM.GNU.Classpath.dll and IKVM.Runtime.dll dependencies. To create your own exe, download IKVM and run the command:

"ikvmc.exe -target:exe -main:antlr.Tool antlr.jar"

Progress 4GL to PHP converter
Patrick Phelan Wed May 4, 2005 07:15
A not entirely successful program to convert 500,000 lines of aged Progress 4GL code to PHP. It is not a full 4GL interpreter, and only covers the limited grammar subset of 4GL I had in front of me, and is clearly a program meant to be run only once. Still, it might be useful as a guide to others doing something similar, if only to show what not to do. (Save as.. tar/bzip2)

Python Port of ANTLR / StringTemplate Translator Example
Marq Kole Mon Apr 25, 2005 12:09
A python port of Terence's example Language Translation Using ANTLR and StringTemplate. Uses new Python StringTemplate port released April 25, 2005.

ANTLR 2.7.5 VisualStudio 7.1 solution
Francis ANDRE Fri Apr 22, 2005 02:12
A MSVC7.1 solution for building antlr.dll from sources ANTLR 2.7.5 with 3 examples included (calc, idl, treewalker). The vc71.zip should unzipped under the installation dir of the source delivery.

Antlr2.74 VB.Net Extension 1.04
George Yu Wed Mar 23, 2005 05:00
Antlr VB.Net extension is a "hack" implementation for generating parser in VB.Net code.

C# Port of StringTemplate 2.1 Build 2
Steve Sarandos Fri Mar 11, 2005 05:49
This build fixes a bug that occurs when using the "separator" construct.

Visual J# 7.1 Project
Andre K. Thu Feb 10, 2005 12:43
Visual J# 2003 Project. Compiles the antlr sources to a antlr.exe tool running on the .NET platform.

C# Port of StringTemplate 2.1
Steve Sarandos Thu Feb 3, 2005 07:05
StringTemplate 2.1 ported to C#

Syntax Diagram Generator 2. Build 1.5
Mark Malakanov Sat Jan 29, 2005 13:26
Many enchancements and fixes. More accuracy. Two styles of diagrams.

ANTLR 2.7.5-1 (rc2) MSI for Windows
Haefelinger Thu Jan 13, 2005 09:56
ANTLR 2.7.5 (rc2) as MSI based installation for Windows. Contains language support for C++ (VS 2oo3), Python, Java and C# (.NET 2003).

ANTLR 2.7.5-1 (rc2) for Cygwin #2
Haefelinger Thu Jan 13, 2005 01:06
ANTLR 2.7.5 for Cygwin - second try. Will now install correctly in /usr instead of /.

Patch for Syntax Diagram Generator 2
Charles Crichton Wed Jan 12, 2005 11:45
This patch corrects a bug in the "Save as HTML and multiple files" menu item of the Syntax Diagram Generator 2 tool.

ANTLR 2.7.5-1 (rc2) for Cygwin
Haefelinger Wed Jan 12, 2005 09:24
ANTLR 2.7.5rc2 for Cygwin - Initial proposed package.

ANTLR 2.7.5-1 (rc2) RPM for Linux
Haefelinger Wed Jan 12, 2005 09:20
RPM for Linux - compiled on Mandrake 1o but supposed to work on other distros as well. Please check and provide feedback.

ANTLR 2.7.5-1 (rc2) for Cygwin
Haefelinger Wed Jan 12, 2005 03:35
Initial version for Cygwin - not yet approved. Use it as is, no warranty.

ANTLR Syntax Diagram Generator 2
Mark Malakanov Sat Dec 25, 2004 22:07
Based on "ANTLR Syntax Diagram Generator" (Jennifer Zheng), this new tool adds functionality of saving diagrams in variety of graphic formats. Saving whole diagram to raster image formats like PING or JPEG, to vector image format SVG. Saving into multiple raster images and one binding HTML with hyperlinks for navigation among rules and elements.

Development snapshots
Ric Klaren Wed Dec 1, 2004 09:56
Development snapshots, mainly for the C++ output mode, but often also contains fixes for the other codegenerators.

Java Emitter (using java.tree.g)
Terence Parr Sun Nov 21, 2004 09:31
A java-AST tree walker grammar containing actions to spit the tree back to java text. A bit out of date (old 1.3 grammar). Only works well enough for a class project. ;) Now I'd probably use StringTemplate to generate the output.

PyANTLR 0.9.1 - code generator for Python
Wolfgang Haefelinger Thu Nov 4, 2004 04:28
This is a initial version of ANTLR for Python. Right now lexer is supposed to work for non-filtering grammars. Please read enclosed README.txt for further details. Code generator for Parser and Walker are in progress...

antlr-2.7.4 binary compiled with MinGW/GCJ
Barry Kelly Mon Oct 18, 2004 00:28
antlr-2.7.4 without any dependencies on CYGWIN1.DLL or any other CYG*.DLL cygwin dlls.

Recent ANTLR manual in PDF
Krzysztof Leszczynski Tue Sep 7, 2004 01:36
This is a PDF manual generated from today's (i.e. Sep 7 2004) sources at http://www.antlr/doc/ It has better margins than pdf I previously found, also I stripped navigation bars, search boxes, etc. The most recent version and the script for regenerating the PDF is at my ftp site: http://ftp.camk.edu.pl/private/chris/antlrman/ Please let me know when the documentation is updated, so I can regenerate the PDF file.

librarys static linked for borland c++ compiler
Jesus Ramon Aviles Vasques(fapiles@hotmail.com) Tue Jul 27, 2004 21:14
Library for run code generate by antlr in c++

C PreProcessor
Eric Mahurin Mon Jul 26, 2004 20:03
A C PreProcessor done completely in a stack of ANTLR lexers. This could be integrated with an existing C or whatever lexer to do the preprocessing and tokenizing in one step.

ANTLR 2.7.4 Binary for Cygwin 1.5.9-1, compiled with GCJ
Tom Verbeure Mon May 17, 2004 06:31
GCJ compiled version of ANTLR 2.7.4 on Cygwin as described in my article "Getting ANTLR to run on Cygwin and GCJ" in the articles section. Zipped with gzip...

ANTLR Reference PDF Manual
Peter Sprenger Sun May 16, 2004 14:35
This pdf file contains the ANTLR Reference Manual from antlr.org. The pdf document makes it much easier to print the manual in one piece and to search for keywords.

Antlr-2.7.4 binary (with c lib) for Linux
Neeraj Sharma Wed May 12, 2004 05:10
Makefile is also provided if you want to build antlr yourself. Please note that on "ldd cantlr": libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40024000) libgcj.so.4 => /usr/lib/libgcj.so.4 (0x4002c000) libm.so.6 => /lib/libm.so.6 (0x407e6000) libpthread.so.0 => /lib/libpthread.so.0 (0x40809000) libz.so.1 => /usr/lib/libz.so.1 (0x4085a000) libdl.so.2 => /lib/libdl.so.2 (0x4086b000) libc.so.6 => /lib/libc.so.6 (0x4086e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

annotation2
Anakreon Mejdi Wed Apr 14, 2004 15:48
An enhanced version of annotation tool created by Bogdan Mitu.

Makefile for building C# code generation and runtime support on Linux.
C?sar L?pez Natar?n. Wed Mar 31, 2004 08:27
Makefile for building C# code generation and runtime support on Linux for use with Mono or other CLI implementation for antlr-2.7.3 Just copy this file to antlr-2.7.3/lib/csharp/src Type: "make -f makefile.mono" Copy the resulting antlr.runtime.dll and antlr.runtime.dll.so to the directory where your CLI-based assemblies go.

ANTLR Win32 Binary for V 2.7.3
Mark Swann Wed Mar 24, 2004 08:19
ANTLR Win32 binary for V 2.7.3 compiled with gcj.

ANTLR Syntax Diagram Generator
Jennifer Zheng Wed Mar 17, 2004 13:28
[Submitted by Terence Parr] View your ANTLR grammars as syntax diagrams. This prototype demonstrates a multi-phase ANTLR translator. Phases read the grammar, compute elements widths, layout elements, draw elements, etc... Very easy to use: just send your grammar file into edu.usfca.syndiag.Main via System.in and it will display a Swing window with your syntax diagram. Ultimately I hope to use something like this to display ambiguous paths in your grammar during analysis.

Fortran 77 grammar
Aaron Sawdey Fri Feb 20, 2004 11:27
[submitted by Terence Parr] This PCCTS grammar for fortran77 doesn't seem to have a PCCTS lexer spec (Aaron seems to have used a modified lexer from F2C). Anyway, might be useful to somebody.

Howto compile antlr libs for MinGW
Neeraj Wed Feb 18, 2004 01:26
The given html file demonstrates the way to compile antlr libs for MinGW taking antlr-2.7.1 as the antlr package.

Windows binary for antlr-2.7.1
Neeraj Wed Feb 18, 2004 00:49
Windows binary for antlr-2.7.1 using MinGW

SATC - syntax highlight & incremental parsers with ANTLR grammars
Bogdan Mitu Wed Feb 11, 2004 13:38
A framework for creating "syntax aware text components" using ANTLR lexers and parsers. Included are syntax highlight for several languages and on-the-fly reparsing of Java source files (the token-chain and the AST are updated on each key pressed).

Java Cross Referencing Tool (Alpha Release)
Jim OConnor Wed Jan 7, 2004 10:37
Summary of email sent to newsgroup at yahoo. Input: *.java files, jar files, or a directory structure Output: An XML document with a hierarchical representation of packages, classes and references. Installation and use: "java antlr.Tool" the g files (javatree.g is the supergrammar for defs.g, refs.g, and prerefs.g) Look in Main.java, MyOutput.java and CodeProject.java for flags. Enjoy! Jim.OConnor@microfocus.com

Token Stream Viewer
Santhosh Kumar T Wed Jan 7, 2004 08:36
View the tokens in Token Stream visually and see from which location this token referes to in the given input.

Infomix 4GL Grammar
Mon Jan 5, 2004 17:36
A 1st attempt of a Infomix 4GL Grammar, works with all the files i tried, but need some improvements

Working recipe to build Antlr on cygwin
Ashish Aggarwal Sun Nov 30, 2003 20:58
As every new user do face problems in building antlr on windows,using cygwin/java/gcc, I (on behalf of our company, Atrenta), would like to share with you all this working recipe on "How To Build Antlr On Cygwin".

Makefile to build ANTLR binary for GCJ
Luca Di Gaspero Sat Nov 22, 2003 19:12
The current linux ANTLR binary relies on the version of the gcj library employed for compiling it (i.e., it is not fully static). For instance, on SuSE Linux 8.2 it does not work at all. Here is a makefile so you can do a local build.

C# Port of StringTemplate
Steve Sarandos Wed Nov 5, 2003 16:08
A port of StringTemplate to C#

ANTLR dll and lib files compiled with MSVC 7.0
Arnar Birgisson Sat Oct 4, 2003 11:56
This zip file contains compiled dll versions of the ANTLR C++ runtime. Both release and debug builds are provided, with a symbols file as well. This build is based on Ric Klaren's development version of ANTLR 2.7.2 (2.7.3) dated 2003-09-11.

ANTLR Python code generator using Jython
Amol Dharmadhikari Wed Sep 17, 2003 11:41
The current version is just the jython code generator i.e. to access it you will need some java classes and so you need jython. I also include the jar of the entire project imported into eclipse that has the python code generator files.

antlraux
Enrique Jose Garcia Cota (kikito) Thu Jul 31, 2003 04:29
antlraux is a support library for antlr. It features extended one Token class, several extended AST nodes and contextual information management (Scopes+Declarations+Types). It also includes a command-line parser. It is written in java (sorry, still no C++ version) and distributed under the GPL license.

Converting AST to XML
Stefan Ziel (stefan.ziel@terra.com.br) Fri Jul 25, 2003 14:06
Example how to convert an AST to XML by implementing the org.xml.sax.XMLReader Interface. This example uses the Java parser.

JavaEmitter
Andy Tripp Thu Jul 17, 2003 01:08
JavaEmitter prints reasonably formatted Java code from an ANTLR AST.

Antlr 2.7.2 J# Project
Tomasz Jastrzebski Sun Jul 6, 2003 08:41
J# Project files - allows Antlr Code Generator to be built in VS.Net 2003 environment

Antlr 2.7.2 .Net Executables
Tomasz Jastrzebski Sun Jul 6, 2003 08:30
Net signed executables buit with J# compiler

ANTLR 2.7.2 C# code generator Service Pack 1
Kunle Odutola Fri Jul 4, 2003 14:26
An update for the C# runtime and code-generator in ANTLR 2.7.2 only. Unzip the archive into your ANTLR 2.7.2 directory. It contains only the modified files and can be applied to other 2.7.2 services releases such as Ric Klaren's latest C++ snapshot (if both C++ and C# are important to you).

Various antlr patches
Robert Colquhoun Fri Jul 4, 2003 05:05
3 Patches for antlr 2.7.2: 1) Remove import statements in generated antlr code - prevents name clashes and warnings when used with eclipse 2) Fix to stopping ClassCastException's that occur in protected tree walker rules which legally match nothing 3) Java 1.1 compatibility patch. Minor changes to remove jdk1.2 classes and methods

String interpolation sample
Rodrigo B. de Oliveira
The point of this sample is to show how to combine a custom TokenStream implementation (TokenStreamRecorder) with the antlr stream multiplexing facility (TokenStreamSelector) to parse expressions inside double quoted strings:

print "3*2-1: ${3*2-1}"

The sample actually implements a very simple interpreter and allows "programs" to be run interactively.

ANTLR Meta Grammar (with tree parser, grammar printer)
Terence Parr
A parser for ANTLR's metalanguage that builds an AST representing the grammar. Included is antlr.tree.g that walks the trees and antlr.print.g that walks the trees and spits the grammar back out. Note that it ignores everything except stuff relevant to rules and possibly even ranges at the moment.

Java Cross Referencing Tool (a head start, but incomplete)
Terence Parr
This code is a first experiment into a Java cross referencing tool (uses ANTLR 2.7.2). It is not finished and I can't even remember what state it is in. Literally it may not compile. I suspect it requires some internal jGuru code to compile/run. Also note that the java.g stuff might be out of sync with the latest at the antlr.org site; though I think I used this to make the improvements for the antlr.org site.