Classes | Defines | Typedefs

expr.h File Reference

#include "maxheap.h"
#include "export.h"
#include "strclass.h"
#include "Point3.h"
#include "TabTypes.h"

Go to the source code of this file.

Classes

class   Inst
class   ExprVar
class   Expr

Defines

#define  SCALAR_EXPR   1
  A single floating point value.
#define  VECTOR_EXPR   3
  ans[0] = x, ans[1] = y, ans[2] = z.
#define  SCALAR_VAR   SCALAR_EXPR
  A single floating point value.
#define  VECTOR_VAR   VECTOR_EXPR
  The x, y, z public data members of the Point3 are the values representing the vector.
#define  EXPR_NORMAL   0
  No problems, expression evaluated successfully.
#define  EXPR_INST_OVERFLOW   -1
  Instruction stack overflow during parsing.
#define  EXPR_UNKNOWN_TOKEN   -2
  Unknown function, const, or reg during parsing.
#define  EXPR_TOO_MANY_VARS   -3
  Value stack overflow.
#define  EXPR_TOO_MANY_REGS   -4
  Register array overflow, or reg number too big.
#define  EXPR_CANT_EVAL   -5
  Function can't be evaluated with given arguments.
#define  EXPR_CANT_PARSE   -6
  Expression can't be parsed syntactically.

Typedefs

typedef int(*  ExprFunc )(Expr *e, float f)
typedef Tab< Inst InstTab
typedef Tab< ExprVar ExprVarTab

Typedef Documentation

typedef int(* ExprFunc)(Expr *e, float f)

Definition at line 43 of file expr.h.

typedef Tab<Inst> InstTab

Definition at line 59 of file expr.h.

Definition at line 60 of file expr.h.