scan: applies function scanner() to each line of the source code.
()
| 744 | |
| 745 | |
| 746 | def scan(): |
| 747 | """ |
| 748 | scan: applies function scanner() to each line of the source code. |
| 749 | """ |
| 750 | global lines |
| 751 | assert len(lines) > 0, "no lines" |
| 752 | for line in lines: |
| 753 | try: |
| 754 | scanner(line) |
| 755 | except InvalidSyntax: |
| 756 | print("line=", line) |
| 757 | |
| 758 | |
| 759 | def parser(): |