|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
cf_gramatical.cpp File Reference#include <stdio.h>
#include <vector>
#include <string>
#include "nel/misc/config_file.h"
#include "nel/misc/common.h"
#include "nel/misc/debug.h"
Go to the source code of this file.
Compounds |
struct | cf_value |
union | YYSTYPE |
Defines |
#define | YYBISON 1 |
#define | yyparse cfparse |
#define | yylex cflex |
#define | yyerror cferror |
#define | yylval cflval |
#define | yychar cfchar |
#define | yydebug cfdebug |
#define | yynerrs cfnerrs |
#define | ADD_ASSIGN 257 |
#define | ASSIGN 258 |
#define | VARIABLE 259 |
#define | STRING 260 |
#define | SEMICOLON 261 |
#define | PLUS 262 |
#define | MINUS 263 |
#define | MULT 264 |
#define | DIVIDE 265 |
#define | RPAREN 266 |
#define | LPAREN 267 |
#define | RBRACE 268 |
#define | LBRACE 269 |
#define | COMMA 270 |
#define | INT 271 |
#define | REAL 272 |
#define | YYPARSE_PARAM pvararray |
#define | DEBUG_PRINTF |
#define | DEBUG_PRINT(a) |
#define | const |
#define | YYFINAL 44 |
#define | YYFLAG -32768 |
#define | YYNTBASE 19 |
#define | YYTRANSLATE(x) ((unsigned)(x) <= 272 ? yytranslate[x] : 30) |
#define | YYLAST 44 |
#define | YYSTACK_ALLOC malloc |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYEMPTY -2 |
#define | YYEOF 0 |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrlab1 |
#define | YYFAIL goto yyerrlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(token, value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYLEX yylex() |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYPARSE_PARAM_ARG YYPARSE_PARAM |
#define | YYPARSE_PARAM_DECL void *YYPARSE_PARAM; |
#define | YYPOPSTACK (yyvsp--, yyssp--) |
Enumerations |
enum | cf_operation {
OP_PLUS,
OP_MINUS,
OP_MULT,
OP_DIVIDE,
OP_NEG
} |
Functions |
int | yylex (void) |
cf_value | cf_op (cf_value a, cf_value b, cf_operation op) |
void | cf_print (cf_value Val) |
void | cf_setVar (NLMISC::CConfigFile::CVar &Var, cf_value Val) |
int | yyerror (const char *) |
void | __yy_memcpy (to, from, count) char *to |
Variables |
bool | cf_Ignore |
FILE * | yyin |
NLMISC::CConfigFile::CVar | cf_CurrentVar |
int | cf_CurrentLine |
bool | cf_OverwriteExistingVariable |
const char | yytranslate [] |
const short | yyr1 [] |
const short | yyr2 [] |
const short | yydefact [] |
const short | yydefgoto [] |
const short | yypact [] |
const short | yypgoto [] |
const short | yytable [] |
const short | yycheck [] |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
char * | from |
unsigned int | count |
Define Documentation
#define DEBUG_PRINT |
( |
a |
|
) |
|
|
#define YYABORT goto yyabortlab
|
|
#define YYACCEPT goto yyacceptlab
|
|
#define YYBACKUP |
( |
token, |
|
|
value |
|
) |
|
|
|
Value: do \
if (yychar == YYEMPTY && yylen == 1) \
{ yychar = (token), yylval = (value); \
yychar1 = YYTRANSLATE (yychar); \
YYPOPSTACK; \
goto yybackup; \
} \
else \
{ yyerror ("syntax error: cannot back up"); YYERROR; } \
while (0)
Definition at line 350 of file cf_gramatical.cpp. |
#define yyclearin (yychar = YYEMPTY)
|
|
#define yyerrok (yyerrstatus = 0)
|
|
#define YYERROR goto yyerrlab1
|
|
#define YYFAIL goto yyerrlab
|
|
#define YYPARSE_PARAM pvararray
|
|
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
|
|
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
|
|
#define YYPOPSTACK (yyvsp--, yyssp--)
|
|
#define YYRECOVERING |
( |
|
) |
(!!yyerrstatus)
|
|
#define YYSTACK_ALLOC malloc
|
|
#define YYTRANSLATE |
( |
x |
|
) |
((unsigned)(x) <= 272 ? yytranslate[x] : 30)
|
|
Enumeration Type Documentation
|
-
Enumeration values:
-
OP_PLUS |
|
OP_MINUS |
|
OP_MULT |
|
OP_DIVIDE |
|
OP_NEG |
|
Definition at line 70 of file cf_gramatical.cpp. |
Function Documentation
void __yy_memcpy |
( |
to |
, |
|
|
from |
, |
|
|
count |
|
|
) |
[static] |
|
int yyerror |
( |
const char * |
|
) |
|
|
Variable Documentation
bool cf_OverwriteExistingVariable
|
|
const short yycheck[] [static]
|
|
|
Initial value: { 13,
10, 11, 5, 6, 0, 8, 9, 6, 8, 9,
13, 5, 15, 12, 17, 18, 16, 3, 4, 12,
30, 31, 10, 11, 5, 6, 40, 8, 9, 8,
9, 7, 13, 28, 29, 7, 17, 18, 16, 14,
0, 0, 3, 40
}
Definition at line 246 of file cf_gramatical.cpp. |
const short yydefact[] [static]
|
|
|
Initial value: { 1,
0, 0, 2, 5, 0, 0, 4, 27, 25, 0,
0, 0, 13, 23, 24, 0, 8, 14, 17, 26,
0, 20, 21, 0, 0, 10, 7, 0, 0, 0,
0, 6, 22, 9, 0, 15, 16, 18, 19, 13,
12, 0, 0, 0
}
Definition at line 210 of file cf_gramatical.cpp. |
const short yydefgoto[] [static]
|
|
|
Initial value: { 42,
1, 3, 4, 16, 25, 35, 17, 18, 19, 20
}
Definition at line 218 of file cf_gramatical.cpp. |
const short yypact[] [static]
|
|
|
Initial value: { 5,
7, 15, 7,-32768, -2, -2,-32768,-32768,-32768, 20,
20, -2, 20,-32768,-32768, 25, 22, 13,-32768,-32768,
29,-32768,-32768, 8, 26, 1,-32768, 20, 20, 20,
20,-32768,-32768,-32768, 23, 13, 13,-32768,-32768, 20,
-32768, 41, 42,-32768
}
Definition at line 222 of file cf_gramatical.cpp. |
const short yypgoto[] [static]
|
|
|
Initial value: {-32768,
-32768,-32768, 40, 2, 4,-32768, -13, 6, -9,-32768
}
Definition at line 230 of file cf_gramatical.cpp. |
const short yyr1[] [static]
|
|
|
Initial value: { 0,
20, 19, 19, 21, 21, 22, 22, 23, 23, 24,
25, 24, 24, 26, 26, 26, 27, 27, 27, 28,
28, 28, 28, 28, 28, 28, 29
}
Definition at line 198 of file cf_gramatical.cpp. |
const short yyr2[] [static]
|
|
|
Initial value: { 0,
0, 2, 0, 2, 1, 4, 4, 1, 3, 1,
0, 4, 0, 1, 3, 3, 1, 3, 3, 2,
2, 3, 1, 1, 1, 1, 1
}
Definition at line 204 of file cf_gramatical.cpp. |
const short yytable[] [static]
|
|
|
Initial value: { 26,
22, 23, 8, 9, -3, 10, 11, 21, 28, 29,
12, 2, 13, 24, 14, 15, -11, 5, 6, 33,
38, 39, 30, 31, 8, 9, 26, 10, 11, 28,
29, 27, 12, 36, 37, 32, 14, 15, 40, 34,
43, 44, 7, 41
}
Definition at line 238 of file cf_gramatical.cpp. |
const char yytranslate[] [static]
|
|
|
Initial value: { 0,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18
}
Definition at line 129 of file cf_gramatical.cpp. |
|
|