From 0196d196fea57ec954711f00b819e42dc2799a84 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Sun, 7 Jun 2020 13:03:47 +0800 Subject: [PATCH] Delete main.cpp --- version0.19/main.cpp | 84 -------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 version0.19/main.cpp diff --git a/version0.19/main.cpp b/version0.19/main.cpp deleted file mode 100644 index 49f3df7..0000000 --- a/version0.19/main.cpp +++ /dev/null @@ -1,84 +0,0 @@ -#include "nasal.h" -int main() -{ - resource_programme_process prog; - nasal_lexer lex; - nasal_parser pas; - std::string command; - std::cout<<">> Nasal interpreter by ValKmjolnir"<> Input [help] to find help."<> "; - std::getline(std::cin,command); - if(command=="help") - { - std::cout<<">> Nasal interpreter by ValKmjolnir"<> 1. [ ] |input file name to load the file."<> 2. [cls ] |clear the screen."<> 3. [exit ] |shut down the interpreter."<> 4. [lexer ] |run and show the lexer. (-lexer)"<> 5. [parser] |run parser. (-parser)"<> 6. [ast ] |print the abstract syntax tree."<> 7. [del ] |delete program in memory."<> 8. [run ] |run the programme in stack. (-lexer -parser)"<> 9. [rs ] |check the source program."<>10. [rule ] |see rules of the language."<>[Delete] Complete."<>[Rule] Token types that you can use: number + - * /"<>[Rule] Each binary operator should have two numbers around it like: 1 + 1"<