Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T06:14:28.000Z (over 2 years ago)
- Last Synced: 2024-07-16T15:39:24.362Z (4 months ago)
- Language: Yacc
- Homepage:
- Size: 57.6 KB
- Stars: 220
- Watchers: 14
- Forks: 79
- 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