blob: 1c4e17a1f7257bdc5795d4ebb31fbe6ca8b4c164 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
.Dd March 25, 2025
.Dt 3CL
.Os
.
.Sh NAME
.Nm 3cl
.Nd ccl language interpreter
.
.Sh SYNOPSIS
.Nm
.Op Fl vid
.Ar file
.
.Sh DESCRIPTION
Executes a
.Ar file
as a
.Xr ccl 7
script.
.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl v
Show how
.Nm
parses tokens.
.
.It Fl i
Start
.Nm
in an
.Sx Interactive Mode .
.
.It Fl d
Dump the stack,
list of variables
and functions
after executing.
.El
.
.Ss Interactive Mode
When
.Fl i
is passed,
.Nm
runs in an
so called
interactive mode.
Before execution
of each command,
.Nm
runs
.Xr getline 3
so user can inspect
what the program does
step-by-step.
Also,
here you can run
some commands
to get more information
about the execution.
.
.Pp
The commands are as follows:
.Bl -tag -width Ds
.It Ic d
Dump the stack,
list of variables
.Pq both local and global ones
and functions.
.El
.
.Sh EXAMPLES
Run
.Pa fib.ccl
and dump the state
after execution:
.Pp
.Dl $ ccl -d fib.ccl
.
.Sh SEE ALSO
.Xr ccl 7 ,
.Lk https://github.com/holy-8/cool_char_lang/ Original implementation
.
.Sh AUTHORS
.An Nakidai Perumenei Aq Mt nakidai@disroot.org
.
.Sh BUGS
If encounter any,
follow
.Lk https://github.com/nakidai/3cl/issues/new this link
to get help.
|