Skip to content
Jan Špaček edited this page Apr 14, 2016 · 3 revisions

The standard library defines the basic functions. Spiral programs do not have any built-in variables, so the import of the standard library is virtually necessary. The library is divided into modules, so the programmer can import only the required functionality.

Basic functionality

Basic data structures

These structures are implemented in the runtime and the modules provide just a convenient Spiral interface.

Advanced data structures

Advanced structures are written in Spiral and provide higher-level abstractions.

Input/output

  • module std.io provides a basic interface for accessing files (including the standard input and output streams).
  • module std.env gives access to command-line arguments and environment variables.

Testing