|
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 1 |
| #define | YYMINOR 9 |
| #define | YYPATCH 20140101 |
| #define | YYEMPTY (-1) |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | yyerrok (yyerrflag = 0) |
| #define | YYRECOVERING() (yyerrflag != 0) |
| #define | YYPREFIX "yy" |
| #define | YYPURE 0 |
| #define | YYERROR_VERBOSE |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYPARSE_DECL() yyparse(void) |
| #define | YYLEX_DECL() yylex(void) |
| #define | YYLEX yylex() |
| #define | YYERROR_DECL() yyerror(const char *s) |
| #define | YYERROR_CALL(msg) yyerror(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 | SET_NTHREADS 278 |
| #define | PLUS 279 |
| #define | MINUS 280 |
| #define | TIMES 281 |
| #define | DIVIDE 282 |
| #define | POWER 283 |
| #define | LEFT_PARENTHESIS 284 |
| #define | RIGHT_PARENTHESIS 285 |
| #define | EOL 286 |
| #define | NEG 287 |
| #define | YYERRCODE 256 |
| #define | YYTABLESIZE 319 |
| #define | YYFINAL 16 |
| #define | YYDEBUG 0 |
| #define | YYMAXTOKEN 287 |
| #define | YYTRANSLATE(a) ((a) > YYMAXTOKEN ? (YYMAXTOKEN + 1) : (a)) |
| #define | YYSTACKSIZE 10000 |
| #define | YYMAXDEPTH 10000 |
| #define | YYINITSTACKSIZE 200 |
| #define | yyfreestack(data) /* nothing */ |
| #define | YYABORT goto yyabort |
| #define | YYREJECT goto yyabort |
| #define | YYACCEPT goto yyaccept |
| #define | YYERROR goto yyerrlab |
Functions | |
| int | yylex (void) |
| int | yyerror (const char *s) |
| static int | yygrowstack (YYSTACKDATA *data) |
Variables | |
| static const char | yysccsid [] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" |
| static const char * | last_token = NULL |
| static const short | yylhs [] |
| static const short | yylen [] |
| static const short | yydefred [] |
| static const short | yydgoto [] |
| static const short | yysindex [] |
| static const short | yyrindex [] |
| static const short | yygindex [] |
| static const short | yytable [] |
| static const short | yycheck [] |
| int | yydebug |
| int | yynerrs |
| int | yyerrflag |
| int | yychar |
| YYSTYPE | yyval |
| YYSTYPE | yylval |
| 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 |
Referenced by while().
| #define DIVIDE 282 |
Referenced by while().
| #define DOT 258 |
Referenced by while().
| #define EOFTAG 262 |
Referenced by while().
| #define EOL 286 |
Referenced by while().
| #define EQUAL 260 |
Referenced by while().
| #define GETEXC 263 |
Referenced by while().
| #define GETPOL 264 |
Referenced by while().
| #define GHOST 273 |
Referenced by while().
| #define GHOSTTAG 268 |
| #define HELP 266 |
Referenced by while().
| #define K_ALL 265 |
Referenced by while().
| #define LEFT_PARENTHESIS 284 |
Referenced by while().
| #define MINUS 280 |
Referenced by while().
| #define MOLDAL 269 |
Referenced by while().
| #define MOLTAG 267 |
Referenced by while().
| #define NEG 287 |
| #define NUMBER 257 |
Referenced by while().
| #define PLUS 279 |
Referenced by while().
| #define POWER 283 |
Referenced by while().
| #define PRECISION 275 |
Referenced by while().
| #define QUIT 270 |
Referenced by while().
| #define RANGE 276 |
Referenced by while().
| #define RIGHT_PARENTHESIS 285 |
Referenced by while().
| #define RUNTAG 271 |
Referenced by while().
| #define SET_NTHREADS 278 |
Referenced by while().
| #define STRING 261 |
Referenced by while().
| #define SYMBOL 259 |
Referenced by while().
| #define SYSTEM 272 |
Referenced by while().
| #define TIMES 281 |
Referenced by while().
| #define WARRANTY 277 |
Referenced by while().
| #define YYABORT goto yyabort |
| #define YYACCEPT goto yyaccept |
| #define YYBYACC 1 |
| #define YYDEBUG 0 |
| #define YYEMPTY (-1) |
| #define YYERRCODE 256 |
| #define yyerrok (yyerrflag = 0) |
| #define YYERROR goto yyerrlab |
| #define YYERROR_CALL | ( | msg | ) | yyerror(msg) |
| #define YYERROR_DECL | ( | ) | yyerror(const char *s) |
| #define YYERROR_VERBOSE |
| #define YYFINAL 16 |
| #define yyfreestack | ( | data | ) | /* nothing */ |
Referenced by yygrowstack().
| #define YYINITSTACKSIZE 200 |
Referenced by yygrowstack().
| #define YYLEX yylex() |
| #define YYLEX_DECL | ( | ) | yylex(void) |
| #define YYMAJOR 1 |
| #define YYMAXDEPTH 10000 |
Referenced by yygrowstack().
| #define YYMAXTOKEN 287 |
| #define YYMINOR 9 |
| int YYPARSE_DECL | ( | ) | yyparse(void) |
| #define YYPATCH 20140101 |
| #define YYPREFIX "yy" |
| #define YYPURE 0 |
| #define YYRECOVERING | ( | ) | (yyerrflag != 0) |
| #define YYREJECT goto yyabort |
| #define YYSTACKSIZE 10000 |
| #define YYSTYPE_IS_DECLARED 1 |
| #define YYTABLESIZE 319 |
| #define YYTRANSLATE | ( | a | ) | ((a) > YYMAXTOKEN ? (YYMAXTOKEN + 1) : (a)) |
| int yyerror | ( | const char * | s | ) |
References ergo_scanner_lineno, ergo_scanner_reading_stdin, last_token, main(), and yyparse().
|
static |
| int yylex | ( | void | ) |
| int ergo_scanner_reading_stdin = 0 |
Referenced by ergo_parse_file(), while(), and yyerror().
|
static |
Referenced by yyerror().
| int yychar |
|
static |
| int yydebug |
|
static |
|
static |
| int yyerrflag |
|
static |
|
static |
|
static |
| int yynerrs |
|
static |
|
static |
|
static |
|
static |
|
static |
| YYSTYPE yyval |