Coder Social home page Coder Social logo

arithlang's Introduction

*Lang: A family of pedagogical interpreters

This repository contains code and associated documents for each chapter in the textbook "An Experiential Introduction to Principles of Programming Languages" by Hridesh Rajan. Please report errors and difficulties to the author at [email protected]

This framework requires that you have latest versions of Java as well as Ant installed on your computer.

Organization

This code is organized as follows:

  • build.xml: This is the ant build file that contains the target parser for generating parsers for all programming languages. You should run it as a ant script to remove "Parser not found" errors from your code.

  • src: The source directory that contains source code for the language e.g. Arithlang.

  • build: The build directory that contains generated classfiles. Note that this directory must be called build in order for the interpreter to run program files correctly.

  • lib: libraries e.g. antlr jar file. These files must be on the build path of the project.

Run the Interpreters

You can run the interpreters as follows.

  • Build the parsers by running the build.xml. You can do that from command-line by writing

    ant build.xml or simply ant

From within the Eclipse, you can build the parsers by right clicking on the build.xml file and selecting "Run As" followed by "Ant Build".

  • Refresh your project.

  • Select "Interpreter.java", right click, and select "Run As" -> "Java Application".

arithlang's People

Contributors

hridesh avatar dobsonddev 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.