blob: 5aee278ea27ee8f9799ee13d10076db45335d0d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
.Dd
.Dt README 7
.Os 3cl
.
.Sh NAME
.Nm 3cl
.Nd c cool char lang interpreter
.
.Sh DESCRIPTION
.Nm
is an interpreter
of cool char lang
which is a brainfuck-like langauge,
but different
and with more features.
.
.Sh EXAMPLES
.Bd -literal -offset indent
F {
/ define some local variables to work with
&a &b &c
/ if the parameter is either 0 or 1,
/ return with it
c? #; $c+ = c
c? #;
/ otherwise, get 2 previous numbers
/ of a sequence and sum them
= c $c $c
- @F = a
-- @F = b
$a $b*
}
.Ed
.
.Sh SEE ALSO
.Xr 3cl 1 ,
.Xr ccl 7 ,
.Lk https://github.com/holy-8/cool_char_lang Original implementation
|