bf.isbpl performance visualization
This commit is contained in:
parent
89191975fe
commit
913c38b527
1 changed files with 4 additions and 1 deletions
5
bf.isbpl
5
bf.isbpl
|
@ -21,6 +21,7 @@ func main {
|
||||||
filename ".isbpl" strconcat STREAM.create.file.out stream
|
filename ".isbpl" strconcat STREAM.create.file.out stream
|
||||||
! s swap stream.write
|
! s swap stream.write
|
||||||
STREAM.close stream
|
STREAM.close stream
|
||||||
|
"---\n" puts
|
||||||
"Java" try {
|
"Java" try {
|
||||||
s Context new eval
|
s Context new eval
|
||||||
} {
|
} {
|
||||||
|
@ -31,7 +32,7 @@ func main {
|
||||||
|
|
||||||
func read {
|
func read {
|
||||||
with s ;
|
with s ;
|
||||||
[ s STREAM.read stream dup -1 eq if { ] pop "" 2 stop } _char ] _string
|
[ s STREAM.read stream dup -1 eq if { pop pop "" 2 stop } _char ] _string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,8 +57,10 @@ func makeCode {
|
||||||
|
|
||||||
def c
|
def c
|
||||||
while { s read dup =c "" eq not } {
|
while { s read dup =c "" eq not } {
|
||||||
|
c puts
|
||||||
code " " strconcat ( c parse ) strconcat =code
|
code " " strconcat ( c parse ) strconcat =code
|
||||||
}
|
}
|
||||||
|
"\n" puts
|
||||||
code
|
code
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue