Skip to content

joseflores314/ToyParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToyParser

Solution to Homework 03 and Homework 04 of programming languages course

Pre-requisites

Pipenv is used to manage dependencies inside the project, it’s recommended to use it instead of installing dependencies by trial and error.

Pipenv project link

Python 3.7 was used to develop this project and pipenv will attempt to create a python 3.7 environment, it’s necessary to have it installed inside the machine. However I would seriously recommend to instead make use of pyenv as it’s much much easier than to manually install python versions and it’s supported by pipenv

Pyenv project link

Instructions

Cd to project directory

Create a virtual environment for the project pipenv install

If it’s desired to run unit tests create virtual environment in the following way pipenv install --dev

Initialize a pipenv session by running pipenv shell

Scanner instructions

Execute the program using the following structure python minicompiler.py scanner INPUT_STRING

Parser instructions

Execute the program using the following structure python minicompiler.py parser INPUT_STRING

Unit test instructions

To execute unit tests in the project run pytest command

About

Homework 03 and 04 of programming languages class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages