Distinguish ParseError and TransformError
Add Transition AST node
Add Transition node transformer
Fix visit_Compare in codegen