Skip to content
joseflores314Public

About

Homework 03 and 04 of programming languages class

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages