<commit_before># Compiler Project

A project for my EECE 6083: Compiler Theory class.

## Quick Start
* Install [Python 2.7](http://python.org/download/) if it is not already installed on your system.
* You can see a sample of the scanner output by running the following from the `compiler` directory:
```
python src/scanner.py test/test_program.src
```
* You can see a sample of the parser output by running either of the following:
```
python src/parser.py test/test_program.src
```
```
python src/parser.py -e "1 + 2 * 3 / (4 + 5) == true"
```

## Testing
Unit Tests for the compiler are written for the [nose](https://github.com/nose-devs/nose) testing framework.
If you have nose instaleld on your system, you can run `nosetests` from the `compiler` directory to run the tests.
The tests have 100% code coverage of the scanner and parser, as reported by the [coverage](http://pypi.python.org/pypi/coverage) package.

## Author
<NAME><commit_msg>Updated README for type checker.<commit_after># Compiler Project

A project for my EECE 6083: Compiler Theory class.

## Quick Start
* Install [Python 2.7](http://python.org/download/) if it is not already installed on your system.
* You can see a sample of the scanner output by running the following from the root `compiler` directory:
```
python src/scanner.py test/test_program.src
```
* You can see a sample of the parser output by running either of the following:
```
python src/parser.py test/test_program.src
```
```
python src/parser.py -e "1 + 2 * 3 / (4 + 5) == true"
```
* You can see a sample of the typechecking by running the following:
```
python src/typechecker.py test/test_program.src
```

## Testing
Unit Tests for the compiler are written for the [nose](https://github.com/nose-devs/nose) testing framework.
If you have nose instaleld on your system, you can run `nosetests` from the `compiler` directory to run the tests.
The tests have 100% code coverage of the scanner, parser, and type checker, as reported by the [coverage](http://pypi.python.org/pypi/coverage) package.

## Author
<NAME>
{'fraction_non_alphanumeric': 0.10804263565891473, 'fraction_numerical': 0.013565891472868217, 'mean_word_length': 4.281329923273657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '272616', 'n_tokens_mistral': 655, 'n_tokens_neox': 599, 'n_words': 271}