I am new to bison, I have some basic questions if you could help me with them:
Which one is right from the following:
%left ’*’ ’/’
or
%left '*' '/'
that means instead of getting the token I use it to define it in the parser file
Can I define a rule like this:
EXP -> EXP "and" EXP
instead of
EXP -> EXP AND EXP //AND here is a token
If I have LEX and BISON files for building a parser which one should include the other and if I have used a common header file in which one of them should the file be defined?
If the BISON algorithm found a match according to one of the rules what happens first it makes reduce then it does the action defined for the rule that matched or first it does the action and after that makes reduce to the stack?