📝 update readme

This commit is contained in:
ValKmjolnir 2023-01-31 19:01:36 +08:00
parent 22b1841664
commit fdd7794a83
3 changed files with 6 additions and 15 deletions

View File

@ -64,7 +64,8 @@ the interpreter a useful tool in your own projects.
![clang++](https://img.shields.io/badge/LLVM-clang++-262D3A?style=flat-square&logo=LLVM)
![vs](https://img.shields.io/badge/Visual_Studio-MSVC-5C2D91?style=flat-square&logo=visualstudio)
Better download the latest update source of the interpreter and build it! It's quite easy to build this interpreter.
Better download the latest update source of the interpreter and build it! It's quite easy to build this interpreter, what you need are only two things: C++ compiler and the `make`. There is no third-party library used in this project.
__CAUTION__: If want to use the release zip/tar.gz file to build the interpreter, please read the [__Release Notes__](./doc/dev.md#release-notes) to make sure this release file has no fatal bugs.
Use g++(`MinGW-w64`) or MSVC(`Visual Studio`) on `Windows` .
@ -943,9 +944,6 @@ and the debugger will print this:
<details><summary>Click to unfold</summary>
```javascript
[debug] nasal debug mode
input 'h' to get help
source code:
--> var fib=func(x)
{

View File

@ -53,7 +53,9 @@ __我们为什么想要重新写一个nasal解释器?__
![clang++](https://img.shields.io/badge/LLVM-clang++-262D3A?style=flat-square&logo=LLVM)
![vs](https://img.shields.io/badge/Visual_Studio-MSVC-5C2D91?style=flat-square&logo=visualstudio)
我们推荐你下载最新更新的代码包来直接编译,这个项目非常小巧因此你可以非常快速地将它编译出来。
我们推荐你下载最新更新的代码包来直接编译,这个项目非常小巧,没有使用任何第三方库,因此编译起来非常轻松,
你只需要这两样东西: C++ 编译器以及make程序。
__注意__: 如果你想直接下载发行版提供的zip/tar.gz压缩包来构建这个解释器在下载之前请阅读[__发行日志__](../doc/dev_zh.md#发行日志)以保证这个发行版的文件中不包含非常严重的bug。
`Windows` 用户通过 g++(`MinGW-w64`) 或者使用 MSVC(`Visual Studio`) 来进行编译。
@ -904,9 +906,6 @@ local (0x7fffe0ffedf0 <sp+45>)
<details><summary>展开</summary>
```javascript
[debug] nasal debug mode
input 'h' to get help
source code:
--> var fib=func(x)
{

View File

@ -126,12 +126,7 @@ void debugger::stepinfo() {
void debugger::interact() {
// special operand
if (bytecode[pc].op==op_intg) {
std::cout
<<cyan<<"[debug] "<<reset
<<"nasal debug mode\n"
<<"input \'h\' to get help\n";
} else if (bytecode[pc].op==op_exit) {
if (bytecode[pc].op==op_exit) {
return;
}
@ -297,7 +292,6 @@ vmexit:
ngc.info();
ngc.clear();
imm.clear();
std::cout<<cyan<<"[debug] "<<reset<<"debugger exited\n";
return;
#ifndef _MSC_VER
#define dbg(op,num) {\