X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=spl.icl;h=2a4fb97e0b4cdaf0e6e712e31fad5e233506aaab;hb=c13e6ac6caa1b0d3578caf9310303920d47cf85f;hp=1690d71850c97d1d312ee9c9808fa992dd623fac;hpb=f5e125920d85bc53eda7b51f3f03e89fcaf3a0ce;p=cc1516.git diff --git a/spl.icl b/spl.icl index 1690d71..2a4fb97 100644 --- a/spl.icl +++ b/spl.icl @@ -12,6 +12,7 @@ import Data.Maybe import Data.Func import System.CommandLine import GenPrint +import Data.Map from Text import class Text(concat,join), instance Text String import parse @@ -67,9 +68,9 @@ Start w stdin <<< "//PARSER\n" <<< toString parseOut <<< "//PARSER\n") = case sem parseOut of (Left e) = snd $ fclose (stdin <<< join "\n" (map toString e)) w - (Right semOut) + (Right (semOut, gamma)) # stdin = if (not args.sem) stdin ( - stdin <<< "//SEM\n" <<< toString semOut <<< "//SEM\n") + stdin <<< "//SEM\n" <<< toString gamma <<< "//SEM\n") = snd $ fclose stdin w where printTokens :: [Token] -> String