diff --git a/examples/functions.claro b/examples/functions.claro new file mode 100644 index 0000000..ce74893 --- /dev/null +++ b/examples/functions.claro @@ -0,0 +1,7 @@ + +TEACH add TAKES a, b + RETURN a + b +LEARNED + +CALL add WITH 2, 3 +SAY RESULT diff --git a/examples/hello.claro b/examples/hello.claro new file mode 100644 index 0000000..994d928 --- /dev/null +++ b/examples/hello.claro @@ -0,0 +1 @@ +SAY "Hello, world!" \ No newline at end of file diff --git a/examples/quiz.claro b/examples/quiz.claro new file mode 100644 index 0000000..52b6a07 --- /dev/null +++ b/examples/quiz.claro @@ -0,0 +1,4 @@ + +ASK "What is your name?" AS name +SAY "Hello" +SAY name