diff --git a/README.md b/README.md index dad99c2..f517ab4 100644 --- a/README.md +++ b/README.md @@ -904,7 +904,7 @@ nasal_ref builtin_print(std::vector& local,nasal_gc& gc) ``` After that, register the built-in function's name(in nasal) and the function's pointer in this table: ```C++ -struct FUNC_TABLE +struct func { const char* name; nasal_ref (*func)(std::vector&,nasal_gc&); diff --git a/main.cpp b/main.cpp index ab6a625..a58a054 100644 --- a/main.cpp +++ b/main.cpp @@ -1,24 +1,28 @@ #include "nasal.h" - +#define VM_LEXINFO 1 +#define VM_ASTINFO 2 +#define VM_CODEINFO 4 +#define VM_EXECTIME 8 +#define VM_OPCALLNUM 16 +#define VM_EXEC 32 void help_cmd() { std::cout #ifdef _WIN32 <<"use command \'chcp 65001\' if want to use unicode.\n" #endif - <<"nasal [option]\n" + <<"nasal