Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 519 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 519 Bytes

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.