Generic symbol table for lexically/statically scoped languages
Clone or download
Latest commit d24e0a8 Mar 1, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc update doc Mar 1, 2017
src/org/antlr/symtab get() didn't allow index 0 Jan 8, 2017
.gitignore Initial commit Mar 16, 2015
LICENSE tweak license Mar 23, 2015 update doc Mar 1, 2017
pom.xml [maven-release-plugin] prepare for next development iteration Feb 22, 2017
symtab.ipr update to 4.6 antlr Dec 30, 2016


A generic symbol table for lexically/statically scoped languages. The library is slightly dependent on ANTLR parse tree types, ParserRuleContext, but you could strip these out if you want to use it without ANTLR and don't want the dependency.

Uses Java 8 (a little).

Grab the latest jar, javadoc.

Maven users should use group id org.antlr and artifact id symtab.

Here is the class hiearchy:

Or, zooming in on the aggregate symbols:

Building / installing

It's just a bunch of Java code so you can compile it like any other pile of code in a development environment. It requires Java 8.

The easiest method is to use maven:

$ cd symtab
$ javac -version
javac 1.8.0_31
$ mvn package
[INFO] Building jar: /Users/parrt/antlr/code/symtab/target/symtab-1.0.3-SNAPSHOT.jar

Or you can mvn install to have it placed into your ~/.m2 maven cache.


Simple example from my prog lang course

Releasing version

mvn deploy
mvn release:prepare
mvn release:perform

It will start out by asking you the version number and other stuff then update pom.xml.

Then go to sonatype staing repo mgr

Handy command to wack snapshots:

$ curl -v -u user:password -X DELETE