From 39315de738e86e1f1beb52ae14101b5caf7486a2 Mon Sep 17 00:00:00 2001 From: Carlos Maniero Date: Fri, 21 Apr 2023 14:36:28 -0300 Subject: gas: Generate arithmetics expressions We decided for using push and pop to simplify the implementation, we want to revisit the approach latter. Signed-off-by: Carlos Maniero Co-authored-by: Johnny Richard --- examples/arithmetics.pipa | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 examples/arithmetics.pipa (limited to 'examples') diff --git a/examples/arithmetics.pipa b/examples/arithmetics.pipa new file mode 100644 index 0000000..e2b7645 --- /dev/null +++ b/examples/arithmetics.pipa @@ -0,0 +1,3 @@ +main(): i32 { + return ((2 + 1) * (5 - 3) + 7) * 2 / 2; +} -- cgit v1.2.3