#include "nasal.h" resource_file resource; nasal_lexer lexer; nasal_parse parser; abstract_syntax_tree libroot; abstract_syntax_tree root; abstract_syntax_tree linker; nasal_runtime runtime; std::string command; int main() { 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<<">> Be careful that this program does not support unicode(unicode will be set to \'?\')"<> [\'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."<> [run ] run code."<> [info ] print lexer,parser and ast on screen."<> [exit ] quit nasal interpreter."<> [Delete] complete."<> [Lib] loaded."<> [Lib] lib files have parse error(s),stop."<> [Lib] lib files have lexer error(s),stop."<> [Lexer] error occurred,stop."<> [Lexer] error occurred,stop."<> [Parse] error occurred,stop."<> [Lexer] error occurred,stop."<> [Parse] error occurred,stop."<> [Lexer] error occurred,stop."<