From 999d26eb5b7fcd96feadde6ca9ee9900ac8179af Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sun, 19 Jan 2025 20:02:29 +0400 Subject: program name changed to `marp` --- examples/const.ash | 4 ---- examples/const.marp | 4 ++++ examples/fib.ash | 16 ---------------- examples/fib.marp | 16 ++++++++++++++++ examples/hello_world.ash | 5 ----- examples/hello_world.marp | 5 +++++ examples/seq10.ash | 6 ------ examples/seq10.marp | 6 ++++++ examples/words.ash | 7 ------- examples/words.marp | 7 +++++++ 10 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 examples/const.ash create mode 100644 examples/const.marp delete mode 100644 examples/fib.ash create mode 100644 examples/fib.marp delete mode 100644 examples/hello_world.ash create mode 100644 examples/hello_world.marp delete mode 100644 examples/seq10.ash create mode 100644 examples/seq10.marp delete mode 100644 examples/words.ash create mode 100644 examples/words.marp (limited to 'examples') diff --git a/examples/const.ash b/examples/const.ash deleted file mode 100644 index 421f7f5..0000000 --- a/examples/const.ash +++ /dev/null @@ -1,4 +0,0 @@ -# Prints out the value 5 - -define CON 5 end -CON dump diff --git a/examples/const.marp b/examples/const.marp new file mode 100644 index 0000000..421f7f5 --- /dev/null +++ b/examples/const.marp @@ -0,0 +1,4 @@ +# Prints out the value 5 + +define CON 5 end +CON dump diff --git a/examples/fib.ash b/examples/fib.ash deleted file mode 100644 index c29476d..0000000 --- a/examples/fib.ash +++ /dev/null @@ -1,16 +0,0 @@ -# Print out given number of elements in the Fibonacci sequence, 46 is the max value -define fib - var lim !lim - var a 1 !a - var b 1 !b - @lim while dup 0 > do - @a dump - @b dup - @a - + !b - !a - 1 - - done -end - -10 fib diff --git a/examples/fib.marp b/examples/fib.marp new file mode 100644 index 0000000..c29476d --- /dev/null +++ b/examples/fib.marp @@ -0,0 +1,16 @@ +# Print out given number of elements in the Fibonacci sequence, 46 is the max value +define fib + var lim !lim + var a 1 !a + var b 1 !b + @lim while dup 0 > do + @a dump + @b dup + @a + + !b + !a + 1 - + done +end + +10 fib diff --git a/examples/hello_world.ash b/examples/hello_world.ash deleted file mode 100644 index a1c1d48..0000000 --- a/examples/hello_world.ash +++ /dev/null @@ -1,5 +0,0 @@ -# Prints out "Hello, World!" - -include "../lib/std.ash" - -"Hello, World!" write diff --git a/examples/hello_world.marp b/examples/hello_world.marp new file mode 100644 index 0000000..bdc5fb6 --- /dev/null +++ b/examples/hello_world.marp @@ -0,0 +1,5 @@ +# Prints out "Hello, World!" + +include "../lib/std.marp" + +"Hello, World!" write diff --git a/examples/seq10.ash b/examples/seq10.ash deleted file mode 100644 index e73743e..0000000 --- a/examples/seq10.ash +++ /dev/null @@ -1,6 +0,0 @@ -# Print out numbers from 1 to 10 - -1 while dup 11 < do - dup dump - 1 + -done diff --git a/examples/seq10.marp b/examples/seq10.marp new file mode 100644 index 0000000..e73743e --- /dev/null +++ b/examples/seq10.marp @@ -0,0 +1,6 @@ +# Print out numbers from 1 to 10 + +1 while dup 11 < do + dup dump + 1 + +done diff --git a/examples/words.ash b/examples/words.ash deleted file mode 100644 index c0e1461..0000000 --- a/examples/words.ash +++ /dev/null @@ -1,7 +0,0 @@ -# Prints out one - -define printOutOne - 1 dump -end - -printOutOne diff --git a/examples/words.marp b/examples/words.marp new file mode 100644 index 0000000..c0e1461 --- /dev/null +++ b/examples/words.marp @@ -0,0 +1,7 @@ +# Prints out one + +define printOutOne + 1 dump +end + +printOutOne -- cgit v1.2.3