#include "nasal.h" resource_file resource; nasal_lexer lexer; nasal_parse parser; abstract_syntax_tree libroot; abstract_syntax_tree root; nasal_symbol_table symtable; std::string command; int main() { #ifdef _WIN32 std::cout<<">> [system] Windows system."<> [system] Linux system."<> [system] MacOS system."<> Nasal interpreter ver 2.0 ."<> Code: https://github.com/ValKmjolnir/Nasal-Interpreter"<> More info: http://wiki.flightgear.org/Nasal_scripting_language"<> Input \"help\" to get help ."<> "; std::cin>>command; if(command=="help") { std::cout<<">> [\'file\'] input a file."<> [cls ] clear the screen."<> [del ] clear the resource code."<> [lib ] add lib file."<> [rs ] print resource code."<> [lex ] turn code into tokens."<> [par ] turn tokens into abstract syntax tree."<> [ast ] check the abstract syntax tree."<> [sym ] generate symbol table and print the information of it."<> [run ] run code."<> [info ] print lexer,parser and ast on screen."<> [exit ] quit nasal interpreter."<> [Delete] complete."<> [Lib] loaded."<> [Lib-error] lib files have parse error(s),stop."<> [Lib-error] lib files have lexer error(s),stop."<> [Lexer] error occurred,stop."<> [Lexer] error occurred,stop."<> [Parse] error occurred,stop."<> [Lexer] error occurred,stop."<> [Symbol] error occurred,stop."<> [Parse] error occurred,stop."<> [Lexer] error occurred,stop."<> [Symbol] error occurred,stop."<> [Parse] error occurred,stop."<> [Lexer] error occurred,stop."<