Parses a program statement :return: The FlowSignal to indicate to the program how to branch if necessary, None otherwise
(self,infile,tmpfile,datastmts)
| 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 |
no test coverage detected