forked from AbleOS/holey-bytes
compiling return stmt
This commit is contained in:
parent
68d53544fd
commit
81952cfc40
3
hblang/examples/arithmetic.hb
Normal file
3
hblang/examples/arithmetic.hb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
main := ||: int {
|
||||||
|
return 10 - 20 / 2 + 4 * (2 + 2) - 4 * 4;
|
||||||
|
}
|
|
@ -163,5 +163,6 @@ mod tests {
|
||||||
empty => "";
|
empty => "";
|
||||||
whitespace => " \t\n\r";
|
whitespace => " \t\n\r";
|
||||||
example => include_str!("../examples/main_fn.hb");
|
example => include_str!("../examples/main_fn.hb");
|
||||||
|
arithmetic => include_str!("../examples/arithmetic.hb");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue