First try

This commit is contained in:
Jan-Niclas Loosen
2026-01-16 16:48:34 +01:00
parent a2cc0adb52
commit 530c597fc1
12 changed files with 330 additions and 42 deletions

View File

@@ -3,16 +3,21 @@
# ------------------------------------------------------------
import ply.yacc as yacc
import compiler as ast
import cfg_build as ast
from triplalex import tokens
precedence = (
('right', 'IN'),
('left', 'SEMICOLON'),
('left', 'IN'),
('left', 'ELSE'),
('left', 'COMMA'),
('right', 'ASSIGN'),
('left', 'COMP'),
('left', 'EQOP'),
('left', 'AOP'),
('left', 'COMP'),
('left', 'EQOP'),
)
start = 'E'