https://github.com/meyerd/flex-bison-example
A simple example demonstrating a calculator written with flex/bison
https://github.com/meyerd/flex-bison-example
Last synced: 2 months ago
JSON representation
A simple example demonstrating a calculator written with flex/bison
- Host: GitHub
- URL: https://github.com/meyerd/flex-bison-example
- Owner: meyerd
- License: gpl-3.0
- Created: 2012-01-09T10:34:19.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T06:14:28.000Z (about 3 years ago)
- Last Synced: 2024-11-16T12:34:38.957Z (8 months ago)
- Language: Yacc
- Homepage:
- Size: 57.6 KB
- Stars: 221
- Watchers: 14
- Forks: 83
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A small example of a calculator written with flex / bison.
Compile using the `Makefile`
$ make
or manually on Linux, follow this steps:
$ bison -d calc.y
$ flex calc.l
$ gcc calc.tab.c lex.yy.c -o calc -lm
$ ./calc