Yacc code writing tutorials online use single quotes for semicolons and other characters:
';' '+' '-' (etc)
however when using:
'<' or '>'
I got errors until I changed it to double quotes:
"<" or ">"
Similarly
'>=' '=<' '==' '!='
don't seem to match
">=" "=<" "==" "!="
How does yacc treat single quotes? double quotes? And when should tokens be used instead of putting things in quotes?
ie: '!=' vs "!=" vs TOKNOTEQUALS
source share