Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
echo.phs
Go to the documentation of this file.
1// Port of GNU echo.
2// 'echo' print out program for Phasor.
3// Copyright (C) 2026 Daniel McGuire.
4//
5// This program is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program. If not, see <https://www.gnu.org/licenses/>.
17
18include_stdsys();
19
20for (var i = 1; i < sys_argc(); i = i + 1) {
21 if (i > 1) {
22 print(" ");
23 }
24 print(sys_argv(i));
25}
26print("\n");
27shutdown(0);