|
| | ChaiScript_Parser (Tracer tracer=Tracer(), Optimizer optimizer=Optimizer()) |
| Tracer & | get_tracer () |
| Optimizer & | get_optimizer () |
| | ChaiScript_Parser (const ChaiScript_Parser &)=delete |
| ChaiScript_Parser & | operator= (const ChaiScript_Parser &)=delete |
| | ChaiScript_Parser (ChaiScript_Parser &&)=default |
| ChaiScript_Parser & | operator= (ChaiScript_Parser &&)=delete |
| bool | char_in_alphabet (char c, detail::Alphabet a) const |
| | test a char in an m_alphabet
|
| void | debug_print (const AST_Node &t, std::string prepend="") const override |
| | Prints the parsed ast_nodes as a tree.
|
| template<typename NodeType> |
| void | build_match (size_t t_match_start, std::string t_text="") |
| | Helper function that collects ast_nodes from a starting position to the top of the stack into a new AST node.
|
| auto | Symbol_ (const utility::Static_String &sym) |
| | Reads a symbol group from input if it matches the parameter, without skipping initial whitespace.
|
| bool | SkipComment () |
| | Skips any multi-line or single-line comment.
|
| bool | SkipWS (bool skip_cr=false) |
| bool | read_exponent_and_suffix () |
| | Reads the optional exponent (scientific notation) and suffix for a Float.
|
| bool | Float_ () |
| | Reads a floating point value from input, without skipping initial whitespace.
|
| bool | Hex_ () |
| | Reads a hex value from input, without skipping initial whitespace.
|
| void | IntSuffix_ () |
| | Reads an integer suffix.
|
| bool | Binary_ () |
| | Reads a binary value from input, without skipping initial whitespace.
|
| template<typename T, typename ... Param> |
| std::unique_ptr< eval::AST_Node_Impl< Tracer > > | make_node (std::string t_match, const int t_prev_line, const int t_prev_col, Param &&...param) |
| bool | Num () |
| | Reads a number from the input, detecting if it's an integer or floating point.
|
| bool | Id_ () |
| | Reads an identifier from input which conforms to C's identifier naming conventions, without skipping initial whitespace.
|
| bool | Id (const bool validate) |
| | Reads (and potentially captures) an identifier from input.
|
| bool | Arg (const bool t_type_allowed=true) |
| | Reads an argument from input.
|
| bool | Quoted_String_ () |
| | Reads a quoted string from input, without skipping initial whitespace.
|
| bool | Quoted_String () |
| | Reads (and potentially captures) a quoted string from input. Translates escaped sequences.
|
| bool | Single_Quoted_String_ () |
| | Reads a character group from input, without skipping initial whitespace.
|
| bool | Single_Quoted_String () |
| | Reads (and potentially captures) a char group from input. Translates escaped sequences.
|
| bool | Char_ (const char c) |
| | Reads a char from input if it matches the parameter, without skipping initial whitespace.
|
| bool | Char (const char t_c) |
| | Reads (and potentially captures) a char from input if it matches the parameter.
|
| bool | Keyword_ (const utility::Static_String &t_s) |
| | Reads a string from input if it matches the parameter, without skipping initial whitespace.
|
| bool | Keyword (const utility::Static_String &t_s) |
| | Reads (and potentially captures) a string from input if it matches the parameter.
|
| bool | is_operator (const std::string &t_s) const |
| bool | Symbol (const utility::Static_String &t_s, const bool t_disallow_prevention=false) |
| | Reads (and potentially captures) a symbol group from input if it matches the parameter.
|
| bool | Eol_ (const bool t_eos=false) |
| | Reads an end-of-line group from input, without skipping initial whitespace.
|
| bool | Eos () |
| | Reads until the end of the current statement.
|
| bool | Eol () |
| | Reads (and potentially captures) an end-of-line group from input.
|
| bool | Id_Arg_List () |
| | Reads a comma-separated list of values from input. Id's only, no types allowed.
|
| bool | Decl_Arg_List () |
| | Reads a comma-separated list of values from input, for function declarations.
|
| bool | Arg_List () |
| | Reads a comma-separated list of values from input.
|
| bool | Container_Arg_List () |
| | Reads possible special container values, including ranges and map_pairs.
|
| bool | Lambda () |
| | Reads a lambda (anonymous function) from input.
|
| bool | Def (const bool t_class_context=false, const std::string &t_class_name="") |
| | Reads a function definition from input.
|
| bool | Try () |
| | Reads a function definition from input.
|
| bool | If () |
| | Reads an if/else if/else block from input.
|
| bool | Class (const bool t_class_allowed) |
| | Reads a class block from input.
|
| bool | While () |
| | Reads a while block from input.
|
| bool | Range_Expression () |
| | Reads the ranged for conditions from input.
|
| bool | For_Guards () |
| | Reads the C-style for conditions from input.
|
| bool | For () |
| | Reads a for block from input.
|
| bool | Case () |
| | Reads a case block from input.
|
| bool | Switch () |
| | Reads a switch statement from input.
|
| bool | Class_Block (const std::string &t_class_name) |
| | Reads a curly-brace C-style class block from input.
|
| bool | Block () |
| | Reads a curly-brace C-style block from input.
|
| bool | Return () |
| | Reads a return statement from input.
|
| bool | Break () |
| | Reads a break statement from input.
|
| bool | Continue () |
| | Reads a continue statement from input.
|
| bool | Dot_Fun_Array () |
| | Reads a dot expression(member access), then proceeds to check if it's a function or array call.
|
| bool | Var_Decl (const bool t_class_context=false, const std::string &t_class_name="") |
| | Reads a variable declaration from input.
|
| bool | Paren_Expression () |
| | Reads an expression surrounded by parentheses from input.
|
| bool | Inline_Container () |
| | Reads, and identifies, a short-form container initialization from input.
|
| bool | Reference () |
| | Parses a variable specified with a & aka reference.
|
| bool | Prefix () |
| | Reads a unary prefixed expression from input.
|
| bool | Value () |
| | Parses any of a group of 'value' style ast_node groups from input.
|
| bool | Operator_Helper (const size_t t_precedence, std::string &oper) |
| bool | Operator (const size_t t_precedence=0) |
| bool | Map_Pair () |
| | Reads a pair of values used to create a map initialization from input.
|
| bool | Value_Range () |
| | Reads a pair of values used to create a range initialization from input.
|
| bool | Equation () |
| | Parses a string of binary equation operators.
|
| bool | Class_Statements (const std::string &t_class_name) |
| | Parses statements allowed inside of a class block.
|
| bool | Statements (const bool t_class_allowed=false) |
| | Top level parser, starts parsing of all known parses.
|
| AST_NodePtr | parse (const std::string &t_input, const std::string &t_fname) override |
| eval::AST_Node_Impl_Ptr< Tracer > | parse_instr_eval (const std::string &t_input) |
| AST_NodePtr | parse_internal (const std::string &t_input, std::string t_fname) |
| | Parses the given input string, tagging parsed ast_nodes with the given m_filename.
|
| virtual | ~ChaiScript_Parser_Base ()=default |
| | ChaiScript_Parser_Base ()=default |
| | ChaiScript_Parser_Base (ChaiScript_Parser_Base &&)=default |
| ChaiScript_Parser_Base & | operator= (ChaiScript_Parser_Base &&)=delete |
| ChaiScript_Parser_Base & | operator= (const ChaiScript_Parser_Base &&)=delete |
| template<typename T> |
| T & | get_tracer () |