binary_ops = {
+ "^": ast.BitXor(),
"&": ast.BitAnd(),
"|": ast.BitOr(),
"+": ast.Add(),
precedence = (
("left", "EQ", "GT", "LT", "LE", "GE", "LTU", "GTU"),
("left", "BITOR"),
+ ("left", "BITXOR"),
("left", "BITAND"),
("left", "PLUS", "MINUS"),
("left", "MULT", "DIV", "MOD"),
| comparison LT comparison
| comparison GT comparison
| comparison BITOR comparison
+ | comparison BITXOR comparison
| comparison BITAND comparison
| PLUS comparison
| comparison MINUS
if __name__ == '__main__':
isa = PyISAWriter()
- isa.write_pysource('fixedstore')
+ isa.write_pysource('fixedlogical')
exit(0)
+ isa.write_pysource('fixedstore')
isa.write_pysource('fixedload')
isa.write_pysource('comparefixed')
isa.write_pysource('fixedarith')