Implement sample with working preprocessor (Stage 1 + 2)
This commit is contained in:
5
example.mlc
Normal file
5
example.mlc
Normal file
@@ -0,0 +1,5 @@
|
||||
#with language.toml
|
||||
variable:=-3; c := (a+b- 3) * 23 + variable; d := c - a;Natural : Number (n) := {n >= 0};faculty : Natural (n) -> Natural := if n = 0 then 1 else faculty (n-1) * n end;
|
||||
String Natural (n) := {Character * n};hello_word -> String := "Hello World!";
|
||||
first_letter -> Character := 'a';
|
||||
wrong -> Logic := false;date -> String := "#date_now";
|
||||
Reference in New Issue
Block a user