Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The class exposes following methods:

Method

Usage

make_empty_line

Create a TM1RuleToken instance representing an empty line.

make_comment

Create

Creates a TM1RuleToken instance representing a comment or a directive.

make_command

Create

Creates 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 when the parser parsed a directive.

make_calc_rule

Creates a TM1CalcRule instance when a calculation rule statement was parsed.

make_feeder_rule

Creates a TM1CalcRule instance when a feeder rule statement was parsed.

make_area_statement

Creates a TM1RuleAreaStatement instance when an area statement of calculation or a feeder rule was parsed. The instance of the class is area_statementproperty of TM1CalcRule created by make_calc_rule or make_feeder_rule.

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)

...