(self, text)
| 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: |
no outgoing calls