ANTLR Symbol Table Library

ANTLR Symbol Table Library.

License

License

Categories

Categories

Ant Build Tools ANTLR Compiler-compiler
GroupId

GroupId

org.antlr
ArtifactId

ArtifactId

symtab
Last Version

Last Version

1.0.8
Release Date

Release Date

Type

Type

jar
Description

Description

ANTLR Symbol Table Library
ANTLR Symbol Table Library.
Project URL

Project URL

http://www.antlr.org
Project Organization

Project Organization

ANTLR
Source Code Management

Source Code Management

https://github.com/antlr/symtab/tree/master

Download symtab

How to add to project

<!-- https://jarcasting.com/artifacts/org.antlr/symtab/ -->
<dependency>
    <groupId>org.antlr</groupId>
    <artifactId>symtab</artifactId>
    <version>1.0.8</version>
</dependency>
// https://jarcasting.com/artifacts/org.antlr/symtab/
implementation 'org.antlr:symtab:1.0.8'
// https://jarcasting.com/artifacts/org.antlr/symtab/
implementation ("org.antlr:symtab:1.0.8")
'org.antlr:symtab:jar:1.0.8'
<dependency org="org.antlr" name="symtab" rev="1.0.8">
  <artifact name="symtab" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.antlr', module='symtab', version='1.0.8')
)
libraryDependencies += "org.antlr" % "symtab" % "1.0.8"
[org.antlr/symtab "1.0.8"]

Dependencies

compile (1)

Group / Artifact Type Version
org.antlr : antlr4-runtime jar 4.6

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

symtab

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.

Example

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 https://oss.sonatype.org/content/repositories/snapshots/org/antlr/symtab
org.antlr

Antlr Project

The Project organization for the ANTLR parser generator.

Versions

Version
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3