real_asmrp.c File Reference

Include dependency graph for real_asmrp.c:


Data Structures

struct  asmrp_sym_t
struct  asmrp_t

Defines

#define ASMRP_SYM_NONE   0
#define ASMRP_SYM_EOF   1
#define ASMRP_SYM_NUM   2
#define ASMRP_SYM_ID   3
#define ASMRP_SYM_STRING   4
#define ASMRP_SYM_HASH   10
#define ASMRP_SYM_SEMICOLON   11
#define ASMRP_SYM_COMMA   12
#define ASMRP_SYM_EQUALS   13
#define ASMRP_SYM_AND   14
#define ASMRP_SYM_OR   15
#define ASMRP_SYM_LESS   16
#define ASMRP_SYM_LEQ   17
#define ASMRP_SYM_GEQ   18
#define ASMRP_SYM_GREATER   19
#define ASMRP_SYM_DOLLAR   20
#define ASMRP_SYM_LPAREN   21
#define ASMRP_SYM_RPAREN   22
#define ASMRP_MAX_ID   1024
#define ASMRP_MAX_SYMTAB   10

Functions

static asmrp_tasmrp_new (void)
static void asmrp_dispose (asmrp_t *p)
static void asmrp_getch (asmrp_t *p)
static void asmrp_init (asmrp_t *p, const char *str)
static void asmrp_number (asmrp_t *p)
static void asmrp_string (asmrp_t *p)
static void asmrp_identifier (asmrp_t *p)
static void asmrp_get_sym (asmrp_t *p)
static int asmrp_find_id (asmrp_t *p, const char *s)
static int asmrp_set_id (asmrp_t *p, const char *s, int v)
static int asmrp_condition (asmrp_t *p)
static int asmrp_operand (asmrp_t *p)
static int asmrp_comp_expression (asmrp_t *p)
static void asmrp_assignment (asmrp_t *p)
static int asmrp_rule (asmrp_t *p)
static int asmrp_eval (asmrp_t *p, int *matches)
int asmrp_match (const char *rules, int bandwidth, int *matches)

Define Documentation

#define ASMRP_MAX_ID   1024

#define ASMRP_MAX_SYMTAB   10

#define ASMRP_SYM_AND   14

#define ASMRP_SYM_COMMA   12

#define ASMRP_SYM_DOLLAR   20

#define ASMRP_SYM_EOF   1

#define ASMRP_SYM_EQUALS   13

#define ASMRP_SYM_GEQ   18

#define ASMRP_SYM_GREATER   19

#define ASMRP_SYM_HASH   10

#define ASMRP_SYM_ID   3

#define ASMRP_SYM_LEQ   17

#define ASMRP_SYM_LESS   16

#define ASMRP_SYM_LPAREN   21

#define ASMRP_SYM_NONE   0

#define ASMRP_SYM_NUM   2

#define ASMRP_SYM_OR   15

#define ASMRP_SYM_RPAREN   22

#define ASMRP_SYM_SEMICOLON   11

#define ASMRP_SYM_STRING   4


Function Documentation

static void asmrp_assignment ( asmrp_t p  )  [static]

static int asmrp_comp_expression ( asmrp_t p  )  [static]

static int asmrp_condition ( asmrp_t p  )  [static]

static void asmrp_dispose ( asmrp_t p  )  [static]

static int asmrp_eval ( asmrp_t p,
int *  matches 
) [static]

static int asmrp_find_id ( asmrp_t p,
const char *  s 
) [static]

static void asmrp_get_sym ( asmrp_t p  )  [static]

static void asmrp_getch ( asmrp_t p  )  [static]

static void asmrp_identifier ( asmrp_t p  )  [static]

static void asmrp_init ( asmrp_t p,
const char *  str 
) [static]

int asmrp_match ( const char *  rules,
int  bandwidth,
int *  matches 
)

static asmrp_t* asmrp_new ( void   )  [static]

static void asmrp_number ( asmrp_t p  )  [static]

static int asmrp_operand ( asmrp_t p  )  [static]

static int asmrp_rule ( asmrp_t p  )  [static]

static int asmrp_set_id ( asmrp_t p,
const char *  s,
int  v 
) [static]

static void asmrp_string ( asmrp_t p  )  [static]


Generated on Wed Aug 13 08:02:56 2008 for VLC by  doxygen 1.5.1