https://github.com/nerett/rd_calculator
A simple, recursive descent-based CLI calculator
https://github.com/nerett/rd_calculator
calculator math-analysis recursive-descent-parser
Last synced: about 1 year ago
JSON representation
A simple, recursive descent-based CLI calculator
- Host: GitHub
- URL: https://github.com/nerett/rd_calculator
- Owner: nerett
- License: gpl-3.0
- Created: 2022-04-16T19:35:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T20:12:56.000Z (about 3 years ago)
- Last Synced: 2025-02-17T05:14:34.271Z (over 1 year ago)
- Topics: calculator, math-analysis, recursive-descent-parser
- Language: C++
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RDCalc
`RDCalc` is a simple, recursive descent-based CLI calculator. It analyzes mathematical expression using grammars and calculates the result.
## Usage
You can run `RDCalc` with (also see [Building from source](https://github.com/nerett/rd_calculator#building-from-source))
```shell
make run $
```
Supported symbols: `(`, `)`, `*`, `/`, `+`, `-` and numbers. You have to put `$` in the end of expression.
Use `make rund` instead to run in debug mode.
## Building from source
Download this repository with
```shell
git clone https://github.com/nerett/rd_calculator.git
```
Build it with
```shell
cd rd_calculator/
make
```
To totally rebuild the project run
```shell
make clean
make
```
## Documentation
This section isn't done yet.
## About project
This programm was written during MIPT **Ded's** cource.