Skip to content

git-elliot/Boolean-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boolean-Calculator

Boolean calculator for lex and yacc which performs operations like not, and, or, nor, xnor, nand, etc. Check grammar_specifications file for more information about grammar used in this calculator.

How to compile

flex bcalc.l
bison bcalc.y -d
gcc bcalc.tab.c -ll -ly

or use single command make

make

How to Run

./a.out

After running the a.out file, your calculator runs and you have to enter the input. e.g., 1 xor 0.

About

A tiny compiler for computing boolean expressions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages