diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/variables.cup | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/variables.cup b/examples/variables.cup new file mode 100644 index 0000000..3ee8ed2 --- /dev/null +++ b/examples/variables.cup @@ -0,0 +1,8 @@ + + +fn main() { + let x: int = 5 * 10; + let y: int = x + x; + let z: int = y - x / 2; + return z; +} |