Directories
¶
| Path | Synopsis |
|---|---|
|
bench
|
|
|
rsbench
command
Command rsbench runs the RuneScript benchmark and conformance suite: RuneScript on the interpreter (rs-vm), RuneScript compiled to JavaScript (rs-js), and the same programs written in TypeScript (ts, plus variants such as ts-checked), all on the same machine and inputs.
|
Command rsbench runs the RuneScript benchmark and conformance suite: RuneScript on the interpreter (rs-vm), RuneScript compiled to JavaScript (rs-js), and the same programs written in TypeScript (ts, plus variants such as ts-checked), all on the same machine and inputs. |
|
cmd
|
|
|
runescript
command
Command runescript checks, runs, and compiles RuneScript programs.
|
Command runescript checks, runs, and compiles RuneScript programs. |
|
internal
|
|
|
ast
Package ast defines the RuneScript abstract syntax tree.
|
Package ast defines the RuneScript abstract syntax tree. |
|
checker
Package checker performs name resolution and static type checking.
|
Package checker performs name resolution and static type checking. |
|
conv
Package conv holds the number formatting and parsing rules shared by the interpreter and the checker.
|
Package conv holds the number formatting and parsing rules shared by the interpreter and the checker. |
|
devserver
Package devserver is `runescript dev`: a local web server that compiles a program to JavaScript, rebuilds it whenever one of its files changes, and reloads the browser.
|
Package devserver is `runescript dev`: a local web server that compiles a program to JavaScript, rebuilds it whenever one of its files changes, and reloads the browser. |
|
diagnostics
Package diagnostics defines source positions and compiler/runtime diagnostics shared by every RuneScript compiler stage.
|
Package diagnostics defines source positions and compiler/runtime diagnostics shared by every RuneScript compiler stage. |
|
dom
Package dom is RuneScript's internal list of DOM elements and their attributes (OQ-JS-09).
|
Package dom is RuneScript's internal list of DOM elements and their attributes (OQ-JS-09). |
|
driver
Package driver connects the compiler stages: load, check, and run or compile.
|
Package driver connects the compiler stages: load, check, and run or compile. |
|
fmath
Package fmath holds the pure-Go implementations of the transcendental functions of Go's math package (sin, exp, log, pow, ...), copied from the Go source (see LICENSE-GO).
|
Package fmath holds the pure-Go implementations of the transcendental functions of Go's math package (sin, exp, log, pow, ...), copied from the Go source (see LICENSE-GO). |
|
ir
Package ir defines RuneScript's typed intermediate representation.
|
Package ir defines RuneScript's typed intermediate representation. |
|
jsgen
Package jsgen compiles RuneScript IR to a JavaScript module.
|
Package jsgen compiles RuneScript IR to a JavaScript module. |
|
jshost
Package jshost describes the host-neutral JavaScript modules ("rune:fs", ...) that extern declarations may name, and how each is provided on a JavaScript host.
|
Package jshost describes the host-neutral JavaScript modules ("rune:fs", ...) that extern declarations may name, and how each is provided on a JavaScript host. |
|
lexer
Package lexer converts RuneScript source text into tokens.
|
Package lexer converts RuneScript source text into tokens. |
|
loader
Package loader finds and parses every source file of a program: the entry file and everything it reaches through `use` declarations.
|
Package loader finds and parses every source file of a program: the entry file and everything it reaches through `use` declarations. |
|
parser
Package parser builds an AST from RuneScript tokens.
|
Package parser builds an AST from RuneScript tokens. |
|
runtime
Package runtime is a tree-walking interpreter for RuneScript programs.
|
Package runtime is a tree-walking interpreter for RuneScript programs. |
|
srcenc
Package srcenc turns the bytes of a source file into UTF-8 text.
|
Package srcenc turns the bytes of a source file into UTF-8 text. |
|
term
Package term decides whether output to a terminal may be colored, for the CLI's diagnostics and for std:io's error and warning lines.
|
Package term decides whether output to a terminal may be colored, for the CLI's diagnostics and for std:io's error and warning lines. |
|
types
Package types defines RuneScript's semantic types.
|
Package types defines RuneScript's semantic types. |
|
watch
Package watch detects changes to a program's files, for watch mode (`runescript run --watch`) and the dev server (`runescript dev`).
|
Package watch detects changes to a program's files, for watch mode (`runescript run --watch`) and the dev server (`runescript dev`). |
|
Package stdlib holds RuneScript's standard library packages, implemented natively in Go and made available with `use "std:<name>";`.
|
Package stdlib holds RuneScript's standard library packages, implemented natively in Go and made available with `use "std:<name>";`. |
Click to show internal directories.
Click to hide internal directories.