|
ergo
|
Parses the input. More...
#include <stdio.h>#include <stdlib.h>#include <math.h>#include "ergo_scripted.h"#include <stddef.h>Classes | |
| union | YYSTYPE |
| union | yyalloc |
Macros | |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "3.0.4" |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 0 |
| #define | YYPUSH 0 |
| #define | YYPULL 1 |
| #define | YYERROR_VERBOSE |
| #define | YY_NULLPTR 0 |
| #define | YYERROR_VERBOSE 1 |
| #define | YY_YY_ERGO_INPUT_PROCESSOR_H_INCLUDED |
| #define | YYDEBUG 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 | LIST_DFT_FUNCS 279 |
| #define | IS_CHT_USED 280 |
| #define | SET_NTHREADS 281 |
| #define | PLUS 282 |
| #define | MINUS 283 |
| #define | TIMES 284 |
| #define | DIVIDE 285 |
| #define | POWER 286 |
| #define | LEFT_PARENTHESIS 287 |
| #define | RIGHT_PARENTHESIS 288 |
| #define | EOL 289 |
| #define | NEG 290 |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYSIZE_T size_t |
| #define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define | YY_(Msgid) Msgid |
| #define | YY_ATTRIBUTE(Spec) /* empty */ |
| #define | YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| #define | YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| #define | _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
| #define | YYUSE(E) ((void) (E)) |
| #define | YY_INITIAL_VALUE(Value) Value |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
| #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(Dst, Src, Count) |
| #define | YYFINAL 37 |
| #define | YYLAST 108 |
| #define | YYNTOKENS 36 |
| #define | YYNNTS 9 |
| #define | YYNRULES 45 |
| #define | YYNSTATES 94 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 290 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF -41 |
| #define | yypact_value_is_default(Yystate) (!!((Yystate) == (-41))) |
| #define | YYTABLE_NINF -6 |
| #define | yytable_value_is_error(Yytable_value) 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 | YYRECOVERING() (!!yyerrstatus) |
| #define | YYBACKUP(Token, Value) |
| #define | YYTERROR 1 |
| #define | YYERRCODE 256 |
| #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 signed char | 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, LIST_DFT_FUNCS = 279, IS_CHT_USED = 280, SET_NTHREADS = 281, PLUS = 282, MINUS = 283, TIMES = 284, DIVIDE = 285, POWER = 286, LEFT_PARENTHESIS = 287, RIGHT_PARENTHESIS = 288, EOL = 289, NEG = 290, 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, LIST_DFT_FUNCS = 279, IS_CHT_USED = 280, SET_NTHREADS = 281, PLUS = 282, MINUS = 283, TIMES = 284, DIVIDE = 285, POWER = 286, LEFT_PARENTHESIS = 287, RIGHT_PARENTHESIS = 288, EOL = 289, NEG = 290 } |
Functions | |
| int | yylex (void) |
| int | yyerror (const char *s) |
| int | yyparse (void) |
| void * | malloc (YYSIZE_T) |
| void | free (void *) |
| static YYSIZE_T | yystrlen (const char *yystr) |
| 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 (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
Variables | |
| static const char * | last_token = NULL |
| YYSTYPE | yylval |
| static const yytype_uint8 | yytranslate [] |
| static const char *const | yytname [] |
| static const yytype_int8 | yypact [] |
| static const yytype_uint8 | yydefact [] |
| static const yytype_int8 | yypgoto [] |
| static const yytype_int8 | yydefgoto [] |
| static const yytype_int8 | yytable [] |
| static const yytype_uint8 | yycheck [] |
| static const yytype_uint8 | yystos [] |
| static const yytype_uint8 | yyr1 [] |
| static const yytype_uint8 | yyr2 [] |
| int | yychar |
| 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 _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
| #define ANGSTROM 275 |
| #define DIVIDE 285 |
| #define DOT 259 |
| #define EOFTAG 263 |
| #define EOL 289 |
| #define EQUAL 261 |
| #define GETEXC 264 |
| #define GETPOL 265 |
| #define GHOST 274 |
| #define GHOSTTAG 269 |
| #define HELP 267 |
| #define IS_CHT_USED 280 |
| #define K_ALL 266 |
| #define LEFT_PARENTHESIS 287 |
| #define LIST_DFT_FUNCS 279 |
| #define MINUS 283 |
| #define MOLDAL 270 |
| #define MOLTAG 268 |
| #define NEG 290 |
| #define NUMBER 258 |
| #define PLUS 282 |
| #define POWER 286 |
| #define PRECISION 276 |
Referenced by write_matrix(), and write_vector().
| #define QUIT 271 |
| #define RANGE 277 |
| #define RIGHT_PARENTHESIS 288 |
| #define RUNTAG 272 |
| #define SET_NTHREADS 281 |
| #define STRING 262 |
| #define SYMBOL 260 |
| #define SYSTEM 273 |
| #define TIMES 284 |
| #define WARRANTY 278 |
| #define YY_ | ( | Msgid | ) | Msgid |
Referenced by yyparse(), and yysyntax_error().
| #define YY_ATTRIBUTE | ( | Spec | ) | /* empty */ |
| #define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| #define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Referenced by yydestruct(), and yyparse().
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Referenced by yydestruct(), and yyparse().
| #define YY_INITIAL_VALUE | ( | Value | ) | Value |
| #define YY_NULLPTR 0 |
Referenced by yysyntax_error().
| #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 YY_YY_ERGO_INPUT_PROCESSOR_H_INCLUDED |
| #define YYABORT goto yyabortlab |
Referenced by yyparse().
| #define YYACCEPT goto yyacceptlab |
Referenced by yyparse().
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYBISON 1 |
| #define YYBISON_VERSION "3.0.4" |
| #define YYCASE_ | ( | N, | |
| S | |||
| ) |
Referenced by yysyntax_error().
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| 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 YYFINAL 37 |
Referenced by yyparse().
| #define YYFREE free |
| #define YYINITDEPTH 200 |
Referenced by yyparse().
| #define YYLAST 108 |
Referenced by yyparse(), and yysyntax_error().
| #define YYMALLOC malloc |
| #define YYMAXDEPTH 10000 |
Referenced by yyparse().
| #define YYMAXUTOK 290 |
| #define YYNNTS 9 |
| #define YYNRULES 45 |
| #define YYNSTATES 94 |
| #define YYNTOKENS 36 |
Referenced by yyparse(), and yysyntax_error().
| #define YYPACT_NINF -41 |
| #define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-41))) |
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 YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define YYSIZE_T size_t |
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_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 | ) | 0 |
Referenced by yyparse(), and yysyntax_error().
| #define YYTERROR 1 |
Referenced by yyparse(), and yysyntax_error().
| #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 signed char yytype_int8 |
| typedef unsigned short int yytype_uint16 |
| typedef unsigned char yytype_uint8 |
| enum yytokentype |
Referenced by cam_free_config(), dft_integrate(), dft_integrator_bl_free(), dft_lin_respao(), ergo_free(), es_assign_range(), es_assign_str(), free_functionals(), grid_close(), grid_free_files(), grid_open_cartesian(), grid_open_full(), grid_open_stream(), main(), mm_write_banner(), template_blas_s_cat(), variable_free(), and RadialSchemeLMG::~RadialSchemeLMG().
Referenced by add_functional(), dal_malloc_(), ergo_malloc(), F77_aloc(), grid_get_fname(), main(), mm_read_mtx_crd(), mm_read_unsymmetric_sparse(), mm_strdup(), and newFunc().
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().
| int yyerror | ( | const char * | s | ) |
References ergo_scanner_reading_stdin, and last_token.
Referenced by yyparse().
| 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_is_cht_used(), es_print_list_dft_funcs(), es_print_precision(), es_run(), es_set_nthreads(), es_set_nthreads_string(), es_warranty(), last_token, MOL_GHOST, MOL_MAIN, YYSTYPE::num, YYSTYPE::var, YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror(), YYERROR, YYFINAL, YYINITDEPTH, YYLAST, yylex(), yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, YYSYNTAX_ERROR, yytable, 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_, YY_NULLPTR, YYCASE_, yycheck, YYEMPTY, YYLAST, YYNTOKENS, yypact, yypact_value_is_default, YYSIZE_T, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable, yytable_value_is_error, YYTERROR, yytname, and yytnamerr().
|
static |
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
| int ergo_scanner_lineno = 1 |
| int ergo_scanner_reading_stdin = 0 |
Referenced by ergo_parse_file(), yyerror(), and yyparse().
| int yychar |
|
static |
Referenced by yyparse(), and yysyntax_error().
|
static |
Referenced by yyparse().
|
static |
Referenced by yyparse().
| int yynerrs |
Referenced by yyparse().
|
static |
Referenced by yyparse(), and yysyntax_error().
|
static |
Referenced by yyparse().
|
static |
Referenced by yyparse().
|
static |
Referenced by yyparse().
|
static |
Referenced by yyparse().
|
static |
Referenced by yyparse(), and yysyntax_error().
|
static |
Referenced by yysyntax_error().
|
static |