Ejemplo n.º 1
0
 def __init__(self,
              string_delimiters,
              string_literal_type="STRING (PLACEHOLDER TYPE)",
              name=None):
     ArrangementRule.__init__(self, "Strings" if name is None else name)
     self.string_literal_type = string_literal_type
     self.str_delims = string_delimiters
Ejemplo n.º 2
0
 def __init__(self, token_vals):
     ArrangementRule.__init__(self,
                              "Left-Right Binary Token-Capturing Operator")
     self.id_vals = token_vals
Ejemplo n.º 3
0
 def __init__(self, names):
     ArrangementRule.__init__(self, "Apply to Rest")
     self.names = names
Ejemplo n.º 4
0
 def __init__(self, set_vals):
     ArrangementRule.__init__(self, "Infix If-Else")
     self.set = set_vals
 def __init__(self, head_symbol_name, sym_vals):
     ArrangementRule.__init__(self, "Left-Right N-Ary Multi-Operator")
     self.head_symbol_name = head_symbol_name
     self.sym_vals = sym_vals
Ejemplo n.º 6
0
 def __init__(self):
     ArrangementRule.__init__(self, "Assignment Segment")
Ejemplo n.º 7
0
 def __init__(self, names):
     ArrangementRule.__init__(self, "Apply to Rest")
     self.names = names
 def __init__(self, sym_vals):
     ArrangementRule.__init__(
         self, "Left-Right Unary Postfix No-Space Token-Capturing Operator")
     self.sym_vals = sym_vals
Ejemplo n.º 9
0
 def __init__(self, skip_count):
     ArrangementRule.__init__(self, "Default Punctuation")
     self.skip_count = skip_count
Ejemplo n.º 10
0
 def __init__(self):
     ArrangementRule.__init__(self, "Lisp Mode")
Ejemplo n.º 11
0
 def __init__(self, names):
     ArrangementRule.__init__(self, "Apply in Isolation")
     self.names = names
Ejemplo n.º 12
0
 def __init__(self, arrows):
     ArrangementRule.__init__(self, "Transformation Arrow")
     self.arrows = arrows
Ejemplo n.º 13
0
 def __init__(self,
              int_literal_type="INT (PLACEHOLDER TYPE)",
              float_literal_type="FLOAT (PLACEHOLDER TYPE)"):
     ArrangementRule.__init__(self, "Constituent")
     self.int_literal_type = int_literal_type
     self.float_literal_type = float_literal_type
 def __init__(self, token_vals):
     ArrangementRule.__init__(self, "Left-Right Unary Prefix No-Space Operator")
     self.token_vals = token_vals
Ejemplo n.º 15
0
 def __init__(self, wrap_class=PreForm):
     ArrangementRule.__init__(self, "Segment")
     self.wrap_class = wrap_class
     """The type of node to wrap segment in. Usually ``PreForm``."""
Ejemplo n.º 16
0
 def __init__(self, int_literal_type = "INT (PLACEHOLDER TYPE)", float_literal_type = "FLOAT (PLACEHOLDER TYPE)"):
     ArrangementRule.__init__(self, "Constituent")
     self.int_literal_type = int_literal_type
     self.float_literal_type = float_literal_type
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self, "Right-Left Unary Prefix No-Space Operator")
     self.sym_vals = sym_vals
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self, "Left-Right Binary Operator Reversed Args")
     self.sym_vals = sym_vals
Ejemplo n.º 19
0
 def __init__(self):
     ArrangementRule.__init__(self, "Comment")
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self,
                              "Right-Left Unary Prefix No-Space Operator")
     self.sym_vals = sym_vals
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self, "Left-Right Binary Operator")
     self.sym_vals = sym_vals
Ejemplo n.º 22
0
 def __init__(self, opening_delimiters, name=None):
     ArrangementRule.__init__(self, "Delimiters" if name is None else name)
     self.opening_delimiters = opening_delimiters
Ejemplo n.º 23
0
 def __init__(self):
     ArrangementRule.__init__(self, "Comment")
Ejemplo n.º 24
0
 def __init__(self, opening_delimiters):
     ArrangementRule.__init__(self, "SingleQuote")
     self.opening_delimiters = opening_delimiters
Ejemplo n.º 25
0
 def __init__(self, arrows):
     ArrangementRule.__init__(self, "Transformation Arrow")
     self.arrows = arrows
Ejemplo n.º 26
0
 def __init__(self):
     ArrangementRule.__init__(self, "Application Parenthesis")
     self.block_arrangement = Segment(Form)
Ejemplo n.º 27
0
 def __init__(self, head_name: str, following_names: set):
     ArrangementRule.__init__(self, head_name + '-'.join(following_names))
     self.head_name = head_name
     self.following_names = following_names
Ejemplo n.º 28
0
 def __init__(self):
     ArrangementRule.__init__(self, "Parenthesis")
Ejemplo n.º 29
0
 def __init__(self):
     ArrangementRule.__init__(self, "Multiple Assignment")
Ejemplo n.º 30
0
 def __init__(self):
     ArrangementRule.__init__(self, "Parenthesis")
     self.apply_parenthesis_arrangement = ApplyParenthesis()
Ejemplo n.º 31
0
 def __init__(self, wrap_class = PreForm):
     ArrangementRule.__init__(self, "Segment")
     self.wrap_class = wrap_class
     """The type of node to wrap segment in. Usually ``PreForm``."""
Ejemplo n.º 32
0
 def __init__(self, opening_delimiters, name=None):
     ArrangementRule.__init__(self, "Delimiters" if name is None else name)
     self.opening_delimiters = opening_delimiters
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self, "Left-Right Binary Operator - Two Symbols")
     self.sym_vals = sym_vals
Ejemplo n.º 34
0
 def __init__(self, opening_delimiters):
     ArrangementRule.__init__(self, "SingleQuote")
     self.opening_delimiters = opening_delimiters
Ejemplo n.º 35
0
 def __init__(self):
     ArrangementRule.__init__(self, "Application Parenthesis")
     self.block_arrangement = Segment(Form)
Ejemplo n.º 36
0
 def __init__(self):
     ArrangementRule.__init__(self, "Parenthesis")
Ejemplo n.º 37
0
 def __init__(self):
     ArrangementRule.__init__(self, "Multiple Assignment")
Ejemplo n.º 38
0
 def __init__(self):
     ArrangementRule.__init__(self, "Parenthesis")
     self.apply_parenthesis_arrangement = ApplyParenthesis()
Ejemplo n.º 39
0
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self, "Left-Right N-Ary Operator")
     self.sym_vals = sym_vals
 def __init__(self, token_vals):
     ArrangementRule.__init__(self,
                              "Left-Right Unary Prefix No-Space Operator")
     self.token_vals = token_vals
Ejemplo n.º 41
0
 def __init__(self, names):
     ArrangementRule.__init__(self, "Apply in Isolation")
     self.names = names
Ejemplo n.º 42
0
 def __init__(self, set_vals):
     ArrangementRule.__init__(self, "Infix If-Else")
     self.set = set_vals
Ejemplo n.º 43
0
 def __init__(self, string_delimiters, string_literal_type = "STRING (PLACEHOLDER TYPE)", name=None):
     ArrangementRule.__init__(self, "Strings" if name is None else name)
     self.string_literal_type = string_literal_type
     self.str_delims = string_delimiters
Ejemplo n.º 44
0
 def __init__(self, head_name:str, following_names:set):
     ArrangementRule.__init__(self, head_name + '-'.join(following_names))
     self.head_name = head_name
     self.following_names = following_names
 def __init__(self, sym_vals):
     ArrangementRule.__init__(self, "Left-Right Unary Postfix No-Space Token-Capturing Operator")
     self.sym_vals = sym_vals
Ejemplo n.º 46
0
 def __init__(self, head_symbol_name, sym_vals):
     ArrangementRule.__init__(self, "Left-Right N-Ary Multi-Operator")
     self.head_symbol_name = head_symbol_name
     self.sym_vals = sym_vals