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

Method __stmt

PyBasic/basicparser.py:242–255  ·  view source on GitHub ↗

Parses a program statement :return: The FlowSignal to indicate to the program how to branch if necessary, None otherwise

(self,infile,tmpfile,datastmts)

Source from the content-addressed store, hash-verified

240 ' in line ' + str(self.__line_number))
241
242 def __stmt(self,infile,tmpfile,datastmts):
243 """Parses a program statement
244
245 :return: The FlowSignal to indicate to the program
246 how to branch if necessary, None otherwise
247
248 """
249
250 if self.__token.category in [Token.FOR, Token.IF, Token.NEXT,
251 Token.ON]:
252 return self.__compoundstmt()
253
254 else:
255 return self.__simplestmt(infile,tmpfile,datastmts)
256
257 def __simplestmt(self,infile,tmpfile,datastmts):
258 """Parses a non-compound program statement

Callers 1

parseMethod · 0.95

Calls 2

__compoundstmtMethod · 0.95
__simplestmtMethod · 0.95

Tested by

no test coverage detected