1
Vote

nonassoc works as right association

description

To reproduce follow this steps:
  1. from provided Calc.y build a parser (executable)
  2. run it
  3. enter "10-3-2"
  4. the outcome is "5" (correct)
  5. edit Calc.y
  6. change the associativity in line with "-" to "%nonassoc"
  7. repeat steps 1-3
  8. the outcome is "9" despite the fact there should be syntax error
Sorry for strange formatting, but it seems CodePlex supports only plain text.

comments

k_john_gough wrote Mar 14, 2013 at 3:39 AM

Hi macias
thanks for the two issues. I shall have a look at both issues soon, and see if I can get fixes in the codebase.
John