/home/doxygen/libascend/compiler/exprs.c File Reference


Detailed Description

Expression Module

Requires: include "utilities/ascConfig.h" include "fractions.h"

include "dimen.h" include "expr_types.h"

#include <stdio.h>
#include <assert.h>
#include <utilities/ascConfig.h>
#include <utilities/ascPanic.h>
#include <utilities/ascMalloc.h>
#include <general/list.h>
#include <general/pool.h>
#include "symtab.h"
#include "functype.h"
#include "expr_types.h"
#include "func.h"
#include "name.h"
#include "sets.h"
#include "instance_enum.h"
#include "cmpfunc.h"
#include "exprs.h"

Include dependency graph for exprs.c:


Defines

#define EXPRSUSESPOOL   TRUE
#define EPFREE(p)   ASC_FREE(p)
#define EPMALLOC   ASC_NEW(struct Expr)
#define EXPR_CHECK_MEMORY(VAR)   AssertAllocatedMemory(result,sizeof(struct Expr))
#define EXPR_NEW(VAR, TYPE)

Functions

void exprs_init_pool (void)
void exprs_destroy_pool (void)
void exprs_report_pool (void)
Expr * CreateVarExpr (struct Name *n)
void InitVarExpr (struct Expr *result, CONST struct Name *n)
Expr * CreateOpExpr (enum Expr_enum t)
Expr * CreateSatisfiedExpr (struct Name *n, double tol, CONST dim_type *dims)
Expr * CreateFuncExpr (CONST struct Func *f)
Expr * CreateIntExpr (long int i)
Expr * CreateRealExpr (double r, CONST dim_type *dims)
Expr * CreateTrueExpr (void)
Expr * CreateFalseExpr (void)
Expr * CreateAnyExpr (void)
Expr * CreateSetExpr (struct Set *set)
Expr * CreateSymbolExpr (symchar *sym)
Expr * CreateQStringExpr (CONST char *qstr)
Expr * CreateBuiltin (enum Expr_enum t, struct Set *set)
void LinkExprs (struct Expr *cur, struct Expr *next)
Expr * NextExprF (CONST struct Expr *e)
enum Expr_enum ExprTypeF (CONST struct Expr *e)
CONST struct Name * ExprNameF (CONST struct Expr *e)
CONST struct FuncExprFuncF (CONST struct Expr *e)
long ExprIValueF (CONST struct Expr *e)
double ExprRValueF (CONST struct Expr *e)
CONST dim_typeExprRDimensionsF (CONST struct Expr *e)
CONST struct Name * SatisfiedExprNameF (CONST struct Expr *e)
double SatisfiedExprRValueF (CONST struct Expr *e)
CONST dim_typeSatisfiedExprRDimensionsF (CONST struct Expr *e)
Expr * CopyExprList (CONST struct Expr *e)
void DestroyExprList (struct Expr *e)
Expr * JoinExprLists (struct Expr *e1, struct Expr *e2)
unsigned long ExprListLength (CONST struct Expr *e)
int ExprBValueF (CONST struct Expr *e)
Set * ExprSValueF (CONST struct Expr *e)
symchar * ExprSymValueF (CONST struct Expr *e)
CONST char * ExprQStrValueF (CONST struct Expr *e)
CONST struct Set * ExprBuiltinSetF (CONST struct Expr *e)
int ExprsEqual (CONST struct Expr *e1, CONST struct Expr *e2)
int CompareExprs (CONST struct Expr *e1, CONST struct Expr *e2)

Define Documentation

#define EXPR_NEW ( VAR,
TYPE   ) 

Value:

VAR = EPMALLOC; \
    VAR->t = TYPE; \
    VAR->next = NULL


Generated on Thu Jul 17 04:00:23 2008 for libascend by  doxygen 1.5.1