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."<