Module otpcl_env

OTPCL environment helpers.

Description

OTPCL environment helpers

Data Types

funs()

funs() = map()

state()

state() = {funs(), vars()}

vars()

vars() = map()

Function Index

default_state/0The default OTPCL interpreter state.
minimal_state/0A minimal OTPCL interpreter state.

Function Details

default_state/0

default_state() -> state()

The default OTPCL interpreter state. Includes all the basics required for an (approximately) self-sufficient OTPCL session (i.e. with the unrestricted ability to affect the world beyond the interpreter state).

minimal_state/0

minimal_state() -> state()

A minimal OTPCL interpreter state. Includes the absolute bare bones necessary for the interpreter to not freak out (namely: setting an initial value for $RETVAL in case the interpreter encounters a program with no commands).


Generated by EDoc