Relative Content

Tag Archive for compiler-constructionbisonflex-lexer

flex and bison behave unexpectedly towards my input

I was trying to write a logical expression evaluation tool with flex and bison. I’ve gone over the code many times but when I run the executable it just ignores my input and prints Syntax error after several inputs. My flex file lexer.l is