MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / __returnstmt

Method __returnstmt

PyBasic/basicparser.py:466–472  ·  view source on GitHub ↗

Parses a RETURN statement

(self)

Source from the content-addressed store, hash-verified

464 ftype=FlowSignal.GOSUB)
465
466 def __returnstmt(self):
467 """Parses a RETURN statement"""
468
469 self.__advance() # Advance past RETURN token
470
471 # Set up and return the flow signal
472 return FlowSignal(ftype=FlowSignal.RETURN)
473
474 def __stopstmt(self):
475 """Parses a STOP statement"""

Callers 1

__simplestmtMethod · 0.95

Calls 2

__advanceMethod · 0.95
FlowSignalClass · 0.90

Tested by

no test coverage detected