KangmingZhao / flex-bison-example

A simple example demonstrating a calculator written with flex/bison

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple example demonstrating a calculator written with flex/bison

License:GNU General Public License v3.0


Languages

Language:Yacc 74.1%Language:Lex 17.1%Language:Makefile 8.7%