fixed "an" and added template for read-file
This commit is contained in:
parent
fba6455020
commit
df8959f5ff
1 changed files with 6 additions and 1 deletions
7
main.rkt
7
main.rkt
|
@ -12,7 +12,7 @@
|
||||||
; Interpretation: a tape in brainf*ck's Turing machine.
|
; Interpretation: a tape in brainf*ck's Turing machine.
|
||||||
|
|
||||||
; A DataPointer (DP) is a NonNegInt
|
; A DataPointer (DP) is a NonNegInt
|
||||||
; Interpretation: an data pointer in the brainf*ck language in a tape.
|
; Interpretation: a data pointer in the brainf*ck language in a tape.
|
||||||
|
|
||||||
; A Program is a String of:
|
; A Program is a String of:
|
||||||
; - ">"
|
; - ">"
|
||||||
|
@ -45,6 +45,11 @@
|
||||||
(world-program w)
|
(world-program w)
|
||||||
(world-ip w)))
|
(world-ip w)))
|
||||||
|
|
||||||
|
; read-file: FileName -> String
|
||||||
|
; Given a filename, parses it and returns the content as a string.
|
||||||
|
(define (read-file fl)
|
||||||
|
...)
|
||||||
|
|
||||||
; TODO:
|
; TODO:
|
||||||
; - read-file: FileName -> String
|
; - read-file: FileName -> String
|
||||||
; - string->program: String -> Program (filter of valid instructions)
|
; - string->program: String -> Program (filter of valid instructions)
|
||||||
|
|
Loading…
Reference in a new issue