Skip to content

A simple example demonstrating a calculator written with flex/bison

License

Notifications You must be signed in to change notification settings

auriel-klasovksy/flex-bison-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Yacc 74.6%
  • Lex 17.3%
  • Makefile 8.1%