Git Product home page Git Product logo

loraxlanguagecompiler's Introduction

Lorax Programming Language

Compiler for Lorax, a language focused on making tree operations simple.

Authors: Doug Beinstock (dmb2168), Chris D'Angelo (cd2665), Zhaarn Maheswaran (zsm2103), Tim Paine (tkp2108), Kira Whitehouse (kbw2116). Gource Visualization.

Requirements

Quick Start

$ cat hello.lrx
$ int main() { print("hello, world\n"); }
$ make
$ ./lorax -b hello.lrx
$ ./a.out
$ hello, world
$

Compiler Flags

  • -a Print the Abstract Syntax Tree digested source code.
  • -t Print an alphabetical list of the symbol table created from source code.
  • -s Run Semantic Analysis on source code.
  • -c Compile source code to target c language. Default to stdout, or written to filename present in third command line argument.
  • -b Compile source code to binary ouput. By default to a.out, or the filename present in third command line argument.

Running Tests

$ make
$ ./testall.sh
$

Examples

If you're interested in some real world examples of the lorax language check out the examples directory.

User Guides

loraxlanguagecompiler's People

Contributors

developertoolsdemo avatar dmb2168 avatar kwhitehouse avatar mychrisdangelo avatar timkpaine avatar zhaarn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tkp-archive

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.