diff --git a/README.md b/README.md index 93cc9cd..323c689 100644 --- a/README.md +++ b/README.md @@ -1217,6 +1217,8 @@ And after that when creating new functions, they share the same upvalue, and the ## Benchmark +![benchmark](./pic/benchmark.png) + ### version 6.5 (i5-8250U windows10 2021/6/19) running time and gc time: @@ -1319,6 +1321,13 @@ running time: |mandelbrot.nas|0.0156s|| |ascii-art.nas|0s|| +`bf.nas` is a very interesting test file that there is a brainfuck interpreter written in nasal. +And we use this bf interpreter to draw a mandelbrot set. + +In 2022/2/17 update we added `\e` into the lexer. And the `bfcolored.nas` uses this special ASCII code. Here is the result: + +![mandelbrot](./pic/mandelbrot.png) + ## __Difference Between Andy's and This Interpreter__ ### 1. must use `var` to define variables diff --git a/pic/mandelbrot.png b/pic/mandelbrot.png new file mode 100644 index 0000000..6a490a7 Binary files /dev/null and b/pic/mandelbrot.png differ