I want to write lex and yacc. I installed flex, bison and dev c++.but don’t know how to do this.
You could ask it as:
How can I write Lex and Yacc code to take two values as input, where the first value is denoted as ‘a’ and the second value as ‘b’? If ‘a’ is greater than ‘b’, it should perform ‘a + b’; otherwise, it should perform ‘a – b’.can you please help me.