From df8959f5ff3b37c506a66cc8e788fa69fd1b7df4 Mon Sep 17 00:00:00 2001 From: tommi27 Date: Tue, 27 Nov 2018 09:26:22 +0100 Subject: [PATCH] fixed "an" and added template for read-file --- main.rkt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.rkt b/main.rkt index 414095f..692ebfb 100644 --- a/main.rkt +++ b/main.rkt @@ -12,7 +12,7 @@ ; Interpretation: a tape in brainf*ck's Turing machine. ; 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: ; - ">" @@ -45,6 +45,11 @@ (world-program 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: ; - read-file: FileName -> String ; - string->program: String -> Program (filter of valid instructions)