Use bison and flex to implement a calculator which can deal with arithmetic and logic operation.