https://github.com/anuskbr/cc-programming-language
https://github.com/anuskbr/cc-programming-language
bison-flex yacc-lex
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anuskbr/cc-programming-language
- Owner: AnuskBr
- Created: 2024-12-05T16:33:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-05T17:35:39.000Z (over 1 year ago)
- Last Synced: 2025-08-19T21:36:29.242Z (10 months ago)
- Topics: bison-flex, yacc-lex
- Language: Yacc
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cc-Programming-language
This project showcases the creation of a simple programming language compiler using **FLEX** and **BISON**. The compiler supports basic arithmetic operations and processes instructions entered in a terminal.
## Features
- Arithmetic operations: addition, subtraction, multiplication, division.
- Modulo (`%`) and absolute value (`|x|`).
- Instructions are separated by `;`.
## Build Instructions
1. Generate parser and tokens:
bison -y -d gramatica.y
2. Generate lexical analyzer:
flex limbaj.l
3. Compile everything:
gcc -o executie.exe y.tab.c lex.yy.c
## Usage
Run executie.exe in the terminal to input and evaluate expressions:
4 plus [10 minus(10 impartit 2 minus 3)];
6%4 ori 3;
For more information, check the documentation available in Romanian:**[Documentatie_LFC.docx](Documentatie_LFC.docx)**