• Stars
    star
    220
  • Rank 179,366 (Top 4 %)
  • Language Yacc
  • License
    GNU General Publi...
  • Created over 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple example demonstrating a calculator written with flex/bison

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