Skip to content
A simple example demonstrating a calculator written with flex/bison
Branch: master
Clone or download
Latest commit c854c74 Sep 29, 2018

README.md

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
You can’t perform that action at this time.