comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLParenExpressionNode.java @ 20953:c0455554d45b

SL: some minor simplifications.
author Christian Humer <christian.humer@gmail.com>
date Tue, 14 Apr 2015 15:16:14 +0200
parents 0fc43b066eee
children
comparison
equal deleted inserted replaced
20952:833e088ee7d3 20953:c0455554d45b
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.truffle.sl.nodes.expression; 23 package com.oracle.truffle.sl.nodes.expression;
24 24
25 import java.math.*;
26
27 import com.oracle.truffle.api.frame.*; 25 import com.oracle.truffle.api.frame.*;
28 import com.oracle.truffle.api.nodes.*; 26 import com.oracle.truffle.api.nodes.*;
29 import com.oracle.truffle.api.source.*; 27 import com.oracle.truffle.api.source.*;
30 import com.oracle.truffle.sl.nodes.*; 28 import com.oracle.truffle.sl.nodes.*;
31 import com.oracle.truffle.sl.runtime.*;
32 29
33 /** 30 /**
34 * A {@link SLExpressionNode} that represents a parenthesized expression; it simply returns the 31 * A {@link SLExpressionNode} that represents a parenthesized expression; it simply returns the
35 * value of the enclosed (child) expression. It is represented separately in the AST for the purpose 32 * value of the enclosed (child) expression. It is represented separately in the AST for the purpose
36 * of correct source attribution; this preserves the lexical relationship between the two 33 * of correct source attribution; this preserves the lexical relationship between the two
55 public long executeLong(VirtualFrame frame) throws UnexpectedResultException { 52 public long executeLong(VirtualFrame frame) throws UnexpectedResultException {
56 return expression.executeLong(frame); 53 return expression.executeLong(frame);
57 } 54 }
58 55
59 @Override 56 @Override
60 public BigInteger executeBigInteger(VirtualFrame frame) throws UnexpectedResultException {
61 return expression.executeBigInteger(frame);
62 }
63
64 @Override
65 public boolean executeBoolean(VirtualFrame frame) throws UnexpectedResultException { 57 public boolean executeBoolean(VirtualFrame frame) throws UnexpectedResultException {
66 return expression.executeBoolean(frame); 58 return expression.executeBoolean(frame);
67 } 59 }
68 60
69 @Override
70 public String executeString(VirtualFrame frame) throws UnexpectedResultException {
71 return expression.executeString(frame);
72 }
73
74 @Override
75 public SLFunction executeFunction(VirtualFrame frame) throws UnexpectedResultException {
76 return expression.executeFunction(frame);
77 }
78
79 @Override
80 public SLNull executeNull(VirtualFrame frame) throws UnexpectedResultException {
81 return expression.executeNull(frame);
82 }
83 } 61 }