mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 19:12:25 +00:00
code
Former-commit-id: a1e328df71183c99f4b6df1269b40789262c0e9b
This commit is contained in:
parent
b9676648c4
commit
0bd38727b7
1 changed files with 3 additions and 1 deletions
|
|
@ -75,13 +75,15 @@ Simple example
|
||||||
|
|
||||||
Let's write hello world file:
|
Let's write hello world file:
|
||||||
|
|
||||||
$ cat hey.Mod
|
>$ cat hey.Mod
|
||||||
|
|
||||||
|
<code>
|
||||||
MODULE hey;
|
MODULE hey;
|
||||||
IMPORT Console;
|
IMPORT Console;
|
||||||
BEGIN
|
BEGIN
|
||||||
Console.String("hey there"); Console.Ln
|
Console.String("hey there"); Console.Ln
|
||||||
END hey.
|
END hey.
|
||||||
|
</code>
|
||||||
|
|
||||||
>voc -M hey.Mod
|
>voc -M hey.Mod
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue