#include "nel/misc/config_file.h"#include "nel/misc/common.h"#include "nel/misc/debug.h"#include <cstdio>#include <vector>#include <string>
Go to the source code of this file.
Classes | |
| 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 | INTEGER 271 |
| #define | REAL 272 |
| #define | FILELINE 273 |
| #define | YYPARSE_PARAM pvararray |
| #define | DEBUG_PRINT(a) |
| #define | DEBUG_PRINTF |
| #define | const |
| #define | YYFINAL 47 |
| #define | YYFLAG -32768 |
| #define | YYNTBASE 20 |
| #define | YYTRANSLATE(x) ((unsigned)(x) <= 273 ? yytranslate[x] : 29) |
| #define | YYLAST 68 |
| #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 *) |
| static void | __yy_memcpy (to, from, count) char *to |
Variables | |
| bool | cf_Ignore |
| bool | LoadRoot |
| FILE * | yyin |
| NLMISC::CConfigFile::CVar | cf_CurrentVar |
| int | cf_CurrentLine |
| char * | cf_CurrentFile |
| bool | cf_OverwriteExistingVariable |
| static const char | yytranslate [] |
| static const short | yyr1 [] |
| static const short | yyr2 [] |
| static const short | yydefact [] |
| static const short | yydefgoto [] |
| static const short | yypact [] |
| static const short | yypgoto [] |
| static const short | yytable [] |
| static const short | yycheck [] |
| int | yychar |
| YYSTYPE | yylval |
| int | yynerrs |
| char * | from |
| unsigned int | count |
| #define ADD_ASSIGN 257 |
Definition at line 14 of file cf_gramatical.cpp.
| #define ASSIGN 258 |
Definition at line 15 of file cf_gramatical.cpp.
| #define COMMA 270 |
Definition at line 27 of file cf_gramatical.cpp.
| #define const |
Definition at line 123 of file cf_gramatical.cpp.
Referenced by NLMISC::CRefPtr< T >::CRefPtr(), NLMISC::CVirtualRefPtr< T >::CVirtualRefPtr(), NLMISC::CVirtualRefPtr< T >::kill(), NLMISC::CRefPtr< T >::kill(), NLMISC::CRefPtr< T >::operator T *(), NLMISC::CVirtualRefPtr< T >::operator=(), and NLMISC::CRefPtr< T >::operator=().
| #define DEBUG_PRINT | ( | a | ) |
Definition at line 63 of file cf_gramatical.cpp.
| #define DEBUG_PRINTF |
Definition at line 67 of file cf_gramatical.cpp.
| #define DIVIDE 265 |
Definition at line 22 of file cf_gramatical.cpp.
| #define FILELINE 273 |
Definition at line 30 of file cf_gramatical.cpp.
| #define INTEGER 271 |
Definition at line 28 of file cf_gramatical.cpp.
| #define LBRACE 269 |
Definition at line 26 of file cf_gramatical.cpp.
| #define LPAREN 267 |
Definition at line 24 of file cf_gramatical.cpp.
| #define MINUS 263 |
Definition at line 20 of file cf_gramatical.cpp.
| #define MULT 264 |
Definition at line 21 of file cf_gramatical.cpp.
| #define PLUS 262 |
Definition at line 19 of file cf_gramatical.cpp.
| #define RBRACE 268 |
Definition at line 25 of file cf_gramatical.cpp.
| #define REAL 272 |
Definition at line 29 of file cf_gramatical.cpp.
| #define RPAREN 266 |
Definition at line 23 of file cf_gramatical.cpp.
| #define SEMICOLON 261 |
Definition at line 18 of file cf_gramatical.cpp.
| #define STRING 260 |
Definition at line 17 of file cf_gramatical.cpp.
| #define VARIABLE 259 |
Definition at line 16 of file cf_gramatical.cpp.
| #define YYABORT goto yyabortlab |
Definition at line 353 of file cf_gramatical.cpp.
| #define YYACCEPT goto yyacceptlab |
Definition at line 352 of file cf_gramatical.cpp.
| #define YYBACKUP | ( | token, | |||
| 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 361 of file cf_gramatical.cpp.
| #define YYBISON 1 |
Definition at line 5 of file cf_gramatical.cpp.
| #define yychar cfchar |
Definition at line 11 of file cf_gramatical.cpp.
| #define yyclearin (yychar = YYEMPTY) |
Definition at line 349 of file cf_gramatical.cpp.
| #define yydebug cfdebug |
Definition at line 12 of file cf_gramatical.cpp.
| #define YYEMPTY -2 |
Definition at line 350 of file cf_gramatical.cpp.
| #define YYEOF 0 |
Definition at line 351 of file cf_gramatical.cpp.
| #define YYERRCODE 256 |
Definition at line 374 of file cf_gramatical.cpp.
| #define yyerrok (yyerrstatus = 0) |
Definition at line 348 of file cf_gramatical.cpp.
| #define YYERROR goto yyerrlab1 |
Definition at line 354 of file cf_gramatical.cpp.
| #define yyerror cferror |
Definition at line 9 of file cf_gramatical.cpp.
| #define YYFAIL goto yyerrlab |
Definition at line 359 of file cf_gramatical.cpp.
| #define YYFINAL 47 |
Definition at line 129 of file cf_gramatical.cpp.
| #define YYFLAG -32768 |
Definition at line 130 of file cf_gramatical.cpp.
| #define YYINITDEPTH 200 |
Definition at line 421 of file cf_gramatical.cpp.
| #define YYLAST 68 |
Definition at line 242 of file cf_gramatical.cpp.
| #define YYLEX yylex() |
Definition at line 377 of file cf_gramatical.cpp.
| #define yylex cflex |
Definition at line 8 of file cf_gramatical.cpp.
Definition at line 10 of file cf_gramatical.cpp.
| #define YYMAXDEPTH 10000 |
Definition at line 432 of file cf_gramatical.cpp.
| #define yynerrs cfnerrs |
Definition at line 13 of file cf_gramatical.cpp.
| #define YYNTBASE 20 |
Definition at line 131 of file cf_gramatical.cpp.
| #define yyparse cfparse |
Definition at line 7 of file cf_gramatical.cpp.
| #define YYPARSE_PARAM pvararray |
Definition at line 55 of file cf_gramatical.cpp.
| #define YYPARSE_PARAM_ARG YYPARSE_PARAM |
| #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; |
| #define YYPOPSTACK (yyvsp--, yyssp--) |
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 360 of file cf_gramatical.cpp.
| #define YYSTACK_ALLOC malloc |
Definition at line 341 of file cf_gramatical.cpp.
| #define YYTERROR 1 |
Definition at line 373 of file cf_gramatical.cpp.
| #define YYTRANSLATE | ( | x | ) | ((unsigned)(x) <= 273 ? yytranslate[x] : 29) |
Definition at line 133 of file cf_gramatical.cpp.
| enum cf_operation |
Definition at line 73 of file cf_gramatical.cpp.
| 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 * | ) |
| int yylex | ( | void | ) |
| char* cf_CurrentFile |
Definition at line 96 of file cf_gramatical.cpp.
Referenced by NLMISC::CConfigFile::reparse().
Definition at line 95 of file cf_gramatical.cpp.
Definition at line 93 of file cf_gramatical.cpp.
Definition at line 1995 of file cf_lexical.cpp.
Definition at line 98 of file cf_gramatical.cpp.
Definition at line 451 of file cf_gramatical.cpp.
| char* from |
Definition at line 450 of file cf_gramatical.cpp.
Referenced by NLPACS::CLocalRetriever::findPath().
Definition at line 53 of file config_file.cpp.
Definition at line 400 of file cf_gramatical.cpp.
const short yycheck[] [static] |
{ 14,
5, 17, 11, 12, 6, 5, 6, 6, 8, 9,
14, 13, 16, 13, 19, 15, 7, 17, 18, 3,
4, 8, 9, 38, 33, 34, 5, 6, 0, 8,
9, 7, 10, 11, 13, 14, 31, 32, 17, 18,
5, 6, 12, 8, 9, 0, 3, -1, 13, 14,
-1, -1, 17, 18, 5, 6, -1, 8, 9, -1,
-1, -1, 13, -1, -1, -1, 17, 18
}
Definition at line 255 of file cf_gramatical.cpp.
const short yydefact[] [static] |
{ 2,
0, 0, 1, 4, 0, 0, 0, 3, 27, 25,
0, 0, 0, 0, 23, 24, 0, 8, 14, 17,
26, 0, 5, 20, 21, 0, 11, 0, 12, 7,
0, 0, 0, 0, 6, 22, 9, 0, 15, 16,
18, 19, 10, 13, 0, 0, 0
}
Definition at line 217 of file cf_gramatical.cpp.
const short yydefgoto[] [static] |
{ 45,
3, 4, 17, 28, 18, 19, 20, 21
}
Definition at line 225 of file cf_gramatical.cpp.
| FILE* yyin |
Definition at line 401 of file cf_gramatical.cpp.
Definition at line 409 of file cf_gramatical.cpp.
const short yypact[] [static] |
{ -4,
17, 2, -4,-32768, 1, 1, -15,-32768,-32768,-32768,
50, 50, 1, 22,-32768,-32768, 10, 14, 23,-32768,
-32768, 25,-32768,-32768,-32768, 31,-32768, -3, 14,-32768,
50, 50, 50, 50,-32768,-32768,-32768, 36, 23, 23,
-32768,-32768,-32768, 14, 29, 46,-32768
}
Definition at line 229 of file cf_gramatical.cpp.
const short yypgoto[] [static] |
{-32768,
-32768, 44, -1,-32768, -14, 6, -8,-32768
}
Definition at line 237 of file cf_gramatical.cpp.
const short yyr1[] [static] |
{ 0,
20, 20, 21, 21, 22, 22, 22, 23, 23, 23,
23, 24, 24, 25, 25, 25, 26, 26, 26, 27,
27, 27, 27, 27, 27, 27, 28
}
Definition at line 205 of file cf_gramatical.cpp.
const short yyr2[] [static] |
{ 0,
1, 0, 2, 1, 3, 4, 4, 1, 3, 4,
2, 1, 3, 1, 3, 3, 1, 3, 3, 2,
2, 3, 1, 1, 1, 1, 1
}
Definition at line 211 of file cf_gramatical.cpp.
const short yytable[] [static] |
{ 29,
1, 23, 24, 25, 22, 9, 10, 7, 11, 12,
37, 26, 38, 13, 2, 14, 30, 15, 16, 5,
6, 31, 32, 44, 41, 42, 9, 10, 46, 11,
12, 35, 33, 34, 13, 27, 39, 40, 15, 16,
9, 10, 36, 11, 12, 47, 8, 0, 13, 43,
0, 0, 15, 16, 9, 10, 0, 11, 12, 0,
0, 0, 13, 0, 0, 0, 15, 16
}
Definition at line 245 of file cf_gramatical.cpp.
const char yytranslate[] [static] |
{ 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, 19
}
Definition at line 135 of file cf_gramatical.cpp.
1.6.1