- <<< "//SEM G\n" <<< printConstraints constraints <<< "//SEMA\n")
- = snd $ fclose (stdin <<< "\n") w
+ <<< "//SEM G\n" <<< toString ast <<< "//SEMA\n")
+ = case gen ast of
+ (Left e) = snd $ fclose (stdin <<< e) w
+ (Right asm)
+ # stdin = if (not args.gen) stdin (stdin
+ <<< ";CODE GEN\n" <<< asm <<< "\n;CODE GEN\n")
+ = snd $ fclose (stdin <<< "\n") w