Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ifparser.c File Reference
#include "ifparser.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ifparser.c:

Macros

#define CALLFUNC(ggg, fff)
#define DO(val)
#define isvarfirstletter(ccc)
#define SKIPSPACE(ccc)

Functions

static const char * parse_band (IfParser *g, const char *cp, long *valp)
static const char * parse_bor (IfParser *g, const char *cp, long *valp)
static const char * parse_bxor (IfParser *g, const char *cp, long *valp)
static const char * parse_character (IfParser *g, const char *cp, long *valp)
static const char * parse_cond (IfParser *g, const char *cp, long *valp)
static const char * parse_equality (IfParser *g, const char *cp, long *valp)
static const char * parse_inequality (IfParser *g, const char *cp, long *valp)
static const char * parse_land (IfParser *g, const char *cp, long *valp)
static const char * parse_lor (IfParser *g, const char *cp, long *valp)
static const char * parse_number (IfParser *g, const char *cp, long *valp)
static const char * parse_product (IfParser *g, const char *cp, long *valp)
static const char * parse_shift (IfParser *g, const char *cp, long *valp)
static const char * parse_sum (IfParser *g, const char *cp, long *valp)
static const char * parse_value (IfParser *g, const char *cp, long *valp)
static const char * parse_variable (IfParser *g, const char *cp, const char **varp)
const char * ParseIfExpression (IfParser *g, const char *cp, long *valp)

Macro Definition Documentation

◆ CALLFUNC

#define CALLFUNC ( ggg,
fff )
Value:
(*((ggg)->funcs.fff))

Definition at line 73 of file ifparser.c.

◆ DO

#define DO ( val)
Value:
if (!(val)) return NULL
#define NULL
Definition ZInflate.c:15

Definition at line 72 of file ifparser.c.

◆ isvarfirstletter

#define isvarfirstletter ( ccc)
Value:
(isalpha(ccc) || (ccc) == '_')

Definition at line 75 of file ifparser.c.

◆ SKIPSPACE

#define SKIPSPACE ( ccc)
Value:
while (isspace(*ccc)) ccc++

Definition at line 74 of file ifparser.c.

Function Documentation

◆ parse_band()

const char * parse_band ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 411 of file ifparser.c.

◆ parse_bor()

const char * parse_bor ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 445 of file ifparser.c.

◆ parse_bxor()

const char * parse_bxor ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 429 of file ifparser.c.

◆ parse_character()

const char * parse_character ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 110 of file ifparser.c.

◆ parse_cond()

const char * parse_cond ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 499 of file ifparser.c.

◆ parse_equality()

const char * parse_equality ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 386 of file ifparser.c.

◆ parse_inequality()

const char * parse_inequality ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 355 of file ifparser.c.

◆ parse_land()

const char * parse_land ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 463 of file ifparser.c.

◆ parse_lor()

const char * parse_lor ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 481 of file ifparser.c.

◆ parse_number()

const char * parse_number ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 90 of file ifparser.c.

◆ parse_product()

const char * parse_product ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 281 of file ifparser.c.

◆ parse_shift()

const char * parse_shift ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 330 of file ifparser.c.

◆ parse_sum()

const char * parse_sum ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 309 of file ifparser.c.

◆ parse_value()

const char * parse_value ( IfParser * g,
const char * cp,
long * valp )
static

Definition at line 165 of file ifparser.c.

◆ parse_variable()

const char * parse_variable ( IfParser * g,
const char * cp,
const char ** varp )
static

Definition at line 77 of file ifparser.c.

◆ ParseIfExpression()

const char * ParseIfExpression ( IfParser * g,
const char * cp,
long * valp )

Definition at line 524 of file ifparser.c.