https://github.com/nsavinda/calc-parser
Simple calculator using flex and bison.
https://github.com/nsavinda/calc-parser
bison-flex bison-yacc compiler compiler-design parser
Last synced: about 1 month ago
JSON representation
Simple calculator using flex and bison.
- Host: GitHub
- URL: https://github.com/nsavinda/calc-parser
- Owner: nsavinda
- Created: 2024-07-02T14:40:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-19T16:30:00.000Z (almost 2 years ago)
- Last Synced: 2024-07-19T22:40:45.528Z (almost 2 years ago)
- Topics: bison-flex, bison-yacc, compiler, compiler-design, parser
- Language: Yacc
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calc
This project implements a simple calculator using flex and bison.

## Building
To build the calculator, run the following command:
```bash
make
```
This will create an executable file named `calc`.
## Running
To run the calculator, type the following command:
```bash
./calc
```
You can then enter mathematical expressions at the prompt. The calculator will evaluate the expressions and print the results.
## Debugging
To build the calculator with debugging symbols, run the following command:
```bash
make debug
```
This will create an executable file named `calc` with debugging symbols. You can then use a debugger such as gdb to debug the calculator.
## Testing
To run the test suite, run the following command:
```bash
make test
```
This will run the test suite and print the results.
## Cleaning
To clean up the project, run the following command:
```bash
make clean
```
This will remove all of the generated files.