MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / parse

Method parse

pythonwhat/State.py:255–266  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

253 )
254
255 def parse(self, text):
256 if self.debug:
257 parse_method = self.parse_internal
258 token_attr = "solution_ast_tokens"
259 else:
260 parse_method = self.parse_external
261 token_attr = "student_ast_tokens"
262
263 tokens, ast = parse_method(text)
264 setattr(self, token_attr, tokens)
265
266 return ast
267
268 def get_dispatcher(self):
269 try:

Callers 13

__init__Method · 0.95
parse_externalMethod · 0.45
parse_internalMethod · 0.45
taskRunEvalFunction · 0.45
build_callFunction · 0.45
get_partFunction · 0.45
overrideFunction · 0.45
has_equal_astFunction · 0.45
test_if_exp_findableFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_if_exp_findableFunction · 0.36
test_function_parserFunction · 0.36