Fix precedence bugs, test on homework
This commit is contained in:
@@ -6,10 +6,10 @@ import ply.yacc as yacc
|
||||
import compiler as ast
|
||||
from triplalex import tokens
|
||||
|
||||
# Operator precedence
|
||||
precedence = (
|
||||
('left', 'SEMICOLON'),
|
||||
('right', 'IN'),
|
||||
('left', 'SEMICOLON'),
|
||||
('right', 'ASSIGN'),
|
||||
('left', 'COMP'),
|
||||
('left', 'EQOP'),
|
||||
('left', 'AOP'),
|
||||
|
||||
Reference in New Issue
Block a user