ArkScript
A small, lisp-inspired, functional scripting language
Ark::helper Namespace Reference

Functions

Value tail (Value *a)
 
Value head (Value *a)
 
Value at (Value &container, Value &index, VM &vm)
 
double doMath (double a, double b, const Instruction op)
 
std::string mathInstToStr (const Instruction op)
 

Function Documentation

◆ at()

Value Ark::helper::at ( Value & container,
Value & index,
VM & vm )
inline

◆ doMath()

double Ark::helper::doMath ( double a,
double b,
const Instruction op )
inline

◆ head()

◆ mathInstToStr()

std::string Ark::helper::mathInstToStr ( const Instruction op)
inline

Definition at line 130 of file VM.cpp.

References Ark::internal::ADD, Ark::internal::DIV, Ark::internal::MUL, and Ark::internal::SUB.

Referenced by Ark::VM::safeRun().

◆ tail()

Value Ark::helper::tail ( Value * a)
inline