-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathCommandLine.mpl
More file actions
34 lines (30 loc) · 1.07 KB
/
CommandLine.mpl
File metadata and controls
34 lines (30 loc) · 1.07 KB
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
# Copyright (C) Matway Burkow
#
# This repository and all its contents belong to Matway Burkow (referred here and below as "the owner").
# The content is for demonstration purposes only.
# It is forbidden to use the content or any part of it for any purpose without explicit permission from the owner.
# By contributing to the repository, contributors acknowledge that ownership of their work transfers to the owner.
"Span.toSpan2" use
"String.StringView" use
"String.makeStringViewByAddress" use
"String.print" use
"algorithm.each" use
"algorithm.map" use
"control.Natx" use
"control.print" use
CommandLine: [Natx 0 toCommandLine2];
toCommandLine2: [
argumentAddress: argumentCount:;;
argumentAddress Natx addressToReference argumentCount toSpan2 @makeStringViewByAddress @StringView map
];
printCommandLine: [
commands:;
"Commands provided: " print
commands.size print
commands [
command:;
LF " «" & print
command print
"»" print
] each
];