ergo
|
Parses the input. More...
Classes | |
union | YYSTYPE |
union | yyalloc |
Macros | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.5" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | YYLSP_NEEDED 0 |
#define | YYERROR_VERBOSE |
#define | YYDEBUG 0 |
#define | YYERROR_VERBOSE 1 |
#define | YYTOKEN_TABLE 0 |
#define | YYTOKENTYPE |
#define | NUMBER 258 |
#define | DOT 259 |
#define | SYMBOL 260 |
#define | EQUAL 261 |
#define | STRING 262 |
#define | EOFTAG 263 |
#define | GETEXC 264 |
#define | GETPOL 265 |
#define | K_ALL 266 |
#define | HELP 267 |
#define | MOLTAG 268 |
#define | GHOSTTAG 269 |
#define | MOLDAL 270 |
#define | QUIT 271 |
#define | RUNTAG 272 |
#define | SYSTEM 273 |
#define | GHOST 274 |
#define | ANGSTROM 275 |
#define | PRECISION 276 |
#define | RANGE 277 |
#define | WARRANTY 278 |
#define | SET_NTHREADS 279 |
#define | PLUS 280 |
#define | MINUS 281 |
#define | TIMES 282 |
#define | DIVIDE 283 |
#define | POWER 284 |
#define | LEFT_PARENTHESIS 285 |
#define | RIGHT_PARENTHESIS 286 |
#define | EOL 287 |
#define | NEG 288 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | yystype YYSTYPE /* obsolescent; will be withdrawn */ |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSIZE_T unsigned int |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_(msgid) msgid |
#define | YYUSE(e) ((void) (e)) |
#define | YYID(n) (n) |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY_NEEDED 1 |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYCOPY(To, From, Count) |
#define | YYFINAL 35 |
#define | YYLAST 106 |
#define | YYNTOKENS 34 |
#define | YYNNTS 9 |
#define | YYNRULES 43 |
#define | YYNSTATES 92 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 288 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -39 |
#define | YYTABLE_NINF -6 |
#define | yypact_value_is_default(yystate) ((yystate) == (-39)) |
#define | yytable_value_is_error(yytable_value) YYID (0) |
#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 yyerrorlab |
#define | YYFAIL goto yyerrlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YYLEX yylex () |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYCASE_(N, S) |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | YYSYNTAX_ERROR |
Typedefs | |
typedef union YYSTYPE | YYSTYPE |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations | |
enum | yytokentype { NUMBER = 258, DOT = 259, SYMBOL = 260, EQUAL = 261, STRING = 262, EOFTAG = 263, GETEXC = 264, GETPOL = 265, K_ALL = 266, HELP = 267, MOLTAG = 268, GHOSTTAG = 269, MOLDAL = 270, QUIT = 271, RUNTAG = 272, SYSTEM = 273, GHOST = 274, ANGSTROM = 275, PRECISION = 276, RANGE = 277, WARRANTY = 278, SET_NTHREADS = 279, PLUS = 280, MINUS = 281, TIMES = 282, DIVIDE = 283, POWER = 284, LEFT_PARENTHESIS = 285, RIGHT_PARENTHESIS = 286, EOL = 287, NEG = 288, NUMBER = 258, DOT = 259, SYMBOL = 260, EQUAL = 261, STRING = 262, EOFTAG = 263, GETEXC = 264, GETPOL = 265, K_ALL = 266, HELP = 267, MOLTAG = 268, GHOSTTAG = 269, MOLDAL = 270, QUIT = 271, RUNTAG = 272, SYSTEM = 273, GHOST = 274, ANGSTROM = 275, PRECISION = 276, RANGE = 277, WARRANTY = 278, SET_NTHREADS = 279, PLUS = 280, MINUS = 281, TIMES = 282, DIVIDE = 283, POWER = 284, LEFT_PARENTHESIS = 285, RIGHT_PARENTHESIS = 286, EOL = 287, NEG = 288 } |
Functions | |
int | yylex (void) |
int | yyerror (char *s) |
static YYSIZE_T | yystrlen (char *yystr) const |
static char * | yystpcpy (char *yydest, const char *yysrc) |
static YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
static int | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) |
static void | yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep) const |
int | yyparse () |
Variables | |
static const char * | last_token = NULL |
static const yytype_uint8 | yytranslate [] |
static const char *const | yytname [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int8 | yydefgoto [] |
static const yytype_int8 | yypact [] |
static const yytype_int8 | yypgoto [] |
static const yytype_int8 | yytable [] |
static const yytype_uint8 | yycheck [] |
static const yytype_uint8 | yystos [] |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
int | ergo_scanner_lineno = 1 |
int | ergo_scanner_reading_stdin = 0 |
Parses the input.
Uses bison code generator to generate the parses.
#define ANGSTROM 275 |
Referenced by while().
#define DIVIDE 283 |
Referenced by while().
#define DOT 259 |
Referenced by while().
#define EOFTAG 263 |
Referenced by while().
#define EOL 287 |
Referenced by while().
#define EQUAL 261 |
Referenced by while().
#define GETEXC 264 |
Referenced by while().
#define GETPOL 265 |
Referenced by while().
#define GHOST 274 |
Referenced by while().
#define GHOSTTAG 269 |
#define HELP 267 |
Referenced by while().
#define K_ALL 266 |
Referenced by while().
#define LEFT_PARENTHESIS 285 |
Referenced by while().
#define MINUS 281 |
Referenced by while().
#define MOLDAL 270 |
Referenced by while().
#define MOLTAG 268 |
Referenced by while().
#define NEG 288 |
#define NUMBER 258 |
Referenced by while().
#define PLUS 280 |
Referenced by while().
#define POWER 284 |
Referenced by while().
#define PRECISION 276 |
Referenced by while().
#define QUIT 271 |
Referenced by while().
#define RANGE 277 |
Referenced by while().
#define RIGHT_PARENTHESIS 286 |
Referenced by while().
#define RUNTAG 272 |
Referenced by while().
#define SET_NTHREADS 279 |
Referenced by while().
#define STRING 262 |
Referenced by while().
#define SYMBOL 260 |
Referenced by while().
#define SYSTEM 273 |
Referenced by while().
#define TIMES 282 |
Referenced by while().
#define WARRANTY 278 |
Referenced by while().
#define YY_ | ( | msgid) | msgid |
Referenced by yyparse(), and yysyntax_error().
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
#define YY_REDUCE_PRINT | ( | Rule) |
Referenced by yyparse().
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Referenced by yyparse().
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
Referenced by yydestruct(), and yyparse().
#define YYABORT goto yyabortlab |
Referenced by yyparse().
#define YYACCEPT goto yyacceptlab |
Referenced by yyparse().
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYBISON 1 |
#define YYBISON_VERSION "2.5" |
#define YYCASE_ | ( | N, | |
S | |||
) |
Referenced by yysyntax_error().
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
#define YYCOPY_NEEDED 1 |
#define YYDEBUG 0 |
#define YYDPRINTF | ( | Args) |
Referenced by yyparse().
#define YYEMPTY (-2) |
Referenced by yyparse(), and yysyntax_error().
#define YYEOF 0 |
Referenced by yyparse().
#define YYERRCODE 256 |
#define yyerrok (yyerrstatus = 0) |
#define YYERROR goto yyerrorlab |
Referenced by yyparse().
#define YYERROR_VERBOSE |
#define YYERROR_VERBOSE 1 |
#define YYFAIL goto yyerrlab |
#define YYFINAL 35 |
Referenced by yyparse().
#define YYFREE free |
#define YYID | ( | n) | (n) |
Referenced by yyparse().
#define YYINITDEPTH 200 |
Referenced by yyparse().
#define YYLAST 106 |
Referenced by yyparse(), and yysyntax_error().
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
#define YYLSP_NEEDED 0 |
#define YYMALLOC malloc |
#define YYMAXDEPTH 10000 |
Referenced by yyparse().
#define YYMAXUTOK 288 |
#define YYNNTS 9 |
#define YYNRULES 43 |
#define YYNSTATES 92 |
#define YYNTOKENS 34 |
Referenced by yyparse(), and yysyntax_error().
#define YYPACT_NINF -39 |
#define yypact_value_is_default | ( | yystate) | ((yystate) == (-39)) |
Referenced by yyparse(), and yysyntax_error().
#define YYPOPSTACK | ( | N) | (yyvsp -= (N), yyssp -= (N)) |
Referenced by yyparse().
#define YYPULL 1 |
#define YYPURE 0 |
#define YYPUSH 0 |
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
#define YYRHSLOC | ( | Rhs, | |
K | |||
) | ((Rhs)[K]) |
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define YYSIZE_T unsigned int |
Referenced by yyparse(), yystrlen(), yysyntax_error(), and yytnamerr().
#define YYSKELETON_NAME "yacc.c" |
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Referenced by yysyntax_error().
#define YYSTACK_BYTES | ( | N) |
Referenced by yyparse().
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
Referenced by yyparse().
#define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
#define YYSTYPE_IS_DECLARED 1 |
#define YYSTYPE_IS_TRIVIAL 1 |
#define YYSYNTAX_ERROR |
Referenced by yyparse().
#define YYTABLE_NINF -6 |
#define yytable_value_is_error | ( | yytable_value) | YYID (0) |
Referenced by yyparse(), and yysyntax_error().
#define YYTERROR 1 |
Referenced by yyparse(), and yysyntax_error().
#define YYTOKEN_TABLE 0 |
#define YYTOKENTYPE |
#define YYTRANSLATE | ( | YYX) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Referenced by yyparse().
#define YYUNDEFTOK 2 |
#define YYUSE | ( | e) | ((void) (e)) |
Referenced by yydestruct().
typedef short int yytype_int16 |
typedef short int yytype_int8 |
typedef unsigned short int yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum yytokentype |
|
static |
References YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().
int yyerror | ( | char * | s) |
References ergo_scanner_reading_stdin, and last_token.
Referenced by yyparse().
int yylex | ( | void | ) |
int yyparse | ( | void | ) |
References ergo_scanner_reading_stdin, es_add_atom(), es_assign_num(), es_assign_range(), es_assign_str(), es_find_var(), es_get_polarisability(), es_getexc(), es_mol_commit(), es_mol_read_molecule(), es_print_help(), es_print_help_var(), es_print_precision(), es_run(), es_set_nthreads(), es_set_nthreads_string(), es_warranty(), last_token, MOL_GHOST, MOL_MAIN, YYSTYPE::num, YYSTYPE::str, YYSTYPE::var, YY_, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror(), YYERROR, YYFINAL, YYID, YYINITDEPTH, YYLAST, YYLEX, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact_value_is_default, YYPOPSTACK, YYSIZE_T, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, YYSYNTAX_ERROR, yytable_value_is_error, YYTERROR, YYTRANSLATE, and yyalloc::yyvs_alloc.
Referenced by ergo_parse_file(), and ergo_parse_string().
|
static |
Referenced by yytnamerr().
|
static |
References YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
|
static |
References YY_, YYCASE_, YYEMPTY, YYLAST, YYNTOKENS, yypact_value_is_default, YYSIZE_T, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable_value_is_error, YYTERROR, and yytnamerr().
|
static |
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
int ergo_scanner_lineno = 1 |
Referenced by while().
int ergo_scanner_reading_stdin = 0 |
Referenced by ergo_parse_file(), while(), yyerror(), and yyparse().
int yychar |
|
static |
|
static |
|
static |
int yynerrs |
Referenced by yyparse().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |