diff options
author | Li Jin <dragon-fly@qq.com> | 2021-01-06 18:01:23 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-01-06 18:01:23 +0800 |
commit | b2e982806edf812d68eeacc3d5598d7bd06128e5 (patch) | |
tree | 77163d772abc0804410c4d6a9eda942a774bf007 /tup | |
parent | c4283e40504a0878533fc8d63445ac5eeb3584ea (diff) | |
download | yuescript-b2e982806edf812d68eeacc3d5598d7bd06128e5.tar.gz yuescript-b2e982806edf812d68eeacc3d5598d7bd06128e5.tar.bz2 yuescript-b2e982806edf812d68eeacc3d5598d7bd06128e5.zip |
fix tup example.
Diffstat (limited to 'tup')
-rw-r--r-- | tup/Tuprules.tup | 2 | ||||
-rw-r--r-- | tup/app.moon | 7 | ||||
-rw-r--r-- | tup/app.mp | 7 | ||||
-rw-r--r-- | tup/t/extra.moon | 3 | ||||
-rw-r--r-- | tup/t/extra.mp | 1 |
5 files changed, 9 insertions, 11 deletions
diff --git a/tup/Tuprules.tup b/tup/Tuprules.tup index 6583c79..f67c90c 100644 --- a/tup/Tuprules.tup +++ b/tup/Tuprules.tup | |||
@@ -1 +1 @@ | |||
: foreach *.moon |> moonp %f |> %B.lua | : foreach *.mp |> moonp %f |> %B.lua | ||
diff --git a/tup/app.moon b/tup/app.moon deleted file mode 100644 index 3adc481..0000000 --- a/tup/app.moon +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | import extra from require "t.extra" | ||
2 | |||
3 | reverse = string.reverse | ||
4 | |||
5 | "sulpnooM morf olleH" |> reverse |> print | ||
6 | |||
7 | print extra! | ||
diff --git a/tup/app.mp b/tup/app.mp new file mode 100644 index 0000000..90680f4 --- /dev/null +++ b/tup/app.mp | |||
@@ -0,0 +1,7 @@ | |||
1 | import "t.extra" | ||
2 | |||
3 | :reverse = string | ||
4 | |||
5 | "sulpnooM morf olleH" |> reverse |> print | ||
6 | |||
7 | print extra! | ||
diff --git a/tup/t/extra.moon b/tup/t/extra.moon deleted file mode 100644 index 76e05a4..0000000 --- a/tup/t/extra.moon +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | extra = () -> "Hello from extra" | ||
2 | |||
3 | :extra | ||
diff --git a/tup/t/extra.mp b/tup/t/extra.mp new file mode 100644 index 0000000..072de69 --- /dev/null +++ b/tup/t/extra.mp | |||
@@ -0,0 +1 @@ | |||
export default () -> "Hello from extra" | |||