Lines Matching refs:variables
39 def get_variable(name, variables, pos): argument
40 if name in variables:
41 return variables[name]
43 Logger.test_failed('Missing definition of variable "{}"'.format(name), pos, variables)
46 def set_variable(name, value, variables, pos): argument
47 if name not in variables:
48 return variables.copy_with(name, value)
50 Logger.test_failed('Multiple definitions of variable "{}"'.format(name), pos, variables)
53 def match_words(checker_word, string_word, variables, pos): argument
60 pattern = re.escape(get_variable(expression.name, variables, pos))
79 variables = set_variable(expression.name, string_word[:match.end()], variables, pos)
88 return variables
91 def match_lines(checker_line, string_line, variables): argument
108 new_variables = match_words(checker_word, string_word, variables, checker_line)
111 variables = new_variables
117 return variables
120 def get_eval_text(expression, variables, pos): argument
125 return get_variable(expression.name, variables, pos)
128 def evaluate_line(checker_line, variables): argument
131 hasIsaFeature = lambda feature: variables["ISA_FEATURES"].get(feature, False)
133 variables,