lval struct
#include <types.h>

Represents a Lisp Value.

Contents

A lval consists of a:

  • type : int corresponding to an enum value
  • num : long corresponding to a number
  • err : char* corresponding to an error message (optional)
  • sym : char* corresponding to a symbol or operator (optional)
  • count : int corresponding to the number of elements in the cell array
  • cell : lval** corresponding to an array of lvals

Public variables

int type
long num
char* err
char* sym
char* str
lbuiltin builtin
lenv* env
lval* formals
lval* body
unsigned int count
struct lval** cell