feat: sequencing of expressions with newline to same indent #11

Merged
glen merged 2 commits from soft_sequence into main 2021-02-06 05:11:42 +00:00
1 changed files with 3 additions and 7 deletions
Showing only changes of commit 54bad48d9e - Show all commits

View File

@ -17,19 +17,15 @@ rules
hs: TopLevel((c,p)) -> $[import System.IO
data IOStream = StdIO
stdio :: IO IOStream
stdio = return StdIO
gets :: Show b => IO a -> b -> IO a
gets :: Show b => a -> b -> IO a
gets s d = do
temp <- s
putStr(show d)
return temp
return s
main = do
[p]return [c]]
hs: Stream() -> ("stdio", "")
hs: Stream() -> ("StdIO", "")
hs: Int(x) -> (x, "")
hs: Sum( (c, p), (d, q)) -> ($[([c] + [d])], <conc-strings>(p,q))
hs: Gets((c, p), (d, q)) -> <hsget>(c,d,<conc-strings>(p,q),<newname>"fosgt")