marco 1.29.1
Window manager
Loading...
Searching...
No Matches
PosExpr Struct Reference

Type and value of an expression in a parsed sequence. More...

Data Fields

PosExprType type
 
union { 
 
   double   double_val 
 
   int   int_val 
 
   char   operator 
 
} d 
 

Detailed Description

Type and value of an expression in a parsed sequence.

We don't keep expressions in a tree; if this is of type POS_EXPR_OPERATOR, the arguments of the operator will be in the array positions immediately preceding and following this operator; they cannot themselves be operators.

Bug:
operator is char; it should really be of PosOperatorType.

Field Documentation

◆ [union]

union { ... } PosExpr::d

◆ double_val

double PosExpr::double_val

◆ int_val

int PosExpr::int_val

◆ operator

char PosExpr::operator

Referenced by do_operations(), and pos_eval_helper().

◆ type

PosExprType PosExpr::type

The documentation for this struct was generated from the following file: