aboutsummaryrefslogtreecommitdiff
path: root/projects/10
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2018-01-11 16:36:38 +0100
committerYuchen Pei <me@ypei.me>2018-01-11 16:36:38 +0100
commit432e4142e53dc10ff3ba1527cacb7d833c0ebb77 (patch)
tree51ab0a89ca16d4769031ab06f937277e6d62a9b7 /projects/10
parent9f97af956a86102a10cc34c43fe0e2b36df5b021 (diff)
checkpoint.
Diffstat (limited to 'projects/10')
-rw-r--r--projects/10/JackParser.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/projects/10/JackParser.hs b/projects/10/JackParser.hs
index 990e3ec..6f83070 100644
--- a/projects/10/JackParser.hs
+++ b/projects/10/JackParser.hs
@@ -1,6 +1,6 @@
-- Jack Parser, as the coursework of Project 10 of Nand2Tetris course.
-- Author: Yuchen Pei (me@ypei.me)
--- Date: January 2018
+-- Date: 2018-01-11
{-# LANGUAGE FlexibleContexts #-}
import Text.Parsec.Prim
import Text.Parsec.Char
@@ -292,10 +292,12 @@ someArgs = do
many jSpace >> char ')'
return exps
+{--
replCrWithNl :: [Char] -> [Char]
replCrWithNl = fmap cr2nl
where cr2nl '\r' = '\n'
cr2nl c = c
+ --}
-- IO