|
| | IntermediateForm (const std::string_view input, ErrorHandler &report_error) |
| | IntermediateForm (ErrorHandler &report_error) |
| void | set_str (const std::string_view input) |
| Scope | operator() () const |
| bool | only_apply_mutations (const bool all_mutation_ordered=false) |
| bool | apply_mutations (const bool all_mutation_ordered=false) |
| const std::string & | result_get (const bool all_mutation_ordered=false) |
| void | parse (ErrorHandler &report_error) |
| void | debug_print () |
| void | debug_print_tokens () |
| | MutableString (const std::string_view input) |
| | MutableString (const MutableString &other)=delete |
| MutableString & | operator= (const MutableString &other)=delete |
| | MutableString (MutableString &&other)=default |
| MutableString & | operator= (MutableString &&other)=default |
| std::string | substr_range_inclusive (size_t start, size_t end) |
| std::string | substr_range_inclusive (Token start, Token end) |
| std::string_view | substr_range_inclusive_view (size_t start, size_t end) |
| std::string_view | substr_range_inclusive_view (Token start, Token end) |
| bool | report_failure () |
| bool | replace_try (size_t from, size_t to, const std::string &replacement) |
| bool | replace_try (Token from, Token to, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | replace (size_t from, size_t to, const std::string &replacement) |
| void | replace (Token from, Token to, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | replace (Token tok, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | replace (Scope scope, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | replace (ast::Node node, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| bool | erase_try (size_t from, size_t to) |
| void | erase (size_t from, size_t to) |
| bool | erase_try (Token from, Token to) |
| void | erase (Token from, Token to) |
| bool | erase_try (Token tok) |
| void | erase (Token tok) |
| bool | erase_try (Scope scope) |
| void | erase (Scope scope) |
| bool | erase_try (ast::Node node) |
| void | erase (ast::Node node) |
| void | insert_before (size_t at, const std::string &content, bool prepend=false) |
| void | insert_before (Token at, const std::string &content, bool prepend=false) |
| void | insert_after (size_t at, const std::string &content) |
| void | insert_after (Token at, const std::string &content) |
| void | insert_line_number (size_t at, int line, std::string_view filename="") |
| void | insert_line_number (Token at, int line, std::string_view filename="") |
| void | insert_directive (Token at, const std::string directive) |
| bool | apply_mutations (LexerBase &lexer, const bool all_mutation_ordered=false) |
| const std::string & | str () |
| std::string | serialize_mutations () const |
| void | lexical_analysis (std::string_view input) |
| void | semantic_analysis (ErrorHandler &err_handler) |
| Token | operator[] (int i) const |
| void | build_scope_tree (ErrorHandler &err_handler) |
| void | build_token_to_scope_map () |
| void | parse_bsl (ErrorHandler &err_handler) |
| ast::LocalScope | root () const |
| void | print_ast () const |
| std::string_view | token_types_str () const |
| void | identify_keywords () |
| void | identify_template_tokens () |
| void | reset_template_tokens () |
| | TokenBuffer ()=default |
| | TokenBuffer (const std::string_view str, const CharClass char_class_table[128]) |
| void | process (const std::string_view str, const CharClass char_class_table[128]) |
| void | clear () |
| | Discard all currently held data. Does not reallocate.
|
| void | reserve (const uint32_t count) |
| | Allocate backing memory for the given number of tokens and move currently held data.
|
| void | tokenize (const CharClass char_class_table[128]) |
| | Tokenizes the input string by grouping contiguous characters of the same class.
|
| void | merge_complex_literals (bool bsl_template_angle_bracket_lexing=false) |
| | Merge complex literals such as floats, strings and comments.
|
| void | atomize_words (IdentifierMap &identifiers, const KeywordTable &keywords) |
| | Assign keyword types and atoms for a small set of identifier.
|
| void | compute_lengths () |
| | Compute small token length for speeding up certain tasks.
|
| uint32_t | size () const |
| | Return the amount of token inside the buffer.
|
| std::string_view | substr (const Token &start, const Token &end, const bool with_trailing_whitespaces=false) const |
| | Return the substring between the start and end tokens (included).
|
| void | append (TokenType type, TokenAtom atom, int32_t str_size, int32_t str_size_with_witespaces) |
| | Append a Token at the end of the buffer.
|
| Token | operator[] (int index) const |
| TokenMut | operator[] (int index) |
| TokenIt | begin () |
| TokenIt | end () |
| Token | front () |
| Token | back () |
template<typename LexerFn, typename ParserFn>
struct blender::gpu::shader::parser::IntermediateForm< LexerFn, ParserFn >
Definition at line 379 of file intermediate.hh.