comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SimpleLanguage.atg @ 7509:442668d41bc2

fixed warnings
author Doug Simon <doug.simon@oracle.com>
date Mon, 21 Jan 2013 12:23:55 +0100
parents 31da1716950f
children 698cd036a1ca
comparison
equal deleted inserted replaced
7508:60c536556fc1 7509:442668d41bc2
26 26
27 SimpleLanguage 27 SimpleLanguage
28 = 28 =
29 Function 29 Function
30 { 30 {
31 Function 31 Function
32 } 32 }
33 . 33 .
34 34
35 Function 35 Function
36 = 36 =
84 { 84 {
85 Expression<out TypedNode value> (. expressions.add(value); .) 85 Expression<out TypedNode value> (. expressions.add(value); .)
86 } 86 }
87 ";" (. result = factory.createPrint(expressions); .) 87 ";" (. result = factory.createPrint(expressions); .)
88 . 88 .
89 89
90 ReturnStatement<out StatementNode result> 90 ReturnStatement<out StatementNode result>
91 = 91 =
92 "return" 92 "return"
93 Expression<out TypedNode value> ";" (. result = factory.createReturn(value); .) 93 Expression<out TypedNode value> ";" (. result = factory.createReturn(value); .)
94 . 94 .
95 95
96 Expression<out TypedNode result> 96 Expression<out TypedNode result>
97 = 97 =
98 ValueExpression<out result> 98 ValueExpression<out result>
99 [ 99 [
100 ("<" | ">" | "<=" | ">=" | "==" | "!=" ) (. String op = t.val; .) 100 ("<" | ">" | "<=" | ">=" | "==" | "!=" ) (. String op = t.val; .)
101 ValueExpression<out TypedNode right> (. result = factory.createBinary(op, result, right); .) 101 ValueExpression<out TypedNode right> (. result = factory.createBinary(op, result, right); .)
102 ] 102 ]
103 . 103 .
104 104
105 ValueExpression<out TypedNode result> 105 ValueExpression<out TypedNode result>
106 = 106 =