KiCad PCB EDA Suite
numEval Namespace Reference

Namespaces

 numEval
 

Classes

class  NumericEvaluator
 
struct  TokenType
 
union  YYMINORTYPE
 
struct  yyParser
 
struct  yyStackEntry
 

Typedefs

typedef struct yyStackEntry yyStackEntry
 
typedef struct yyParser yyParser
 

Functions

void ParseTrace (FILE *TraceFILE, char *zTracePrompt)
 
void * ParseAlloc (void *(*mallocProc)(YYMALLOCARGTYPE))
 
static void yy_destructor (yyParser *yypParser, YYCODETYPE yymajor, YYMINORTYPE *yypminor)
 
static void yy_pop_parser_stack (yyParser *pParser)
 
void ParseFree (void *p, void(*freeProc)(void *))
 
static int yy_find_shift_action (yyParser *pParser, YYCODETYPE iLookAhead)
 
static int yy_find_reduce_action (int stateno, YYCODETYPE iLookAhead)
 
static void yyStackOverflow (yyParser *yypParser, YYMINORTYPE *yypMinor)
 
static void yyTraceShift (yyParser *yypParser, int yyNewState)
 
static void yy_shift (yyParser *yypParser, int yyNewState, int yyMajor, YYMINORTYPE *yypMinor)
 
static void yy_accept (yyParser *)
 
static void yy_reduce (yyParser *yypParser, int yyruleno)
 
static void yy_parse_failed (yyParser *yypParser)
 
static void yy_syntax_error (yyParser *yypParser, int yymajor, YYMINORTYPE yyminor)
 
void Parse (void *yyp, int yymajor, ParseTOKENTYPE yyminorParseARG_PDECL)
 

Variables

static const YYMINORTYPE yyzerominor = { 0 }
 
static const YYACTIONTYPE yy_action []
 
static const YYCODETYPE yy_lookahead []
 
static const signed char yy_shift_ofst []
 
static const signed char yy_reduce_ofst []
 
static const YYACTIONTYPE yy_default []
 
static FILE * yyTraceFILE = 0
 
static char * yyTracePrompt = 0
 
static const char *const yyTokenName []
 
static const char *const yyRuleName []
 
struct {
   YYCODETYPE   numEval::lhs
 
   unsigned char   numEval::nrhs
 
yyRuleInfo []
 

Typedef Documentation

typedef struct yyParser numEval::yyParser

Definition at line 284 of file numeric_evaluator.cpp.

Definition at line 266 of file numeric_evaluator.cpp.

Function Documentation

void* numEval::ParseAlloc ( void *(*)(YYMALLOCARGTYPE mallocProc)

Definition at line 398 of file numeric_evaluator.cpp.

void numEval::ParseFree ( void *  p,
void(*)(void *)  freeProc 
)

Definition at line 473 of file numeric_evaluator.cpp.

Referenced by NumericEvaluator::~NumericEvaluator().

void numEval::ParseTrace ( FILE *  TraceFILE,
char *  zTracePrompt 
)

Definition at line 310 of file numeric_evaluator.cpp.

316  { // Single char tokens
static void numEval::yy_accept ( yyParser yypParser)
static

Definition at line 878 of file numeric_evaluator.cpp.

static void numEval::yy_destructor ( yyParser yypParser,
YYCODETYPE  yymajor,
YYMINORTYPE yypminor 
)
static

Definition at line 422 of file numeric_evaluator.cpp.

static int numEval::yy_find_reduce_action ( int  stateno,
YYCODETYPE  iLookAhead 
)
static

Definition at line 568 of file numeric_evaluator.cpp.

static int numEval::yy_find_shift_action ( yyParser pParser,
YYCODETYPE  iLookAhead 
)
static

Definition at line 502 of file numeric_evaluator.cpp.

static void numEval::yy_parse_failed ( yyParser yypParser)
static

Definition at line 838 of file numeric_evaluator.cpp.

static void numEval::yy_pop_parser_stack ( yyParser pParser)
static

Definition at line 451 of file numeric_evaluator.cpp.

static void numEval::yy_reduce ( yyParser yypParser,
int  yyruleno 
)
static

Definition at line 702 of file numeric_evaluator.cpp.

static void numEval::yy_shift ( yyParser yypParser,
int  yyNewState,
int  yyMajor,
YYMINORTYPE yypMinor 
)
static

Definition at line 637 of file numeric_evaluator.cpp.

static void numEval::yy_syntax_error ( yyParser yypParser,
int  yymajor,
YYMINORTYPE  yyminor 
)
static

Definition at line 859 of file numeric_evaluator.cpp.

static void numEval::yyStackOverflow ( yyParser yypParser,
YYMINORTYPE yypMinor 
)
static

Definition at line 598 of file numeric_evaluator.cpp.

static void numEval::yyTraceShift ( yyParser yypParser,
int  yyNewState 
)
static

Definition at line 618 of file numeric_evaluator.cpp.

Variable Documentation

unsigned char numEval::nrhs

Definition at line 676 of file numeric_evaluator.cpp.

const YYACTIONTYPE numEval::yy_action[]
static
Initial value:
= {
31, 8, 7, 33, 5, 6, 30, 42, 15, 10,
15, 11, 4, 12, 4, 40, 29, 32, 2, 32,
2, 8, 7, 33, 5, 6, 15, 28, 9, 41,
4, 39, 13, 14, 29, 32, 2, 44, 3, 8,
7, 33, 5, 6, 59, 1, 27, 9, 33, 5,
6,
}

Definition at line 187 of file numeric_evaluator.cpp.

const YYACTIONTYPE numEval::yy_default[]
static
Initial value:
= {
58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
58, 52, 50, 54, 53, 51,
}

Definition at line 218 of file numeric_evaluator.cpp.

const YYCODETYPE numEval::yy_lookahead[]
static
Initial value:
= {
3, 4, 5, 6, 7, 8, 9, 0, 1, 17,
1, 17, 5, 17, 5, 17, 9, 10, 11, 10,
11, 4, 5, 6, 7, 8, 1, 16, 17, 12,
5, 17, 17, 17, 9, 10, 11, 18, 2, 4,
5, 6, 7, 8, 14, 15, 16, 17, 6, 7,
8,
}

Definition at line 195 of file numeric_evaluator.cpp.

const signed char numEval::yy_reduce_ofst[]
static
Initial value:
= {
30, 11, -8, -6, -4, -2, 14, 15, 16,
}

Definition at line 215 of file numeric_evaluator.cpp.

const signed char numEval::yy_shift_ofst[]
static
Initial value:
= {
25, 7, 9, 9, 9, 9, 9, 9, 9, -3,
17, 35, 42, 42, 42, 36,
}

Definition at line 207 of file numeric_evaluator.cpp.

const { ... } numEval::yyRuleInfo[]
Initial value:
= {
{ 14, 1 },
{ 15, 1 },
{ 15, 2 },
{ 16, 1 },
{ 16, 2 },
{ 16, 2 },
{ 17, 1 },
{ 17, 2 },
{ 17, 2 },
{ 17, 1 },
{ 17, 3 },
{ 17, 3 },
{ 17, 3 },
{ 17, 3 },
{ 17, 3 },
{ 17, 3 },
}
const char* const numEval::yyRuleName[]
static
Initial value:
= {
"main ::= in",
"in ::= stmt",
"in ::= in stmt",
"stmt ::= ENDS",
"stmt ::= expr ENDS",
"stmt ::= expr SEMCOL",
"expr ::= VALUE",
"expr ::= expr UNIT",
"expr ::= MINUS expr",
"expr ::= VAR",
"expr ::= VAR ASSIGN expr",
"expr ::= expr PLUS expr",
"expr ::= expr MINUS expr",
"expr ::= expr MULT expr",
"expr ::= expr DIVIDE expr",
"expr ::= PARENL expr PARENR",
}

Definition at line 333 of file numeric_evaluator.cpp.

const char* const numEval::yyTokenName[]
static
Initial value:
= {
"$", "VAR", "ASSIGN", "SEMCOL",
"PLUS", "MINUS", "UNIT", "DIVIDE",
"MULT", "ENDS", "VALUE", "PARENL",
"PARENR", "error", "main", "in",
"stmt", "expr",
}

Definition at line 321 of file numeric_evaluator.cpp.

FILE* numEval::yyTraceFILE = 0
static

Definition at line 288 of file numeric_evaluator.cpp.

char* numEval::yyTracePrompt = 0
static

Definition at line 289 of file numeric_evaluator.cpp.

const YYMINORTYPE numEval::yyzerominor = { 0 }
static

Definition at line 119 of file numeric_evaluator.cpp.