MCPcopy Create free account
hub / github.com/geekcomputers/Python / scan

Function scan

Assembler/assembler.py:746–756  ·  view source on GitHub ↗

scan: applies function scanner() to each line of the source code.

()

Source from the content-addressed store, hash-verified

744
745
746def 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
759def parser():

Callers 1

mainFunction · 0.85

Calls 1

scannerFunction · 0.85

Tested by

no test coverage detected