Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit 6b2d527

Browse files
committed
Updated language
1 parent 0a47698 commit 6b2d527

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

language.org

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,24 @@ Inside the =HelloWorld= rule a [[./syntax#BlockRule][block rule]] creates a para
2929
Last but not least the actual statement to print out the =Hello world!= string defined by a [[./syntax#CallRule][call rule]] to a built-in function named =println=.
3030

3131
CASM does not require any newlines, tabulators, or statement separators like in other specification or programming languages.
32-
As example the following /Hello World/ application is equivalent to the one given above.
3332

34-
#+html: <callout type="info" icon="fa fa-code">
35-
The inline version of the /Hello World/ application specified in CASM:
36-
#+begin_src casm -n
37-
CASM init HelloWorld rule HelloWorld println( "Hello world!" )
38-
#+end_src
39-
#+html: </callout>
4033

4134
TBA
4235

4336
** Functions
4437

4538
TBA
4639

40+
# #+html: <callout type="info" icon="fa fa-code">
41+
# The following example defines a binary function named =phoneBook= with a
42+
# given type relation $x : String * String \rightarrow String$ to store
43+
# telephone number strings identified by a last and first name string:
44+
# #+begin_src casm
45+
# function phoneBook : String * String -> String
46+
# #+end_src
47+
# #+html: </callout>
48+
49+
4750
** Rules
4851

4952
TBA

0 commit comments

Comments
 (0)