From 9139e34c0b990081725c85e93e19ef3d2fb3f951 Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Sun, 13 Feb 2022 16:10:02 +0800 Subject: [PATCH] update README & bug fixed --- README.md | 110 +++++++++++++++++-- main.cpp | 2 +- nasal_dbg.h | 4 - nasal_vm.h | 8 +- test/bfconvertor.nas | 2 +- test/calc.nas | 2 +- test/mandel.nas | 256 +++++++++++++++---------------------------- 7 files changed, 191 insertions(+), 193 deletions(-) diff --git a/README.md b/README.md index 1268a3f..f0f6b4c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ * [__Why Writing Nasal Interpreter__](#why-writing-nasal-interpreter) * [__Compile__](#how-to-compile) * [__Usage__](#how-to-use) +* [__Release Notes__](#release-notes) + * [v8.0](#version-80-release) * [__Parser__](#parser) * [v1.0](#version-10-parser-last-update-20191014) * [__Abstract Syntax Tree__](#abstract-syntax-tree) @@ -27,11 +29,13 @@ * [v6.0](#version-60-vm-last-update-202161) * [v6.5](#version-65-vm-last-update-2021624) * [v7.0](#version-70-vm-last-update-2021108) - * [v8.0](#version-80-vm-latest) + * [v8.0](#version-80-vm-last-update-2022212) + * [v9.0](#version-90-vm-latest) * [__Benchmark__](#benchmark) * [v6.5 (i5-8250U windows 10)](#version-65-i5-8250u-windows10-2021619) * [v6.5 (i5-8250U ubuntu-WSL)](#version-70-i5-8250u-ubuntu-wsl-on-windows10-2021629) * [v8.0 (R9-5900HX ubuntu-WSL)](#version-80-r9-5900hx-ubuntu-wsl-2022123) + * [v9.0 (R9-5900HX ubuntu-WSL)](#version-90-r9-5900hx-ubuntu-wsl-2022213) * [__Tutorial__](#tutorial) * [basic value type](#basic-value-type) * [operators](#operators) @@ -59,9 +63,9 @@ __Contact us if having great ideas to share!__ -* __E-mail__: lhk101lhk101@qq.com +* __E-mail__: __lhk101lhk101@qq.com__ -* __QQ__: 896693328 +* __QQ__: __896693328__ ## __Introduction__ @@ -100,12 +104,11 @@ this interpreter a useful tool in your own projects (such as a script in a game ## __How to Compile__ Better choose the latest update of the interpreter. -Download the source code and build it! -It's quite easy to build this interpreter. +Download the source and build it! It's quite easy to build this interpreter. -__MUST USE__ __`-O2/-O3`__ if want to optimize the interpreter! +__CAUTION__: If want to use the release zip/tar.gz file to build the interpreter, please read the __Release Notes__ below to make sure this release file has no fatal bugs. Also in __Release Notes__ there's tips to fix the release manually. -Also remember to use g++ or clang++.(mingw-w64 in __`Windows`__) +Also remember to use g++ or clang++.(`mingw-w64` in __`Windows`__) > [cpp compiler] -std=c++11 -O3 main.cpp -o nasal.exe -fno-exceptions @@ -129,7 +132,7 @@ Use these commands to get version of interpreter: / \/ / _` / __|/ _` | | / /\ / (_| \__ \ (_| | | \_\ \/ \__,_|___/\__,_|_| -nasal interpreter ver 8.0 +nasal interpreter ver 9.0 thanks to : https://github.com/andyross/nasal code repo : https://github.com/ValKmjolnir/Nasal-Interpreter code repo : https://gitee.com/valkmjolnir/Nasal-Interpreter @@ -145,7 +148,7 @@ Use these commands to get help(see more debug commands in help): nasal