Module kilac::calc [] [src]

This module does all the calculations. For Kila-only calculation operations, please consult submodule kilac. For Kipa-compatible calculation operations, please consult module kipac.

Modules

ctx

Context module. This module provides types that can deal with context and other things.

kilac

This submodule hosts all functions and operations specific to kila.

lexer
parser

This module hosts the parser, applicators and their implementations. The parser used is a Shunting-Yard based parser.

Enums

Value

Value returned by the eval function.

Functions

calculate

Evaluate a string. Passes an EmptyCtx to the functions.

calculate_err

Calculate points based on a single string and context information

eval

A recursive evaluating function. This calculates the final value, whatever it is a list or something else from the AST supplied and context information. Do note that on hitting empty context or no context information, returns an error.