r"""Reads assignment statement from text. >>> read_assignment = Parser().read_assignment >>> read_assignment('a = b + 1\nfoo') ( , 'foo')
(self, text)
| 372 | return ExpressionNode(text[:col], escape=escape), text[col:] |
| 373 | |
| 374 | def read_assignment(self, text): |
| 375 | r"""Reads assignment statement from text. |
| 376 | |
| 377 | >>> read_assignment = Parser().read_assignment |
| 378 | >>> read_assignment('a = b + 1\nfoo') |
| 379 | (<assignment: 'a = b + 1'>, 'foo') |
| 380 | """ |
| 381 | line, text = splitline(text) |
| 382 | return AssignmentNode(line.strip()), text |
| 383 | |
| 384 | def python_lookahead(self, text): |
| 385 | """Returns the first python token from the given text. |
no test coverage detected