Giter Club home page Giter Club logo

ball's Introduction

/*
 * COMS W4115 PROGRAMMING LANGUAGES AND TRANSLATORS FALL 2009
 * Team llamamelon - BALL language
 * Authors: Cipta Herwana, Daniel Lasry, Sam Lee, Nathan Miller, Jordan Schau 
 * README.txt - How to compile and run
 */
 
Where are the source files?
---------------------------
Our program consists of 16 java files now, most of them small files that contain
small fragments of the java code for a given nonterminal like print statements
or the program. The source is located in ./src, divided to 4 packages.

1. codegen  		= this package contains classes that correspond with the grammar
              		 nonterminals found in our program. All of them are subclasses of
              		 ParseTreeNode.java. Each has a method gen() that will print its 
              		 java code to stdout (for now).
             
2. compiler 		= this is where the compiler, that is the lexer and parser, are
             		 defined The intermediate code generator is just the gen()
              		 method for now, it might change when we add more stuff. The symbol
             		 table is defined here as well.
              
3. lexer    		= this package contains classes for lexical analysis. Things like
              		 what a token is, a keyword, string constants, etc. are defined
              		 here.

4. javabackend		= this package contains all of the supporting java files for BALL.
			 (for example, built-in functions and classes).
              
Compiling and running the program
---------------------------------
Compiling isn't done with a general makefile now. Instead, we're using Ant to
build the project.

http://en.wikipedia.org/wiki/Apache_Ant

To compile the program, just type "ant compile" in the terminal. There should be
an ant program wherever you have Java, I know cunix and clic has it. All the
class files are made in a new directory called "build".

To clean everything, go to the top level and just enter "ant clean". The "build"
directory will be deleted.

How it works
============
just run the BALL shell script in the newly created build/classes with the BALL
source as the argument.

ball's People

Contributors

jordanschau avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.