From 0686b40f979f4607b3fd8cca21c463e98f617666 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 20 Apr 2026 13:43:01 +0200 Subject: implement builder and instance --- example/test.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 example/test.py (limited to 'example/test.py') diff --git a/example/test.py b/example/test.py new file mode 100644 index 0000000..20c1c7e --- /dev/null +++ b/example/test.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python3 + +# This module is called @{name()} + +import @{module} + +print("@{function() + return "Hello World" +end}") + +print("@{function() + local a = { "asdf", "1234" } + return a[1] +end}") + +print(@{function() + local a = { "asdf", "1234" } -- { + return a[2] +end}) + +print("@{function() + local a = "asdf{asdf" + return a:sub(1) +end}") + +print("@{function() + local a = "asdf" + --[[ + some comment } + --]] + return a +end}") + +print("@{function() + local a = [[ + some comment } + ]] + return a:sub(2, 8) +end}") -- cgit v1.2.3-70-g09d2