|
ergo
|
Parses the input. More...
#include <stdio.h>#include <stdlib.h>#include <math.h>#include "ergo_scripted.h"#include <string.h>Classes | |
| union | YYSTYPE |
| struct | YYSTACKDATA |
Macros | |
| #define | YYBYACC 1 |
| #define | YYMAJOR 2 |
| #define | YYMINOR 0 |
| #define | YYPATCH 20220114 |
| #define | YYEMPTY (-1) |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | yyerrok (yyerrflag = 0) |
| #define | YYRECOVERING() |
| #define | YYENOMEM (-2) |
| #define | YYEOF 0 |
| #define | YYBTYACC 0 |
| #define | YYDEBUGSTR YYPREFIX "debug" |
| #define | YYPREFIX "yy" |
| #define | YYPURE 0 |
| #define | YYERROR_VERBOSE |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYPARSE_DECL() |
| #define | YYLEX_DECL() |
| #define | YYLEX yylex() |
| #define | YYERROR_DECL() |
| #define | YYERROR_CALL(msg) |
| #define | NUMBER 257 |
| #define | DOT 258 |
| #define | SYMBOL 259 |
| #define | EQUAL 260 |
| #define | STRING 261 |
| #define | EOFTAG 262 |
| #define | GETEXC 263 |
| #define | GETPOL 264 |
| #define | K_ALL 265 |
| #define | HELP 266 |
| #define | MOLTAG 267 |
| #define | GHOSTTAG 268 |
| #define | MOLDAL 269 |
| #define | QUIT 270 |
| #define | RUNTAG 271 |
| #define | SYSTEM 272 |
| #define | GHOST 273 |
| #define | ANGSTROM 274 |
| #define | PRECISION 275 |
| #define | RANGE 276 |
| #define | WARRANTY 277 |
| #define | LIST_DFT_FUNCS 278 |
| #define | IS_CHT_USED 279 |
| #define | SET_NTHREADS 280 |
| #define | PLUS 281 |
| #define | MINUS 282 |
| #define | TIMES 283 |
| #define | DIVIDE 284 |
| #define | POWER 285 |
| #define | LEFT_PARENTHESIS 286 |
| #define | RIGHT_PARENTHESIS 287 |
| #define | EOL 288 |
| #define | NEG 289 |
| #define | YYERRCODE 256 |
| #define | YYTABLESIZE 321 |
| #define | YYFINAL 18 |
| #define | YYDEBUG 0 |
| #define | YYMAXTOKEN 289 |
| #define | YYUNDFTOKEN 299 |
| #define | YYTRANSLATE(a) |
| #define | YYSTACKSIZE 10000 |
| #define | YYMAXDEPTH 10000 |
| #define | YYINITSTACKSIZE 200 |
| #define | yydepth (int)(yystack.s_mark - yystack.s_base) |
| #define | yyfreestack(data) |
| #define | YYABORT goto yyabort |
| #define | YYREJECT goto yyabort |
| #define | YYACCEPT goto yyaccept |
| #define | YYERROR goto yyerrlab |
Typedefs | |
| typedef union YYSTYPE | YYSTYPE |
| typedef int | YYINT |
Functions | |
| int | yylex (void) |
| int | yyerror (const char *s) |
| static int | yygrowstack (YYSTACKDATA *data) |
Variables | |
| static const char * | last_token = NULL |
| static const YYINT | yylhs [] |
| static const YYINT | yylen [] |
| static const YYINT | yydefred [] |
| static const YYINT | yydgoto [] |
| static const YYINT | yysindex [] |
| static const YYINT | yyrindex [] |
| static const YYINT | yygindex [] |
| static const YYINT | yytable [] |
| static const YYINT | yycheck [] |
| int | yyerrflag |
| int | yychar |
| YYSTYPE | yyval |
| YYSTYPE | yylval |
| int | yynerrs |
| static YYSTACKDATA | yystack |
| int | ergo_scanner_lineno = 1 |
| int | ergo_scanner_reading_stdin = 0 |
Parses the input.
Uses bison code generator to generate the parses.
| #define ANGSTROM 274 |
| #define DIVIDE 284 |
| #define DOT 258 |
| #define EOFTAG 262 |
| #define EOL 288 |
| #define EQUAL 260 |
| #define GETEXC 263 |
| #define GETPOL 264 |
| #define GHOST 273 |
| #define GHOSTTAG 268 |
| #define HELP 266 |
| #define IS_CHT_USED 279 |
| #define K_ALL 265 |
| #define LEFT_PARENTHESIS 286 |
| #define LIST_DFT_FUNCS 278 |
| #define MINUS 282 |
| #define MOLDAL 269 |
| #define MOLTAG 267 |
| #define NEG 289 |
| #define NUMBER 257 |
| #define PLUS 281 |
| #define POWER 285 |
| #define PRECISION 275 |
Referenced by write_matrix(), and write_vector().
| #define QUIT 270 |
| #define RANGE 276 |
| #define RIGHT_PARENTHESIS 287 |
| #define RUNTAG 271 |
| #define SET_NTHREADS 280 |
| #define STRING 261 |
| #define SYMBOL 259 |
| #define SYSTEM 272 |
| #define TIMES 283 |
| #define WARRANTY 277 |
| #define YYABORT goto yyabort |
| #define YYACCEPT goto yyaccept |
| #define YYBTYACC 0 |
| #define YYBYACC 1 |
| #define YYDEBUG 0 |
| #define YYDEBUGSTR YYPREFIX "debug" |
| #define yydepth (int)(yystack.s_mark - yystack.s_base) |
| #define YYEMPTY (-1) |
| #define YYENOMEM (-2) |
Referenced by yygrowstack().
| #define YYEOF 0 |
| #define YYERRCODE 256 |
| #define yyerrok (yyerrflag = 0) |
| #define YYERROR goto yyerrlab |
| #define YYERROR_CALL | ( | msg | ) |
| #define YYERROR_DECL | ( | ) |
| #define YYERROR_VERBOSE |
| #define YYFINAL 18 |
| #define yyfreestack | ( | data | ) |
| #define YYINITSTACKSIZE 200 |
Referenced by yygrowstack().
| #define YYLEX yylex() |
| #define YYMAJOR 2 |
| #define YYMAXDEPTH 10000 |
Referenced by yygrowstack().
| #define YYMAXTOKEN 289 |
| #define YYMINOR 0 |
| #define YYPATCH 20220114 |
| #define YYPREFIX "yy" |
Referenced by yygrowstack().
| #define YYPURE 0 |
| #define YYRECOVERING | ( | ) |
| #define YYREJECT goto yyabort |
| #define YYSTACKSIZE 10000 |
| #define YYSTYPE_IS_DECLARED 1 |
| #define YYTABLESIZE 321 |
| #define YYTRANSLATE | ( | a | ) |
| #define YYUNDFTOKEN 299 |
| typedef int YYINT |
| typedef union YYSTYPE YYSTYPE |
| int yyerror | ( | const char * | s | ) |
References ergo_scanner_lineno, ergo_scanner_reading_stdin, and last_token.
|
static |
| int yylex | ( | void | ) |
| int ergo_scanner_lineno = 1 |
Referenced by yyerror().
| int ergo_scanner_reading_stdin = 0 |
Referenced by ergo_parse_file(), and yyerror().
|
static |
Referenced by yyerror().
| int yychar |
|
static |
|
static |
|
static |
| int yyerrflag |
|
static |
|
static |
|
static |
| YYSTYPE yylval |
| int yynerrs |
|
static |
|
static |
|
static |
|
static |
| YYSTYPE yyval |