Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

symmath.cc File Reference

#include <string.h>
#include "tools.h"
#include "symmath.h"

Go to the source code of this file.

Classes

struct  op_int_int_prop
struct  op_int_prop
class  sym_bool_token_rec
class  sym_int_token_rec

Defines

#define ATOM_SYM_INT   MAGICD("SMA\x00")
#define ATOM_SYM_INT_SYMBOL   MAGICD("SMA\x01")
#define ATOM_SYM_INT_CONST   MAGICD("SMA\x02")
#define ATOM_SYM_BOOL   MAGICD("SMA\x10")
#define ATOM_SYM_BOOL_SYMBOL   MAGICD("SMA\x11")
#define ATOM_SYM_BOOL_INTCMP   MAGICD("SMA\x12")

Functions

UINT get_op_prec (b_op bop, b_op **op_prec)

Variables

b_op copp_mul []
b_op copp_add []
b_op copp_bin []
b_opc_op_prec []
op_int_prop op_neutrals [NUM_VALID_BOPS]
bool op_commutative [NUM_VALID_BOPS]
op_int_int_prop op_destructive [NUM_VALID_BOPS]


Define Documentation

#define ATOM_SYM_BOOL   MAGICD("SMA\x10")
 

Definition at line 30 of file symmath.cc.

Referenced by sym_bool::object_id().

#define ATOM_SYM_BOOL_INTCMP   MAGICD("SMA\x12")
 

Definition at line 32 of file symmath.cc.

Referenced by sym_bool_intcmp::object_id().

#define ATOM_SYM_BOOL_SYMBOL   MAGICD("SMA\x11")
 

Definition at line 31 of file symmath.cc.

Referenced by sym_bool_symbol::object_id().

#define ATOM_SYM_INT   MAGICD("SMA\x00")
 

Definition at line 26 of file symmath.cc.

Referenced by sym_int::b_operate(), sym_int::object_id(), and sym_int::set().

#define ATOM_SYM_INT_CONST   MAGICD("SMA\x02")
 

Definition at line 28 of file symmath.cc.

#define ATOM_SYM_INT_SYMBOL   MAGICD("SMA\x01")
 

Definition at line 27 of file symmath.cc.

Referenced by sym_int_symbol::object_id().


Function Documentation

UINT get_op_prec b_op  bop,
b_op **  op_prec
 

Definition at line 63 of file symmath.cc.

References b_invalid, b_op, and UINT.

Referenced by sym_int::nstrfy().


Variable Documentation

b_op* c_op_prec[]
 

Initial value:

Definition at line 56 of file symmath.cc.

b_op copp_add[]
 

Initial value:

Definition at line 43 of file symmath.cc.

b_op copp_bin[]
 

Initial value:

Definition at line 49 of file symmath.cc.

b_op copp_mul[]
 

Initial value:

Definition at line 36 of file symmath.cc.

bool op_commutative[NUM_VALID_BOPS]
 

Initial value:

 {

        true,

        false,

        false,

        true,

        false,

        true,

        true,

        true
}

Definition at line 238 of file symmath.cc.

Referenced by sym_int::simplify().

op_int_int_prop op_destructive[NUM_VALID_BOPS]
 

Initial value:

 {

        {true, 0, 0},

        {false},

        {true, 1, 0},

        {false},

        {false},

        {true, 0, 0},

        {true, 0xffffffff, 0xffffffff},

        {false}
}

Definition at line 257 of file symmath.cc.

Referenced by sym_int::simplify_reduce_destructive().

op_int_prop op_neutrals[NUM_VALID_BOPS]
 

Initial value:

 {

        {true, 1},

        {true, 1},

        {false},

        {true, 0},

        {true, 0},

        {true, 0xffffffff},

        {true, 0},

        {true, 0}
}

Definition at line 219 of file symmath.cc.

Referenced by sym_int::simplify_reduce_neutral().


Generated on Fri May 7 21:15:52 2004 by doxygen 1.3.5