https://github.com/gthomas08/flex-bison-project
Lexical and grammatical implementation of a subset of the Python programming language.
https://github.com/gthomas08/flex-bison-project
bison flex parser python
Last synced: 5 months ago
JSON representation
Lexical and grammatical implementation of a subset of the Python programming language.
- Host: GitHub
- URL: https://github.com/gthomas08/flex-bison-project
- Owner: gthomas08
- Created: 2020-07-28T09:29:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T09:50:00.000Z (over 4 years ago)
- Last Synced: 2025-01-21T03:41:45.523Z (9 months ago)
- Topics: bison, flex, parser, python
- Language: C
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flex and Bison Project
This project is part of the Computer Engineering and Informatics Department (CEID) of University of Patras curriculum.
## Summary
The goal of this project was to implement the lexical and grammatical part of a subset part of the Python programming language. This was done using Flex for the lexical part and Bison for the grammatical one.
## Compilation
bison -y -d parser.y && flex scanner.l && gcc -c y.tab.c lex.yy.c && gcc y.tab.o lex.yy.o -o myParser
## Run
./myParser test_cases/x
Where x is the name of the file you want to parse.