Crate carlotk

Crate carlotk 

Source
Expand description

Main library for the Carlo language.

Modules§

prelude
A prelude for writing subcommands.

Macros§

construct_std
Constructs the standard library.
include_subcommands
Includes subcommands in the Carlo binary.

Structs§

CliArgs
Command-line arguments for the Carlo language executable.
Environment
Parser
Abstracts over the Carlo parser.
Token
A Carlo language token.
Tokenstream
Stores a stream of tokens.

Enums§

BinaryOperation
Defines binary operations in Carlo.
Error
Enumerates the errors thrown by the Carlo language.
Expression
Enumerates the expression available to the Carlo parser.
Flag
Flags for the Carlo language executable.
TokenClass
Enumerates the classes of Carlo langauge tokens.

Constants§

PREFIXES
Defines the prefixes available to the Carlo language.
UNITS
Defines the units available to the Carlo language. Each unit is structured as (name, (multiplier, kg, m, s, A, K, mol))
VERSION

Functions§

parse
Converts a source file into a list of expressions.
read
Displays a prompt and reads user input.