Skip to content

Commit e1142df

Browse files
committed
...
1 parent ce5427d commit e1142df

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

README.org

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ stack run
130130
#+end_src
131131

132132
#+RESULTS:
133-
:
134133
: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
135134
: [Error]: Usage: stack run <filename>
136135
: Use 'stack run <filename>' to interpret a while source file.
137136
: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
138-
:
137+
139138

140139
#+begin_src shell :exports both :results output
141140
stack run ./examples/multiplication-func.while
@@ -161,19 +160,9 @@ or use
161160

162161
#+begin_src shell
163162
stack ghci
164-
165-
ghci> xs <- readFileContent "./examples/multiplication-func.while"
166-
[READING .WHILE FILE] "./examples/multiplication-func.while"
167-
ghci> eval ((runASTParser . tokenize) xs) []
168-
[("temp",28980),("b",0),("a",420),("rv",28980)]
169-
ghci> evalT ((runASTParser . tokenize) xs) []
170-
((),[("temp",28980),("b",0),("a",420),("rv",28980)])
171-
ghci>
172163
#+end_src
173164

174165

175-
176-
177166
*** compile
178167

179168
#+begin_src shell

0 commit comments

Comments
 (0)