Giter Club home page Giter Club logo

symtab's Introduction

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

symtab's People

Contributors

parrt avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.