(self, expression)
return None
Evaluate a BASIC expression.
Evaluate a BASIC expression.
Evaluate a BASIC expression .
def evaluate(self, expression):
        """Evaluate a BASIC expression."""
        with self._handle_exceptions():
            # attach print token so tokeniser has a whole statement to work with
            tokens = self.tokeniser.tokenise_line(b'?' + expression)
            # skip : and print token and parse expression
            tokens.read(2)
            return self.parser.parse_expression(tokens).to_value()
        return None
def evaluate ( self , expression ) : with self . _handle_exceptions ( ) : # attach print token so tokeniser has a whole statement to work with tokens = self . tokeniser . tokenise_line ( b'?' + expression ) # skip : and print token and parse expression tokens . read ( 2 ) return self . parser . parse_expression ( tokens ) . to_value ( ) return None