Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snehi23/SER502_Compiler_and_Interpreter
Language Design Project using flex and bison for compiler and python for interpreter [Run time environment]
https://github.com/snehi23/SER502_Compiler_and_Interpreter
Last synced: 3 months ago
JSON representation
Language Design Project using flex and bison for compiler and python for interpreter [Run time environment]
- Host: GitHub
- URL: https://github.com/snehi23/SER502_Compiler_and_Interpreter
- Owner: snehi23
- Created: 2016-04-19T02:26:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-04T01:41:42.000Z (about 8 years ago)
- Last Synced: 2024-04-24T15:35:02.096Z (7 months ago)
- Language: C
- Size: 227 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - SER502_Compiler_and_Interpreter
README
# SER502_Compiler_and_Interpreter
Language Design Project using flex and bison for compiler and C# for interpreter [Run time environment]Steps to generate G28.g28 executable
1. flex LOL.l
2. bison -d LOL.y
3. gcc -o Compiler_Lol lex.yy.c LOL.tab.c -ll -lmSteps to compile .lol code
1. ./Compiler_Lol [file-name].lol
Steps to interpret and run code [on Windows/mac OSX/LINUX]
1. mcs Runtime_Lol.cs
2. mono Runtime_Lol.exe [file-name].lol.asmInstallation Note:
Steps to install mono framework on
a) mac OSX
1. Download Mono 32-bit from http://www.mono-project.com/download/ (Works on 64 bit machines too)
2. Follow the installation guidelines from http://www.mono-project.com/docs/about-mono/supported-platforms/osx/b) Windows
1. Download Mono 32-bit from http://www.mono-project.com/download/ (Works on 64 bit machines too)
2. Follow the installation guidelines from http://www.mono-project.com/docs/getting-started/install/windows/c) LINUX
Run the following commands from the terminal:
1) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
2) echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
3) sudo apt-get update
4) sudo apt-get install mono-mcs