From 36eb309d8c5f603e9bbc8c177280343f2e407c7e Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Thu, 13 Jul 2023 23:49:38 +0530 Subject: [PATCH 1/2] Remove unneeded comment from examples/expr2.py We support the `if __name__ == "__main__"` syntax now --- examples/expr2.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/expr2.py b/examples/expr2.py index 2e66f1e584..484873ac2d 100644 --- a/examples/expr2.py +++ b/examples/expr2.py @@ -1,10 +1,9 @@ +from lpython import i32 + def main0(): x: i32 x = (2+3)*5 print(x) -main0() - -# Not implemented yet in LPython: -#if __name__ == "__main__": -# main() +if __name__ == "__main__": + main0() From 84adb4bd17a6ea4ec5100c0f75e33e3bd6dfb204 Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Thu, 13 Jul 2023 23:56:25 +0530 Subject: [PATCH 2/2] Build: Add one/combined build script --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000000..0bae93e4a9 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +./build0.sh +./build1.sh