Giter Site home page Giter Site logo

c-'s Introduction

c-

This project is a compiler for the C- language targeting the Tiny VM. This program utilizes flex and bison for scanning and parsing.

Building

These instructions for Linux assume you already have GCC/G++, Flex, Bison, and Make.

git clone https://github.com/zachoooo/c-
cd c-
make

You should then be left with a program called c-. To use it, just type ./c- [sourceFile] where [sourceFile] is the name of your C- program file. Use ./c- -h to display the help page to find additional usage information. There is no install script so you will need to copy this to /usr/local/bin if you want it installed.

Acknowledgements

The C- language was defined by Dr. Robert Heckendorn at the University of Idaho and can be found here: http://marvin.cs.uidaho.edu/Teaching/CS445/c-Grammar.pdf

This language definition may differ somewhat from what my compiler recognizes as the class may have changed and this document may be updated.

The TinyVM can be found in the test folder. The TinyVM was originally written by Kenneth C. Louden for the textbook "Compiler Construction: Principles and Practice" and was then heavily modified by Dr. Heckendorn for this class.

c-'s People

Contributors

zachoooo avatar

Watchers

 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.