Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateuszitelli/compiler-studies
Studies for MC3201 - UFABC
https://github.com/mateuszitelli/compiler-studies
Last synced: 16 days ago
JSON representation
Studies for MC3201 - UFABC
- Host: GitHub
- URL: https://github.com/mateuszitelli/compiler-studies
- Owner: MateusZitelli
- Created: 2015-03-16T20:29:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-16T20:16:57.000Z (over 9 years ago)
- Last Synced: 2024-04-15T22:34:08.536Z (9 months ago)
- Language: Python
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compilers studies
Some code developed for study during the enrolment of the compile course at
UFABC (MC3201).What I've done so far:
- [X] LL(1) parser
- [ ] LR parser## LL(1) parser
My actual implementation of the LL(1) parser checks if an given input is a
valid LISP like language, it supports just the 4 basic arithmetic operations
(+ - * /) with integers.e.g.:
```lisp
(+ 2 3)(* (3 (/ 3 2)) (+ 2 3))
```### Running
```sh
python3 src/parser.py
```### Testing
```sh
python3 src/test_parser.py
```