This chapter lists every file under bin/modules/rvm/,
for both hosts: what it is, its main classes, routines or exports, its
licence, and the chapter that documents it. It ends with the
correspondence between the ooRexx host and the JavaScript host, file by
file. It assumes the overview of chapter 1;
the JS module graph is in chapter
14.
Sizes are approximate line counts, to give an idea of weight.
Licence: A = Apache 2.0 (../LICENSE), C = CPL
1.0 (derived from ooRexx; the authoritative list is ../NOTICE, see 19-licensing.md).
bin/modules/rvm/
rvm, rvm.cmd, rvm.rex launchers (Unix, Windows) and front end of the ooRexx host
RVM.*.cls the ooRexx host (14 packages)
makeprelude.rex CoreClasses.orx / StreamClasses.orx -> prelude*.orx
prelude.orx, prelude-streams.orx, prelude-rvm.orx
prelude.orx.rcode, prelude-streams.orx.rcode their R-code (generated)
NOTICE, LICENSE, LICENSE-CPL licensing
rxqueue/ the RXQUEUE filter (rxqueue.rex + launcher)
smoke/ the smoke test (smoke.rex, timeout.mjs, astcheck.rex, smoke-select.py, README.md, cases/)
tests/ the test suites and check.sh (chapter 16, tests/README.md)
doc/ this documentation
js/ the JavaScript host
rvm, rvm.cmd, rvm.mjs, runner.mjs, rvm-browser.mjs front ends
machine.mjs, rcode.mjs, context.mjs, objects.mjs, number.mjs, errors.mjs
bifcore.mjs, bifs*.mjs, streams.mjs, files.mjs
libraries.mjs, rexxutil.mjs, rxmath.mjs, rxregexp.mjs, rxsock.mjs, hostemu.mjs
interrupt.mjs
host-node.mjs, hostfile-node.mjs, sockets-node.mjs, sockets-worker.mjs
host-browser.mjs, compiler.mjs
gendata.rex, genprelude.rex generators
rvm-data.mjs, rvm-prelude.mjs, rvm-prelude-streams.mjs generated
rxqueue/rxqueue RXQUEUE launcher for the JS host
README.md pointer to chapter 14
The RVM requires the Rexx Parser: bin/ must be on
REXX_PATH (the ooRexx launcher puts it there), because the
packages require parser.cls, parser/BIFs.cls
and each other as modules/rvm/RVM.X.cls.
| File | Size | Lic | Role | Chapter |
|---|---|---|---|---|
../rvm |
30 | A | Shell launcher: sets RVM_EXECUTABLE to its own path
(links not resolved), prepends bin/ to
REXX_PATH, exec rexx rvm.rex "$@". |
01 |
../rvm.cmd |
20 | A | The same for Windows (cmd.exe; CRLF; set without
parenthesized blocks, which a REXX_PATH with
(x86) would break). |
13 |
../rvm.rex |
370 | A | The front end: compile and run (rvm FILE), list
(-l), write .rcode (-c), run and
write caches (-w), run R-code (FILE.rcode), a
string (-e); the compile-request protocol of the JS host
(-f fragments, -p FILE,
-s OPTION). Requires parser.cls,
RVM.Compiler, RVM.Machine,
RVM.BIFs. No classes or routines of its own. |
01, 03 |
RVM.*.cls)| File | Size | Lic | Main classes / routines | Chapter |
|---|---|---|---|---|
../RVM.Compiler.cls |
3.2k | A | RVM.Compiler (compile, extend
for INTERPRET onto a loaded program, fragment for the JS
host, VERSION), RVM.Unit (code, constant pool,
slots, clause table, labels, WITH table, jump fix-ups),
RVM.Ref. Floating Class::rcompile methods on
the parser's AST classes; routines Gen,
CompileExpr, CompileCondition,
CompileMessage, CompileDirectives,
CompileAnnotations, CompileTemplates,
CompileWith, CompileJump. |
03 |
../RVM.Machine.cls |
7.4k | A | RVM.RCode (write/read R-code text),
RVM.ISA (instruction table, verifier,
VERSION), RVM.Program,
RVM.Routine, RVM.RequiresEntry,
RVM.ClassEntry, RVM.MethodEntry,
RVM.WithSpec, RVM.LabelRef,
RVM.PreludeLoader, RVM.SourceCompiler,
RVM.Clause, RVM.Context (subclass of
RVM.BaseContext), RVM.Frame,
RVM.Block, RVM.Parse, RVM.Machine
(run: scheduler, execute: dispatch loop),
RVM.MacroLoader, WITH object targets
(RVM.StemObjInput, RVM.StreamObjInput,
RVM.StemObjOutput, RVM.ObjectOutput). Routines
for external routines and packages (CallRoutine,
EnterProgram, LoadExternal,
FindExternal, FreshProgram,
StartPackage, LoadPackage,
RequiresProgram), caches (CachedRCode,
SourceHash, WriteCache),
Interpret, interactive trace (DebugStart,
DebugLineIn...), commands (IssueCommand,
PickSpec, MakeInput, MakeOutput;
RVM.CommandWait, RVM.CommandPoller), reads of
standard input that wait (StdinGate; labels
StdinWait, StdinResumed,
StdinSent), sends (DoSend,
SendLoop, Deliver, EnterMethod,
PrivateOK), CompileSource,
DotSpecial, TracebackCheck,
ErrorReport. |
04, 05, 06, 07, 08, 09 |
../RVM.BaseContext.cls |
2.5k | C | RVM.BaseContext (variables, NUMERIC, ADDRESS, traps,
TRACE settings and output, interactive-trace state, RANDOM seed,
security manager), RVM.Activation, RVM.Var,
RVM.Vars, RVM.Stem, RVM.TailNode
(port of CompoundVariableTable), RVM.Dropped,
RVM.UseName, RVM.Trap, RVM.Throw,
RVM.ConditionInfo, RVM.StandardOutput,
RVM.ParseTarget (port of RexxTarget),
RVM.Clock, RVM.Fragments,
RVM.Queues. |
05, 06, 13 |
../RVM.Number.cls |
1.5k | C | RVM.Number, RVM.Integer,
RVM.NumCtx; routines num, str,
wholeNumber, unsignedWholeNumber,
StemValue, isNum, lit,
ExactAddSub. |
02 |
../RVM.BIFs.cls |
3.5k | C | CheckArgs (ANSI 9.2.1 over
.Parser.BIFInfo),
BifError/BifCodeOf/BifMessageOf
(40.x), IsBIF/CallBIF (a function that ooRexx
runs as a method of String runs RVM.Objects' StringMethod:
RVM.BIFTable~viaMethod)/ComputeBIF,
RoutineArgs (BEEP, FILESPEC, DIRECTORY),
MethodStreamArgs/Int64Arg/SizeArg,
one BIF.<NAME> routine per BIF, NameRef,
ParseDateTime, SecureStream; classes
RVM.BifMessages, RVM.BIFTable,
RVM.BifSend, RVM.RexxUtil. Also the library
registry: RexxUtilRoutines, RVMLibrary,
OoRexxLibrary, LibraryMethods,
RxRegExpMethods, LibraryEnvironments,
ExternalSpec, ExternalRoutine,
ExternalMethod, RxMathRoutines,
RxSockRoutines, BIF.RXFUNCADD/QUERY/DROP. |
11, 12 |
../RVM.Stream.cls |
1.7k | C | RVM.StreamTable (per program; standard names),
RVM.Stream (port of StreamInfo over a model of
SysFile; STREAM command parser;
methodOp for the Stream class; inputNeed),
RVM.StdinNeed. |
13 |
../RVM.Commands.cls |
157 | A | WITH input/output classes RVM.StreamInput,
RVM.LinesInput, RVM.StreamOutput; routines
SplitOutput, SplitFileLines,
JoinLines. The machine's IssueCommand,
PickSpec, MakeInput, MakeOutput
(with the RVM's object targets) are in
RVM.Machine.cls. |
13 |
../RVM.Host.cls |
1.4k | A | The platform layer (Unix; on Windows, the commands go to the ooRexx
it runs on: NativeRun): RVM.CommandHost
(environments, /bin/sh, in-process
cd/set/export/unset,
RVM_QUEUES/RVM_MACROSPACE files, rxqueue in
PATH), RVM.CommandJob (a command in a thread
of its own), RVM.StdinReader and RVM.StdinJob
(standard input read for an activity that waits, by dd in a
thread of its own), RVM.FileSystem,
RVM.HostFile (a byte device over a host
.Stream; the standard streams over
.Input/.Output/.Error),
RVM.SystemHost (environment with SETLOCAL journal,
directory, userid, shareQueues). |
13 |
../RVM.Objects.cls |
8.8k | C | The object model: RVM.Obj, RVM.Behaviour,
RVM.Method, RVM.ClassData,
RVM.MethodFrame, RVM.Level,
RVM.NativeCall, RVM.FrameInfo,
RVM.Delegate and its kinds (RVM.MakeClass,
RVM.Enhance, RVM.Installer,
RVM.Resend), RVM.RoutineCall,
RVM.PackageRun, RVM.MessageScope,
RVM.OrNil, RVM.SupplierState; concurrency
(RVM.Activity, RVM.Scheduler,
RVM.Timer, RVM.Pool,
RVM.MessageState, RVM.EventSem,
RVM.MutexSem, RVM.Wait,
RVM.StartMessage, RVM.Reraise,
RVM.MessageSent, RVM.Notifier,
RVM.NoResult, RVM.StdinWait,
RVM.StdinPoller); RVM.World (classes,
.local/.environment, prelude loading
ensurePrelude/bootstrap/refresh,
install, libraries, UNINIT); RVM.MBuffer,
RVM.VarRef, RVM.DirMethods,
RVM.DirMethodsRun, RVM.ItemKey,
RVM.HashKey, RVM.StringKey,
RVM.StringArgs. Routines CallNative (every
class's natives), Lookup, StringOperator,
Boolean, CompareNormal,
MergeSort, HashNative,
HostCollection, LibraryNative. |
07, 08, 09, 10 |
../RVM.RexxUtil.cls |
890 | C | REXXUTIL, always loaded: CheckRoutineArgs,
RexxUtilNative, NativeArgs,
ContextStem, StemElement,
StemSort (RVM.StemSorter),
DumpVariables, FormatMessage, macrospace
(MacroProgram, MacroImage,
SaveMacros, LoadMacros,
RVM.SharedMacros). |
12 |
../RVM.RxMath.cls |
130 | A | RxMathNative: argument checks as ooRexx's typed
natives, then the host's rxmath. |
12 |
../RVM.RxRegExp.cls |
120 | A | rxregexp: RegularExpression's natives run the host's
(RVM.RxRegExpHost, made with
Method~loadExternalMethod). |
12 |
../RVM.RxSock.cls |
710 | C | rxsock: RVM.RxSock (per-socket FIONBIO, timeouts, errno
names), RVM.SockState, RVM.SockWait (an I/O
wait of the scheduler), RVM.SockPoller. |
12 |
../RVM.HostEmu.cls |
610 | C | EnvironmentCommand (ADDRESS environments of the
libraries: hostemu's EXECIO, HI, TE, TS), RVM.HostEmuFiles,
RVM.HostEmuFile, RVM.HostEmuOptions,
RVM.HostEmuLexer, RVM.HostEmuTables (port of
GrxHost and cmdparse's tables). |
12 |
::REQUIRES graph: rvm.rex →
parser.cls, RVM.Compiler,
RVM.Machine, RVM.BIFs,
parser/BIFs.cls. RVM.Machine →
RVM.Number, RVM.BaseContext,
RVM.BIFs, RVM.Commands,
parser.cls, RVM.Compiler,
RVM.Objects, RVM.RexxUtil,
RVM.RxMath, RVM.RxSock,
RVM.HostEmu. RVM.Compiler →
parser.cls, RVM.BaseContext.
RVM.BIFs → RVM.Number,
RVM.Stream, RVM.RxRegExp.
RVM.BaseContext → RVM.Host.
RVM.Commands → parser.cls,
RVM.Number, RVM.Host. RVM.Objects
and the library packages → RVM.Number and, for the
libraries, RVM.Objects, RVM.BIFs.
| File | Size | Lic | Role | Chapter |
|---|---|---|---|---|
../makeprelude.rex |
120 | A | rexx makeprelude.rex CoreClasses.orx > prelude.orx;
... StreamClasses.orx streams > prelude-streams.orx.
Blanks what the RVM cannot have, keeping every line number; appends
prelude-rvm.orx. |
10 |
../prelude.orx |
4.4k | C | ooRexx's CoreClasses.orx, cut, plus
prelude-rvm.orx (generated by
makeprelude.rex). |
10 |
../prelude-streams.orx |
1.0k | C | ooRexx's StreamClasses.orx (Stream and its mixins,
StreamSupplier, File, RexxQueue), cut (generated). |
10 |
../prelude-rvm.orx |
221 | C | The RVM's own part of the prelude: RVM.ArraySort
(SORTWITH, STABLESORTWITH), SortArray,
RVM.FlatArray (a multidimensional array by flat
position). |
10 |
../prelude.orx.rcode,
../prelude-streams.orx.rcode |
23k, 5.4k | C | R-code caches of the two preludes (generated:
./rvm -l); the ooRexx host loads them,
genprelude.rex embeds them for JS. |
10, 14 |
../NOTICE, ../LICENSE, ../LICENSE-CPL |
— | — | The licence split and the list of CPL files; the Apache 2.0 text; the CPL text. | 19 |
| File | Size | Lic | Role | Chapter |
|---|---|---|---|---|
../rxqueue/rxqueue.rex |
150 | C | The RXQUEUE filter (port of rxqueue.cpp):
/FIFO, /LIFO, /CLEAR, queue name
or RXQUEUE or SESSION; works on the RVM's queues through
RVM_QUEUES. |
13 |
../rxqueue/rxqueue |
20 | A | Shell launcher: ../rvm rxqueue.rex "$@". The ooRexx
host puts this directory first in the PATH of every
command. |
13 |
../smoke/smoke.rex |
400 | A | rexx smoke.rex [--live\|--files] [--dir DIR] [--batch K [--size N]] [rvm\|js\|both] [PATTERN],
--make: runs astcheck.rex, then the programs
of cases/ (or of a suite's directory) on the RVMs, in a
copy in the temporary directory, and compares stdout, stderr and rc with
native's (saved, or run again: --live); Unix and
Windows. |
16 |
../smoke/timeout.mjs |
60 | A | timeout for Windows: runs a program with a time limit,
killing the program itself; rc 0–255;
--out/--err give it pipes. |
16 |
../smoke/astcheck.rex |
130 | A | Every AST class (clause, expression, term) has an
rcompile or a listed reason; reports NEW and
GONE classes. |
16, 20 |
../smoke/README.md |
50 | A | How to run it, what the cases cover. | 16 |
../smoke/cases/ |
— | A (NOTICE) |
148 programs with .out, .err,
.rc (native's), 4 packages (.cls), 4
.live markers (expected output regenerated at run
time). |
16 |
../smoke/smoke-select.py |
100 | A | Chooses the smoke programs out of the end-to-end suites (greedy cover of opcodes, operands, sections, error codes). | 16 |
../tests/ |
— | A | The test suites (e2e/, oo/,
ext/, cache/, signal/,
fuzz/, debug/, ootest/) and
check.sh; the layout is in
tests/README.md. |
16 |
| File | Size | Lic | Role / exports | Chapter |
|---|---|---|---|---|
../js/rvm |
30 | A | Shell launcher: sets RVM_EXECUTABLE, prepends
bin/ to REXX_PATH,
exec node rvm.mjs "$@". |
14 |
../js/rvm.cmd |
20 | A | The same for Windows, as ../rvm.cmd. |
13 |
../js/rvm.mjs |
180 | A | Node command line: [-s SOURCE] [-w] FILE,
-e PROGRAM; its main thread runs the program in a worker
and takes the signals, chdir and the reads of standard
input for activities that wait (dd). |
14 |
../js/runner.mjs |
130 | A | runProgram, compileSource,
reportError, runSource. |
14 |
../js/rvm-browser.mjs |
40 | A | Bundle entry: re-exports BrowserHost,
runProgram, runSource,
compileSource, reportError,
readRCode, sourceLines. |
14 |
../js/rxqueue/rxqueue |
20 | A | Shell launcher: ../rvm ../../rxqueue/rxqueue.rex "$@";
first in the PATH of the JS host's commands. |
13 |
../js/gendata.rex |
140 | A | Generates rvm-data.mjs (needs bin/ on
REXX_PATH). |
14 |
../js/genprelude.rex |
120 | A | Generates rvm-prelude.mjs /
rvm-prelude-streams.mjs from the
.orx.rcode. |
14 |
../js/README.md |
— | A | Short pointer to chapter 14. | 14 |
| File | Size | Lic | Role / main exports | Chapter |
|---|---|---|---|---|
../js/machine.mjs |
5.1k | A | Port of RVM.Machine: Machine
(run: scheduler of activities, each with its machine;
dispatch loop; sends, calls, INTERPRET, interactive trace, commands,
reads of standard input that wait: stdinGate,
stdinWait), internal PreludeLoader,
SourceCompiler, MFrame, Block,
ParseState, WITH classes (StreamInput,
LinesInput, StemObjInput,
StreamObjInput, StemObjOutput,
ObjectOutput, StreamOutput). Exports
Machine, report, programOfRCode,
overrideOptions, splitOutput. |
05, 06, 07, 08 |
../js/rcode.mjs |
860 | A | R-code text → Program; the verifier with the same
ISA table. Exports readRCode,
verify, ISA, ISA_VERSION,
RCODE_VERSION, Program, Routine,
WithSpec, sourceLines,
sourceHash, cachePath,
findExternal, fileExtension,
appendFragment, firstClause,
unquote, pauseDrop. |
04, 03 |
../js/context.mjs |
1.6k | C | Port of RVM.BaseContext: Context,
Frame (slot cells), Activation,
Stem/TailNode, Trap,
Throw, ConditionInfo, Level,
NativeCall, FrameInfo,
ParseTarget, Queues, VERSION,
dotSpecial,
upperBytes/lowerBytes. |
05, 06, 09 |
../js/objects.mjs |
7.5k | C | Port of RVM.Objects and of ooRexx's collections:
Obj, Behaviour, Method,
ClassData, World, Activity,
Scheduler, Pool, MessageState,
EventSem, MutexSem, Wait,
StdinWait, Delegate, VarRef,
MBuffer, RArray, RList,
RQueue, RHash, RexxMap,
HashShadow, stringHash,
callNative, lookup,
compareNormal, boolean,
stringOperator. |
07, 08, 09, 10 |
../js/number.mjs |
810 | C | Port of RVM.Number/RVM.Integer:
RexxNumber, RexxInteger, NumCtx,
num, str, lit,
wholeNumber, unsignedWholeNumber,
parseNumber, isNum,
WHOLE_DIGITS. |
02 |
../js/errors.mjs |
80 | A | RexxError (a Rexx error as a JS exception),
errorText, secondaryText,
canonicalCode. |
06 |
../js/bifcore.mjs |
500 | C | BIFS registry and register,
checkArgs, numberValue,
wholeValue, bifError,
bifMethodError, the byte layer helpers. |
11 |
../js/bifs.mjs |
450 | A | isBIF, callBIF (VIA_METHOD:
the functions run as methods of String, see objects'
stringMethod), computeBIF; string and state
BIFs; loads the three files below. |
11 |
../js/bifs-number.mjs |
580 | C | ABS MAX MIN TRUNC FORMAT, radix and bit BIFs, XRANGE, DATATYPE. | 11 |
../js/bifs-system.mjs |
760 | C | SYMBOL VAR VALUE SOURCELINE ERRORTEXT RANDOM DATE TIME; exports
nameRef, parseDateTime. |
11 |
../js/bifs-stream.mjs |
480 | A | Stream BIFs, QUALIFY FILESPEC DIRECTORY USERID BEEP GC SETLOCAL
ENDLOCAL; BifSend. |
11, 13 |
../js/streams.mjs |
1.7k | C | Port of RVM.Stream: StreamTable,
Stream, fmt, STDIN_GATE,
StdinNeed. |
13 |
../js/files.mjs |
40 | A | files (the file layer: FileSystem,
HostFile, FileOps, toBytes,
fromBytes), installFiles. |
14 |
| File | Size | Lic | Role / main exports | Chapter |
|---|---|---|---|---|
../js/libraries.mjs |
140 | A | The closed library registry (rxmath, rxsock, REXX, rexxutil,
hostemu): rvmLibrary, ooRexxLibrary,
libraryMethods, libraryEnvironments,
nativeRoutine, externalSpec,
externalRoutine, externalMethod. |
12 |
../js/rexxutil.mjs |
1.1k | C | Port of RVM.RexxUtil: ROUTINES,
rexxUtilRoutine, checkRoutineArgs,
rexxUtilNative, nativeArgs,
contextStem, stemElement,
macroProgram, SharedMacros. |
12 |
../js/rxmath.mjs |
280 | C | rxmath computed in JS: RXMATH_ROUTINES,
rxMathNative. |
12 |
../js/rxregexp.mjs |
460 | C | Port of rxregexp (rxregexp.cpp,
automaton.cpp, dblqueue.cpp):
Automaton, RXREGEXP_METHODS,
rxRegExpNative. |
12 |
../js/rxsock.mjs |
390 | C | Port of RVM.RxSock: RXSOCK_ROUTINES,
rxSockNative, SockWait. |
12 |
../js/hostemu.mjs |
430 | C | Port of RVM.HostEmu:
environmentCommand. |
12 |
| File | Size | Lic | Role / main exports | Chapter |
|---|---|---|---|---|
../js/host-node.mjs |
1.1k | A | NodeHost: port of
RVM.CommandHost/RVM.SystemHost (Unix; Windows:
prepareWindows, runInternallyWindows); I/O
(standard input read by the main thread for an activity that waits:
stdinFetch...), commands, environment, clock, compilation
by rexx rvm.rex -f/-s/-p, .rcode caches, queue
and macrospace sharing, sockets. |
14, 13 |
../js/hostfile-node.mjs |
1.1k | C | Port of RVM.FileSystem/RVM.HostFile over
fs (ooRexx's write buffering, glibc errno texts; Windows:
qualifyWindows, the sharing table shareClash):
FileSystem, HostFile, FileOps,
StdFile (a standard stream as a file: transient or
persistent, its offset), toBytes, fromBytes;
installs them. |
13 |
../js/interrupt.mjs |
30 | A | Ctrl-C: interrupt (the flag the main thread sets:
rvm.mjs), takeInterrupt. |
07, 14 |
../js/sockets-node.mjs |
60 | A | NodeSockets: synchronous calls to the sockets worker
(Atomics.wait). |
14 |
../js/sockets-worker.mjs |
710 | C | Worker thread: BSD sockets emulated over net,
dgram, dns (rxsock's C side). |
14 |
../js/host-browser.mjs |
610 | A | BrowserHost (callbacks, in-memory files, environment
table, no commands, addLibrary,
enableCompiler, reset), and its
FileSystem, HostFile,
FileOps. |
14 |
../js/compiler.mjs |
150 | A | Compiler: runs rvm.rex's R-code on the JS
RVM in a kept world; fragment, source,
file. |
14, 03 |
| File | Size | Lic | Content | Generator |
|---|---|---|---|---|
../js/rvm-data.mjs |
1.5k | C | ERROR_TEXT, SECONDARY,
BIF_INFO, MESSAGES |
gendata.rex |
../js/rvm-prelude.mjs |
23k | C | PRELUDE_RCODE |
genprelude.rex |
../js/rvm-prelude-streams.mjs |
5.4k | C | PRELUDE_STREAMS_RCODE |
genprelude.rex |
See 14-javascript.md for when and how to regenerate them.
A change to a file in the left column is normally made in the same change to the files in the right column (20-maintaining.md).
| ooRexx host | JS host | Notes |
|---|---|---|
rvm, rvm.cmd |
js/rvm, js/rvm.cmd |
|
rvm.rex (run modes) |
js/rvm.mjs, js/runner.mjs |
rvm.rex's compile modes (-f,
-p, -s) are not ported: the JS host calls them
(Node) or runs rvm.rex itself (compiler.mjs,
browser). |
RVM.Compiler.cls |
— | Not ported; one compiler for both hosts. |
RVM.Machine.cls: RVM.RCode,
RVM.ISA, RVM.Program,
RVM.Routine, RVM.WithSpec, cache paths,
external search |
js/rcode.mjs |
RVM.ISA and ISA must stay identical. |
RVM.Machine.cls: RVM.Machine,
RVM.Frame, RVM.Block, RVM.Parse,
RVM.PreludeLoader, RVM.SourceCompiler, WITH
object targets, commands |
js/machine.mjs |
RVM.Frame→MFrame,
RVM.Parse→ParseState. |
RVM.Machine.cls: RVM.Context |
js/context.mjs (Context) |
The JS Context merges RVM.BaseContext and
its subclass. |
RVM.BaseContext.cls |
js/context.mjs |
Variables by name (RVM.Vars) vs by slot
(Frame). |
RVM.Number.cls |
js/number.mjs |
|
RVM.Objects.cls |
js/objects.mjs |
JS also ports the collections the ooRexx host takes from native
ooRexx (RArray, RList, RQueue,
RHash). |
RVM.BIFs.cls: BIFs, CheckArgs, 40.x |
js/bifcore.mjs, js/bifs.mjs,
js/bifs-number.mjs, js/bifs-system.mjs,
js/bifs-stream.mjs |
|
RVM.BIFs.cls: library registry |
js/libraries.mjs |
|
RVM.Stream.cls |
js/streams.mjs |
|
RVM.Commands.cls (WITH classes,
SplitOutput) |
js/machine.mjs (StreamInput,
LinesInput, StreamOutput,
splitOutput) |
|
RVM.Host.cls: RVM.CommandHost,
RVM.SystemHost |
js/host-node.mjs (NodeHost);
js/host-browser.mjs (BrowserHost) |
|
RVM.Host.cls: RVM.FileSystem,
RVM.HostFile |
js/hostfile-node.mjs; in-memory in
js/host-browser.mjs; installed through
js/files.mjs |
|
RVM.RexxUtil.cls |
js/rexxutil.mjs |
|
RVM.RxMath.cls (+ native rxmath) |
js/rxmath.mjs |
JS computes the functions itself. |
RVM.RxRegExp.cls (+ native rxregexp) |
js/rxregexp.mjs |
JS ports the C++ matcher. |
RVM.RxSock.cls (+ native rxsock) |
js/rxsock.mjs, js/sockets-node.mjs,
js/sockets-worker.mjs |
JS emulates the sockets in a worker. |
RVM.HostEmu.cls |
js/hostemu.mjs |
|
prelude.orx.rcode,
prelude-streams.orx.rcode |
js/rvm-prelude.mjs,
js/rvm-prelude-streams.mjs |
Generated by genprelude.rex. |
the host's ErrorText, parser/BIFs.cls
(used live) |
js/rvm-data.mjs, js/errors.mjs |
Generated by gendata.rex. |
rxqueue/rxqueue |
js/rxqueue/rxqueue |
Both run rxqueue/rxqueue.rex on their own RVM. |
| — | js/rvm-browser.mjs, js/compiler.mjs |
Browser only. |
prelude*.orx, their .rcode and the three
generated .mjs are in the repository so that neither host
needs the ooRexx sources, and the ooRexx host does not recompile the
prelude (about 10 s) on every run.