From 1ccae742d6366bceadcf16426a47905b3413b8c9 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 23 May 2022 10:33:48 +0200 Subject: [PATCH] document bf.isbpl --- bf.isbpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bf.isbpl b/bf.isbpl index 3d8f500..51e3dfe 100644 --- a/bf.isbpl +++ b/bf.isbpl @@ -1,4 +1,6 @@ +"Brainfuck->ISBPL transpiler" # + native acopy "#stream.isbpl" include "#multi.isbpl" include @@ -15,6 +17,7 @@ func main { def s args 0 aget STREAM.create.file.in stream =s s makeCode =s + "Write code to ISBPL file" # filename ".isbpl" strconcat STREAM.create.file.out stream ! s swap stream.write STREAM.close stream @@ -31,8 +34,11 @@ func read { [ s STREAM.read stream dup -1 eq if { ] pop "" 2 stop } _char ] _string } + +"Read BF and convert to ISBPL" # func makeCode { with s ; + "Initialization code as stringblock" # def code string! { "#stream.isbpl" include def stdin "/dev/stdin" STREAM.create.file.in stream =stdin @@ -52,6 +58,8 @@ func makeCode { code } + +"Convert a BF char to ISBPL" # func parse { with c ;