September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -0,0 +1,2 @@
SYS "GetCommandLine" TO cl%
PRINT $$cl%

View file

@ -0,0 +1,9 @@
100 PROGRAM "Name1.bas"(A,B,C,S$)
110 CHAIN "Name2.BAS"(A,B,C,S$)
edit 1
100 PROGRAM "Name2.bas"(A,B,C,S$)
110 PRINT A,B,C,S$
edit 0
start(1,2,3,"Hello")

View file

@ -0,0 +1,18 @@
identification division.
program-id. sample.
data division.
working-storage section.
01 progname pic x(16).
procedure division.
sample-main.
display 0 upon argument-number
accept progname from argument-value
display "argument-value zero :" progname ":"
display "function module-id :" function module-id ":"
goback.
end program sample.

View file

@ -1,6 +1,8 @@
program =
[
console writeLine:system'commandLine. // the whole command line
import extensions;
console writeLine('program'arguments[0]). // the program name
].
public program()
{
console.printLine(program_arguments.asEnumerable()); // the whole command line
console.printLine(program_arguments[0]); // the program name
}

View file

@ -0,0 +1 @@
(print (car *vm-args*))

View file

@ -0,0 +1,8 @@
% SWI-Prolog version 8.0.0 for i686-linux.
% This will find itself, and return the knowledge base it is in.
file_name(F) :- true
, M = user % M is the module .
, P = file_name(_) % P is the predicate .
, source_file(M:P, F) % F is the file .
, \+ predicate_property(M:P, imported_from(_))
.

View file

@ -0,0 +1 @@
:- multifile(this_is_one_of_my_files). this_is_one_of_my_files.