• Stars
    star
    221
  • Rank 179,773 (Top 4 %)
  • Language Yacc
  • License
    GNU General Publi...
  • Created almost 13 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