repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf54170
)
add printing for ast
author
Mart Lubbers
<mart@martlubbers.net>
Wed, 13 Apr 2016 16:28:48 +0000
(18:28 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Wed, 13 Apr 2016 16:28:48 +0000
(18:28 +0200)
spl.icl
patch
|
blob
|
history
diff --git
a/spl.icl
b/spl.icl
index
291b0bd
..
c42412c
100644
(file)
--- a/
spl.icl
+++ b/
spl.icl
@@
-70,8
+70,9
@@
Start w
= case sem parseOut of
(Left e) = snd $ fclose (stdin <<< join "\n" (map toString e)) w
(Right (semOut, gamma))
= 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")
+ # 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
= snd $ fclose (stdin <<< "\n") w
where
printTokens :: [Token] -> String