Repo for the programming languages class winter 2020
Members :
- gavendanoc
- DIEG055
- saduquebe
This guide follows the recommended project structure for testing given here
This repo uses a python library called unittest, which allows testing as a command line tool. This site offers an introduction, but you can always check the docs.
Running lexical analyzer
$ cd src
$ python3 lexical.pyRunning syntactic analyzer
$ cd src
$ python3 main.pyFor checking all test:
$ cd code
$ python3 -m unittestFor checking a single set of tests, in this case characters:
$ cd code
$ python3 -m unittest tests.testlexical.testCharactersAnother example, running test over a single test set
$ cd code
$ python3 -m unittest tests.testsyntax.testExamplesYou can also check a whole section, for running all the syntax tests do :
$ cd code
$ python3 -m unittest discover tests.testsyntax