X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=spl.icl;h=c42412c6fc9bca69e1da3914a037f85bc9379db6;hb=3d65732efb079082e24e29383b24f0e9968100cf;hp=5dad10ea107e724307abd66ad97d038792f544d9;hpb=617ef323242c24a07a4f4fe988035c4ea111c342;p=cc1516.git diff --git a/spl.icl b/spl.icl index 5dad10e..c42412c 100644 --- a/spl.icl +++ b/spl.icl @@ -70,9 +70,10 @@ Start w = case sem parseOut of (Left e) = snd $ fclose (stdin <<< join "\n" (map toString e)) w (Right (semOut, gamma)) - # stdin = if (not args.sem) stdin ( - stdin <<< "//SEM\n" <<< toString gamma <<< "//SEM\n") - = snd $ fclose stdin w + # stdin = if (not args.sem) stdin (stdin + <<< "//SEM G\n" <<< toString gamma <<< "//SEM A\n" + <<< "//SEM A\n" <<< toString semOut <<< "//SEM A\n") + = snd $ fclose (stdin <<< "\n") w where printTokens :: [Token] -> String printTokens ts = concat $ flatten $ map pt ts