ergo
|
#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 20140715 |
#define | YYEMPTY (-1) |
#define | yyclearin (yychar = YYEMPTY) |
#define | yyerrok (yyerrflag = 0) |
#define | YYRECOVERING() (yyerrflag != 0) |
#define | YYENOMEM (-2) |
#define | YYEOF 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 | 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) ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (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 |
Typedefs | |
typedef short | 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 | 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 |
#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 |
#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 YYBYACC 1 |
#define YYDEBUG 0 |
#define YYEMPTY (-1) |
#define YYENOMEM (-2) |
#define YYEOF 0 |
#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 18 |
#define yyfreestack | ( | data | ) | /* nothing */ |
#define YYINITSTACKSIZE 200 |
#define YYLEX yylex() |
#define YYLEX_DECL | ( | ) | yylex(void) |
#define YYMAJOR 1 |
#define YYMAXDEPTH 10000 |
#define YYMAXTOKEN 289 |
#define YYMINOR 9 |
int YYPARSE_DECL | ( | ) | yyparse(void) |
#define YYPATCH 20140715 |
#define YYPREFIX "yy" |
#define YYPURE 0 |
#define YYRECOVERING | ( | ) | (yyerrflag != 0) |
#define YYREJECT goto yyabort |
#define YYSTACKSIZE 10000 |
#define YYSTYPE_IS_DECLARED 1 |
#define YYTABLESIZE 321 |
#define YYTRANSLATE | ( | a | ) | ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (a)) |
#define YYUNDFTOKEN 299 |
typedef short YYINT |
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 |
int yydebug |
|
static |
|
static |
int yyerrflag |
|
static |
|
static |
|
static |
YYSTYPE yylval |
int yynerrs |
|
static |
|
static |
|
static |
|
static |
YYSTYPE yyval |