From a7e9090e9a6f6d271681f33251b7a81429bdb454 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Tue, 5 Nov 2019 13:23:20 +0800 Subject: [PATCH] Update --- balloon/balloon_parse.h | 488 +++++++++++++++++++++++++++++++++++++++- balloon/main.cpp | 13 +- 2 files changed, 494 insertions(+), 7 deletions(-) diff --git a/balloon/balloon_parse.h b/balloon/balloon_parse.h index 87d37d0..179848f 100644 --- a/balloon/balloon_parse.h +++ b/balloon/balloon_parse.h @@ -69,9 +69,481 @@ class balloon_parse { return error; } + void definition(); + void assignment(); + void array_generate(); + void hash_generate(); + void check_number(); + void check_string(); + void check_unary(); + void block(); + void func_generate(); + void call_identifier(); + void calculation(); + void calculation_or(); + void calculation_and(); + void calculation_cmp(); + void calculation_additive(); + void calculation_multive(); + void scalar(); + void check_semi(); void parse_main(); }; +void balloon_parse::definition() +{ + get_token(); + if(this_token.type!=__var) + { + ++error; + std::cout<<">>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Parse-error] line "<>[Lexer] error(s) found,stop."<>[Lexer] error(s) found,stop."<>[Lexer] error(s) found,stop."<