Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. ** Conflict (shift/reduce) in state 21.
  2. ** Tokens involved: VAR OPER LPAREN LBRACKET INT FLOAT BOOL BEGIN
  3. ** The following explanations concentrate on token VAR.
  4. ** This state is reached from main after reading:
  5.  
  6. avg_expr OPER avg_expr
  7.  
  8. ** The derivations that appear below have the following common factor:
  9. ** (The question mark symbol (?) represents the spot where the derivations begin to differ.)
  10.  
  11. main
  12. expr SEMISEMI main
  13. avg_expr
  14. call
  15. (?)
  16.  
  17. ** In state 21, looking ahead at VAR, reducing production
  18. ** call -> avg_expr OPER avg_expr
  19. ** is permitted because of the following sub-derivation:
  20.  
  21. avg_expr simple_expr // lookahead token appears because simple_expr can begin with VAR
  22. call // lookahead token is inherited
  23. avg_expr OPER avg_expr .
  24.  
  25. ** In state 21, looking ahead at VAR, shifting is permitted
  26. ** because of the following sub-derivation:
  27.  
  28. avg_expr OPER avg_expr
  29. call
  30. avg_expr simple_expr
  31. . VAR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement