Giter Site home page Giter Site logo

bucolcompiler's Introduction

ISE CS4455

David Laffey: 22385959

Project Structure

root |---lexer.l - The lexer file that defines the tokens โ”‚---parser.txt - input file โ”‚---parser.y - parser file (run from here) |---bucol.c |---bucol.h |---table.h |---table.c

Build Instructions

Readme: To run the compiler either use the coderunner setup I already have and press the play button from the parser.y file which runs all the necessary files and takes the input txt called parser.txt.

OR : To run the compiler put these commands in the terminal and the text you want to compile in the parser.txt file:

fileName="parser.y"

dir=$(dirname "$fileName")

filename=$(basename "$fileName" .y)

flex -o del.yy.c "$filename".l

bison -d "$fileName

gcc -o "$filename".out del.yy.c "$filename".tab.c bucol.c table.c -lm

./"$filename".out < "$filename".txt

features

  • declaring variables
  • assigning values to variables
  • adding
  • printing strings to terminal
  • finishing the program
  • get input

bucolcompiler's People

Contributors

dlaffey1 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.