mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
update README.md
This commit is contained in:
@@ -1217,6 +1217,8 @@ And after that when creating new functions, they share the same upvalue, and the
|
||||
|
||||
## Benchmark
|
||||
|
||||

|
||||
|
||||
### 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:
|
||||
|
||||

|
||||
|
||||
## __Difference Between Andy's and This Interpreter__
|
||||
|
||||
### 1. must use `var` to define variables
|
||||
|
||||
BIN
pic/mandelbrot.png
Normal file
BIN
pic/mandelbrot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 111 KiB |
Reference in New Issue
Block a user