...
The class defines following attributes:
Attribute | Type | Usage |
---|
directives_resolver
| TM1DirectiveResolver
| Instance of directive resolver used for splicing (Containers (package)) of the rule. |
regions
| TM1RegionContainer
| Regions container for splicing of the rule. |
parser
| Parser
| Instance of parser (Parser/Grammar (package)) to be used to parse the rule. |
current_rule_id
| TM1RuleID
| Checksum of the current rule calculated from the rule source code (unused). |
generate_rule_id
| bool
| Flag indicating whether to generate rule IDs or not. |
The class exposes following methods:
Method | Usage |
---|
make_empty_line
| Create a TM1RuleToken instance representing an empty line. |
make_comment
| Create a TM1RuleToken instance representing a comment or a directive. |
make_command
| Create a TM1RuleToken or TM1RuleCommand instance based on type of parsed token. TM1RuleCommand instance will be created for calculation rule or a feeder rule (CalcRule non-terminal symbol in grammar), an instance of TM1RuleToken in other cases (skipcheck , feeders , feedstrings ). |
begin_region
| Creates instance of TM1RegionStart when #Region was parsed. |
end_region
| Creates instance of TM1RegionEnd when #EndRegion was parsed. |
make_directive
| Will call directives_resolver .consume_directive to create an instance of a new TM1Directive in the directives_resolver .directives_by_scope internal store. |
make_calc_rule
| |
make_feeder_rule
| |
make_area_statement
| |
make_ident
| |
make_catalog_key
| |
make_region_definition
| |
add_dim_to_map
| |
add_dim_to_map2
| |
make_dim_elem_pair
| |
make_hier_elem
| |
ignore_dim_elem_pair
| |
make_elem_list
| |
make_elem_list2
| |
make_mdx_query
| |
make_hex_footprint
| |
make_rule_id
| |
splice_rule
| |
get_rule
| |
get_parse_tree
| |
locate_region_subtrees
| |
exclude_subtree
| |
inject_subtree
| |
ArgumentParser (class in ArgumentParser.py)
...