yast2-core
|
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <fstream>
#include <string>
#include <list>
#include "YCP.h"
#include "ycp/Scanner.h"
#include "ycp/y2log.h"
#include "ycp/pathsearch.h"
#include "ycp/ExecutionEnvironment.h"
#include "ycp/StaticDeclaration.h"
#include "ycp/YCode.h"
#include "ycp/Type.h"
#include "ycp/YExpression.h"
#include "ycp/YStatement.h"
#include "ycp/YBlock.h"
#include "ycp/SymbolTable.h"
#include "ycp/YSymbolEntry.h"
#include "ycp/Point.h"
#include "ycp/Bytecode.h"
#include "ycp/Parser.h"
Classes | |
struct | yystype_type |
struct | stack |
general stack handling More... | |
struct | blockstack_t |
stack for blocks More... | |
struct | switchstack_t |
stack for switch More... | |
struct | scannerstack_t |
stack for scanners More... | |
union | yyalloc |
Macros | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.7" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 1 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | DO_DEBUG 0 |
#define | YYDEBUG 0 |
#define | YYERROR_VERBOSE 1 |
#define | YYINITDEPTH 1000 |
#define | YYMAXDEPTH 50000 |
#define | YYSTYPE yystype_type |
#define | p_parser ((Parser *) vp_parser) |
#define | LINE_NOW (p_parser->m_lineno) |
#define | FILE_NOW (p_parser->scanner()->filename ()) |
#define | yyerror(locp, text) yyerror_with_lineinfo (p_parser, -1, text) |
#define | yywarning(text, lineno) yywarning_with_lineinfo (p_parser, lineno, text) |
#define | yyConstAssignError(name, lineno) yyerror_assign_const (p_parser, lineno, name) |
#define | yyLerror(text, lineno) yyerror_with_lineinfo (p_parser, lineno, text) |
#define | yyCerror(code, type, lineno) yyerror_with_code (p_parser, lineno, code, type) |
#define | yyVerror(name, lineno) yyerror_with_name (p_parser, lineno, name) |
#define | yyFerror(name, lineno) yyerror_with_file (p_parser, lineno, name) |
#define | yyTerror(text, lineno, tentry) yyerror_with_tableentry (p_parser, lineno, text, tentry) |
#define | yyTwarning(tentry) yywarning_with_tableentry (p_parser, 0, tentry) |
#define | yyTypeMismatch(text, expected, seen, lineno) yyerror_type_mismatch (p_parser, lineno, text, expected, seen) |
#define | yyCantCast(from, to, lineno) yyerror_cant_cast (p_parser, lineno, from, to) |
#define | yyNoModule(module, lineno) yyerror_no_module (p_parser, lineno, module) |
#define | TOKEN_COMMENT(source_dollar) attach_comment((&(source_dollar) + 1)->c , source_dollar.com) |
#define | TOKEN_COMMENT_TO(source_dollar, target_dollar) attach_comment(target_dollar.c , source_dollar.com) |
#define | RULE_COMMENT(source_dollar) attach_comment((yyval).c , source_dollar.com) |
#define | LAST_TOKEN_COMMENT(source_dollar) attach_comment_after((&(source_dollar) - 1)->c, source_dollar.com) |
#define | check_unary_op(result, e1, op) i_check_unary_op (result, e1, op, p_parser) |
#define | check_binary_op(result, e1, op, e2) i_check_binary_op (result, e1, op, e2, p_parser) |
#define | check_compare_op(result, e1, op, e2) i_check_compare_op (result, e1, op, e2, p_parser) |
#define | check_void_assign(lhs, rhs) i_check_void_assign (lhs, rhs, p_parser) |
#define | blockstack_push(s, e) _blockstack_push(&(s), e) |
#define | blockstack_pop(s) _blockstack_pop(p_parser, &(s)) |
#define | blockstack_at_toplevel() (p_parser->m_blockstack_depth == 1) |
#define | switchstack_push(s, e) _switchstack_push(&(s), e) |
#define | switchstack_pop(s) _switchstack_pop(&(s)) |
#define | scannerstack_push(s, e) _scannerstack_push(&(s), e) |
#define | scannerstack_pop(s) _scannerstack_pop (&(s)) |
#define | scannerstack_empty() (p_parser->m_scanner_stack == 0) |
#define | YY_NULL 0 |
#define | YYERROR_VERBOSE 1 |
#define | YY_YY_PARSER_HH_INCLUDED |
#define | YYTOKENTYPE |
#define | SCANNER_ERROR 258 |
#define | END_OF_FILE 259 |
#define | EMPTY 260 |
#define | LIST 261 |
#define | MAP 262 |
#define | STRUCT 263 |
#define | BLOCK 264 |
#define | DEFINE 265 |
#define | UNDEFINE 266 |
#define | I18N 267 |
#define | RETURN 268 |
#define | CONTINUE 269 |
#define | BREAK 270 |
#define | IF 271 |
#define | DO 272 |
#define | WHILE 273 |
#define | REPEAT 274 |
#define | UNTIL 275 |
#define | IS 276 |
#define | ISNIL 277 |
#define | SYMBOL 278 |
#define | DCSYMBOL 279 |
#define | DCQUOTED_BLOCK 280 |
#define | QUOTED_BLOCK 281 |
#define | QUOTED_EXPRESSION 282 |
#define | CLOSEBRACKET 283 |
#define | TYPEDEF 284 |
#define | MODULE 285 |
#define | IMPORT 286 |
#define | EXPORT 287 |
#define | MAPEXPR 288 |
#define | INCLUDE 289 |
#define | GLOBAL 290 |
#define | TEXTDOMAIN 291 |
#define | CONST 292 |
#define | FULLNAME 293 |
#define | STATIC 294 |
#define | EXTERN 295 |
#define | LOOKUP 296 |
#define | SELECT 297 |
#define | SWITCH 298 |
#define | CASE 299 |
#define | DEFAULT 300 |
#define | SYM_NAMESPACE 301 |
#define | IDENTIFIER 302 |
#define | STRING 303 |
#define | C_VOID 304 |
#define | C_BOOLEAN 305 |
#define | C_INTEGER 306 |
#define | C_FLOAT 307 |
#define | C_BYTEBLOCK 308 |
#define | C_PATH 309 |
#define | C_SYMBOL 310 |
#define | C_TYPE 311 |
#define | OR 312 |
#define | AND 313 |
#define | NEQ 314 |
#define | EQUALS 315 |
#define | GE 316 |
#define | LE 317 |
#define | RIGHT 318 |
#define | LEFT 319 |
#define | ELSE 320 |
#define | UMINUS 321 |
#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(Dst, Src, Count) |
#define | YYFINAL 55 |
#define | YYLAST 1346 |
#define | YYNTOKENS 90 |
#define | YYNNTS 48 |
#define | YYNRULES 155 |
#define | YYNSTATES 309 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 321 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -245 |
#define | YYTABLE_NINF -152 |
#define | yypact_value_is_default(Yystate) (!!((Yystate) == (-245))) |
#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 | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YYLEX yylex (&yylval, vp_parser) |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYCASE_(N, S) |
#define | YY_INITIAL_VALUE(Value) = Value |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | YYSYNTAX_ERROR |
Typedefs | |
typedef struct stack | stack_t |
general stack handling More... | |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations | |
enum | scan_states { SCAN_FILE, SCAN_START_INCLUDE, SCAN_INCLUDE } |
enum | yytokentype { SCANNER_ERROR = 258, END_OF_FILE = 259, EMPTY = 260, LIST = 261, MAP = 262, STRUCT = 263, BLOCK = 264, DEFINE = 265, UNDEFINE = 266, I18N = 267, RETURN = 268, CONTINUE = 269, BREAK = 270, IF = 271, DO = 272, WHILE = 273, REPEAT = 274, UNTIL = 275, IS = 276, ISNIL = 277, SYMBOL = 278, DCSYMBOL = 279, DCQUOTED_BLOCK = 280, QUOTED_BLOCK = 281, QUOTED_EXPRESSION = 282, CLOSEBRACKET = 283, TYPEDEF = 284, MODULE = 285, IMPORT = 286, EXPORT = 287, MAPEXPR = 288, INCLUDE = 289, GLOBAL = 290, TEXTDOMAIN = 291, CONST = 292, FULLNAME = 293, STATIC = 294, EXTERN = 295, LOOKUP = 296, SELECT = 297, SWITCH = 298, CASE = 299, DEFAULT = 300, SYM_NAMESPACE = 301, IDENTIFIER = 302, STRING = 303, C_VOID = 304, C_BOOLEAN = 305, C_INTEGER = 306, C_FLOAT = 307, C_BYTEBLOCK = 308, C_PATH = 309, C_SYMBOL = 310, C_TYPE = 311, OR = 312, AND = 313, NEQ = 314, EQUALS = 315, GE = 316, LE = 317, RIGHT = 318, LEFT = 319, ELSE = 320, UMINUS = 321, SCANNER_ERROR = 258, END_OF_FILE = 259, EMPTY = 260, LIST = 261, MAP = 262, STRUCT = 263, BLOCK = 264, DEFINE = 265, UNDEFINE = 266, I18N = 267, RETURN = 268, CONTINUE = 269, BREAK = 270, IF = 271, DO = 272, WHILE = 273, REPEAT = 274, UNTIL = 275, IS = 276, ISNIL = 277, SYMBOL = 278, DCSYMBOL = 279, DCQUOTED_BLOCK = 280, QUOTED_BLOCK = 281, QUOTED_EXPRESSION = 282, CLOSEBRACKET = 283, TYPEDEF = 284, MODULE = 285, IMPORT = 286, EXPORT = 287, MAPEXPR = 288, INCLUDE = 289, GLOBAL = 290, TEXTDOMAIN = 291, CONST = 292, FULLNAME = 293, STATIC = 294, EXTERN = 295, LOOKUP = 296, SELECT = 297, SWITCH = 298, CASE = 299, DEFAULT = 300, SYM_NAMESPACE = 301, IDENTIFIER = 302, STRING = 303, C_VOID = 304, C_BOOLEAN = 305, C_INTEGER = 306, C_FLOAT = 307, C_BYTEBLOCK = 308, C_PATH = 309, C_SYMBOL = 310, C_TYPE = 311, OR = 312, AND = 313, NEQ = 314, EQUALS = 315, GE = 316, LE = 317, RIGHT = 318, LEFT = 319, ELSE = 320, UMINUS = 321 } |
Functions | |
static void | yyerror_with_lineinfo (Parser *parser, int lineno, const char *s) |
static void | yywarning_with_lineinfo (Parser *parser, int lineno, const char *s) |
static void | yyerror_with_code (Parser *parser, int lineno, YCodePtr c, constTypePtr t) |
static void | yyerror_with_name (Parser *parser, int lineno, const char *s) |
static void | yyerror_with_file (Parser *parser, int lineno, const char *s) |
static void | yyerror_with_tableentry (Parser *parser, int lineno, const char *s, TableEntry *entry) |
static void | yywarning_with_tableentry (Parser *parser, int lineno, TableEntry *entry) |
static void | yyerror_type_mismatch (Parser *parser, int lineno, const char *s, constTypePtr expected_type, constTypePtr seen_type) |
static void | yyerror_assign_const (Parser *parser, int lineno, const char *s) |
static void | yyerror_cant_cast (Parser *parser, int lineno, constTypePtr from, constTypePtr to) |
static void | yyerror_no_module (Parser *parser, int lineno, const char *module) |
static constTypePtr | attach_parameter (Parser *parser, YCodePtr code, YYSTYPE *parm, YYSTYPE *parm1=0) |
static YBlockPtr | start_block (Parser *parser, constTypePtr type) |
static bool | parsing_comments () |
static void | attach_comment (YCodePtr code, const std::string &comment) |
static void | attach_comment_after (YCodePtr code, const std::string &comment) |
int | yylex (YYSTYPE *, void *) |
static void | i_check_unary_op (YYSTYPE *result, YYSTYPE *e1, const char *op, Parser *parser) |
static void | i_check_binary_op (YYSTYPE *result, YYSTYPE *e1, const char *op, YYSTYPE *e2, Parser *parser) |
static void | i_check_compare_op (YYSTYPE *result, YYSTYPE *e1, YECompare::c_op op, YYSTYPE *e2, Parser *parser) |
static void | i_check_void_assign (YYSTYPE *lhs, YYSTYPE *rhs, Parser *parser) |
static void | stack_push (stack_t **stack, stack_t *element) |
push element to stack More... | |
static stack_t * | stack_pop (stack_t **stack) |
pop element to stack More... | |
static void | _blockstack_push (blockstack_t **blockstackptr, blockstack_t *blockelement) |
static blockstack_t * | _blockstack_pop (Parser *parser, blockstack_t **blockstackptr) |
static void | _switchstack_push (switchstack_t **switchstack, stack_t *e) |
static switchstack_t * | _switchstack_pop (switchstack_t **switchstack) |
static void | _scannerstack_push (scannerstack_t **scannerstackptr, stack_t *element) |
static scannerstack_t * | _scannerstack_pop (scannerstack_t **scannerstackptr) |
int | yyparse () |
static YYSIZE_T | yystrlen (yystr) const char *yystr |
for (yylen=0;yystr[yylen];yylen++) continue | |
static char * | yystpcpy (yydest, yysrc) char *yydest |
while ((*yyd++=*yys++)!= '\0') continue | |
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 (yymsg, yytype, yyvaluep, vp_parser) const char *yymsg |
YYUSE (vp_parser) | |
if (!yymsg) yymsg | |
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp) | |
switch (yytype) | |
int | yyparse (vp_parser) Parser *vp_parser |
YYSTYPE yylval | YY_INITIAL_VALUE (yyval_default) |
YYDPRINTF ((stderr,"Starting parse\n")) | |
if (yyss+yystacksize-1<=yyssp) | |
YYDPRINTF ((stderr,"Entering state %d\n", yystate)) | |
if (yystate==YYFINAL) YYACCEPT | |
if (yypact_value_is_default(yyn)) goto yydefault | |
if (yychar==YYEMPTY) | |
if (yychar<=YYEOF) | |
YY_SYMBOL_PRINT ("Next token is", yytoken,&yylval,&yylloc) | |
if (yyn< 0||YYLAST< yyn||yycheck[yyn]!=yytoken) goto yydefault | |
if (yyn<=0) | |
if (yyerrstatus) yyerrstatus-- | |
YY_SYMBOL_PRINT ("Shifting", yytoken,&yylval,&yylloc) | |
if (yyn==0) goto yyerrlab | |
YY_REDUCE_PRINT (yyn) | |
switch (yyn) | |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn],&yyval,&yyloc) | |
YYPOPSTACK (yylen) | |
YY_STACK_PRINT (yyss, yyssp) | |
if (0<=yystate &&yystate<=YYLAST &&yycheck[yystate]==*yyssp) yystate | |
for (;;) | |
YY_IGNORE_MAYBE_UNINITIALIZED_END | YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp) |
yyexhaustedlab | YY_ ("memory exhausted")) |
yydestruct ("Cleanup: discarding lookahead", yytoken,&yylval, vp_parser) | |
while (yyssp!=yyss) | |
if (yyss!=yyssa) YYSTACK_FREE(yyss) | |
if (yymsg!=yymsgbuf) YYSTACK_FREE(yymsg) | |
return | YYID (yyresult) |
#define AND 313 |
Referenced by while().
#define BLOCK 264 |
Referenced by while().
#define blockstack_pop | ( | s | ) | _blockstack_pop(p_parser, &(s)) |
Referenced by switch().
#define blockstack_push | ( | s, | |
e | |||
) | _blockstack_push(&(s), e) |
Referenced by start_block().
#define BREAK 270 |
Referenced by while().
#define C_TYPE 311 |
Referenced by while().
#define CASE 299 |
Referenced by while().
#define check_binary_op | ( | result, | |
e1, | |||
op, | |||
e2 | |||
) | i_check_binary_op (result, e1, op, e2, p_parser) |
Referenced by switch().
#define check_compare_op | ( | result, | |
e1, | |||
op, | |||
e2 | |||
) | i_check_compare_op (result, e1, op, e2, p_parser) |
Referenced by switch().
#define check_unary_op | ( | result, | |
e1, | |||
op | |||
) | i_check_unary_op (result, e1, op, p_parser) |
Referenced by switch().
#define check_void_assign | ( | lhs, | |
rhs | |||
) | i_check_void_assign (lhs, rhs, p_parser) |
Referenced by switch().
#define CLOSEBRACKET 283 |
Referenced by while().
#define CONST 292 |
Referenced by while().
#define CONTINUE 269 |
Referenced by while().
#define DCQUOTED_BLOCK 280 |
Referenced by while().
#define DCSYMBOL 279 |
#define DEFAULT 300 |
Referenced by while().
#define DEFINE 265 |
Referenced by while().
#define DO 272 |
Referenced by while().
#define DO_DEBUG 0 |
Referenced by switch().
#define ELSE 320 |
Referenced by while().
#define EMPTY 260 |
Referenced by while().
#define END_OF_FILE 259 |
Referenced by parsefile(), while(), and yylex().
#define EQUALS 315 |
Referenced by while().
#define EXPORT 287 |
Referenced by while().
#define EXTERN 295 |
Referenced by while().
#define FULLNAME 293 |
#define GE 316 |
Referenced by while().
#define GLOBAL 290 |
Referenced by while().
#define I18N 267 |
Referenced by while().
#define IDENTIFIER 302 |
Referenced by while().
#define IF 271 |
Referenced by while().
#define IMPORT 286 |
Referenced by while().
#define INCLUDE 289 |
Referenced by while().
#define IS 276 |
Referenced by while().
#define ISNIL 277 |
#define LAST_TOKEN_COMMENT | ( | source_dollar | ) | attach_comment_after((&(source_dollar) - 1)->c, source_dollar.com) |
Referenced by switch().
#define LE 317 |
Referenced by while().
#define LEFT 319 |
Referenced by while().
#define LIST 261 |
Referenced by while().
#define LOOKUP 296 |
Referenced by while().
#define MAP 262 |
Referenced by while().
#define MAPEXPR 288 |
Referenced by while().
#define MODULE 285 |
Referenced by while().
#define NEQ 314 |
Referenced by while().
#define OR 312 |
Referenced by while().
#define QUOTED_BLOCK 281 |
Referenced by while().
#define QUOTED_EXPRESSION 282 |
Referenced by while().
#define REPEAT 274 |
Referenced by while().
#define RETURN 268 |
Referenced by while().
#define RIGHT 318 |
Referenced by while().
#define RULE_COMMENT | ( | source_dollar | ) | attach_comment((yyval).c , source_dollar.com) |
Referenced by switch().
#define scannerstack_empty | ( | ) | (p_parser->m_scanner_stack == 0) |
#define scannerstack_pop | ( | s | ) | _scannerstack_pop (&(s)) |
Referenced by yylex().
#define scannerstack_push | ( | s, | |
e | |||
) | _scannerstack_push(&(s), e) |
Referenced by switch().
#define SELECT 297 |
Referenced by while().
#define STATIC 294 |
Referenced by while().
#define STRING 303 |
Referenced by while().
#define STRUCT 263 |
Referenced by while().
#define SWITCH 298 |
Referenced by while().
#define switchstack_pop | ( | s | ) | _switchstack_pop(&(s)) |
Referenced by switch().
#define switchstack_push | ( | s, | |
e | |||
) | _switchstack_push(&(s), e) |
Referenced by switch().
#define SYM_NAMESPACE 301 |
Referenced by while().
#define SYMBOL 278 |
Referenced by while().
#define TEXTDOMAIN 291 |
Referenced by while().
#define TOKEN_COMMENT | ( | source_dollar | ) | attach_comment((&(source_dollar) + 1)->c , source_dollar.com) |
Referenced by switch().
#define TOKEN_COMMENT_TO | ( | source_dollar, | |
target_dollar | |||
) | attach_comment(target_dollar.c , source_dollar.com) |
Referenced by switch().
#define TYPEDEF 284 |
Referenced by while().
#define UMINUS 321 |
#define UNDEFINE 266 |
Referenced by while().
#define UNTIL 275 |
Referenced by while().
#define WHILE 273 |
Referenced by while().
#define YY_ | ( | Msgid | ) | Msgid |
Referenced by if(), and yysyntax_error().
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define YY_INITIAL_VALUE | ( | Value | ) | = Value |
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
#define YY_NULL 0 |
Referenced by yysyntax_error().
#define YY_REDUCE_PRINT | ( | Rule | ) |
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Referenced by for().
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
#define YY_YY_PARSER_HH_INCLUDED |
#define YYACCEPT goto yyacceptlab |
Referenced by switch().
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYBISON 1 |
#define YYBISON_VERSION "2.7" |
#define yyCantCast | ( | from, | |
to, | |||
lineno | |||
) | yyerror_cant_cast (p_parser, lineno, from, to) |
Referenced by switch().
#define YYCASE_ | ( | N, | |
S | |||
) |
Referenced by yysyntax_error().
#define yyCerror | ( | code, | |
type, | |||
lineno | |||
) | yyerror_with_code (p_parser, lineno, code, type) |
#define yyConstAssignError | ( | name, | |
lineno | |||
) | yyerror_assign_const (p_parser, lineno, name) |
Referenced by switch().
#define YYCOPY | ( | Dst, | |
Src, | |||
Count | |||
) |
#define YYCOPY_NEEDED 1 |
#define YYDEBUG 0 |
#define YYDPRINTF | ( | Args | ) |
Referenced by if().
#define YYEMPTY (-2) |
Referenced by if(), and yysyntax_error().
#define YYEOF 0 |
Referenced by if().
#define YYERRCODE 256 |
#define yyerrok (yyerrstatus = 0) |
#define yyerror | ( | locp, | |
text | |||
) | yyerror_with_lineinfo (p_parser, -1, text) |
Referenced by if().
#define YYERROR goto yyerrorlab |
#define YYERROR_VERBOSE 1 |
#define YYERROR_VERBOSE 1 |
#define YYFAIL goto yyerrlab |
#define yyFerror | ( | name, | |
lineno | |||
) | yyerror_with_file (p_parser, lineno, name) |
Referenced by switch().
#define YYFINAL 55 |
#define YYFREE free |
#define YYID | ( | N | ) | (N) |
#define YYINITDEPTH 1000 |
#define YYLAST 1346 |
Referenced by for(), and yysyntax_error().
#define yyLerror | ( | text, | |
lineno | |||
) | yyerror_with_lineinfo (p_parser, lineno, text) |
Referenced by switch().
#define YYMALLOC malloc |
#define YYMAXDEPTH 50000 |
Referenced by if().
#define YYMAXUTOK 321 |
#define YYNNTS 48 |
#define yyNoModule | ( | module, | |
lineno | |||
) | yyerror_no_module (p_parser, lineno, module) |
Referenced by switch().
#define YYNRULES 155 |
#define YYNSTATES 309 |
#define YYNTOKENS 90 |
Referenced by yysyntax_error().
#define YYPACT_NINF -245 |
#define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-245))) |
Referenced by for(), and yysyntax_error().
#define YYPULL 1 |
#define YYPURE 1 |
#define YYPUSH 0 |
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define YYSIZE_T unsigned int |
Referenced by if(), 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 if().
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
#define YYSTYPE yystype_type |
#define YYSYNTAX_ERROR |
Referenced by if().
#define YYTABLE_NINF -152 |
#define yytable_value_is_error | ( | Yytable_value | ) | YYID (0) |
Referenced by if(), and yysyntax_error().
#define yyTerror | ( | text, | |
lineno, | |||
tentry | |||
) | yyerror_with_tableentry (p_parser, lineno, text, tentry) |
Referenced by switch().
#define YYTERROR 1 |
Referenced by for(), and yysyntax_error().
#define YYTOKENTYPE |
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define yyTwarning | ( | tentry | ) | yywarning_with_tableentry (p_parser, 0, tentry) |
Referenced by switch().
#define yyTypeMismatch | ( | text, | |
expected, | |||
seen, | |||
lineno | |||
) | yyerror_type_mismatch (p_parser, lineno, text, expected, seen) |
Referenced by switch().
#define YYUNDEFTOK 2 |
#define YYUSE | ( | E | ) | ((void) (E)) |
#define yyVerror | ( | name, | |
lineno | |||
) | yyerror_with_name (p_parser, lineno, name) |
Referenced by switch().
#define yywarning | ( | text, | |
lineno | |||
) | yywarning_with_lineinfo (p_parser, lineno, text) |
Referenced by switch().
typedef short int yytype_int16 |
typedef short int yytype_int8 |
typedef unsigned short int yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum scan_states |
Enumerator | |
---|---|
SCAN_FILE |
a plain file |
SCAN_START_INCLUDE |
before the first token of an include file (see start_block()) |
SCAN_INCLUDE |
inside an include file |
enum yytokentype |
|
static |
References Parser::m_blockstack_depth, and stack_pop().
|
static |
References stack_push().
|
static |
References stack_pop().
|
static |
References stack_push().
|
static |
References stack_pop().
|
static |
References stack_push().
|
static |
References y2error.
|
static |
References y2error.
|
static |
References YaST::ee, SymbolTable::enter(), Type::Error, Scanner::localTable(), Parser::scanner(), YaST::ExecutionEnvironment::setLinenumber(), TableEntry::toString(), Type::Unspec, Type::Void, y2debug, YCode::ycSymbol, YCode::yeBuiltin, YCode::yeFunction, YCode::yeFunctionPointer, YCode::yeTerm, yyerror_type_mismatch(), yyerror_with_code(), and yyerror_with_lineinfo().
Referenced by switch().
for | ( | ;; | ) |
References YY_STACK_PRINT, YYABORT, yydestruct(), YYLAST, yyn, yypact_value_is_default, YYPOPSTACK, yyssp, yystate, and YYTERROR.
|
static |
References DECL_FLEX, Type::determineFlexType(), YaST::ee, StaticDeclaration::errorNoMatch(), StaticDeclaration::findDeclaration(), declaration::flags, Type::Function(), Parser::scanner(), YaST::ExecutionEnvironment::setLinenumber(), declaration::type, Type::Unspec, y2debug, and yyerror_with_lineinfo().
|
static |
References Type::Boolean, YaST::ee, YaST::ExecutionEnvironment::setLinenumber(), y2debug, and yyerror_type_mismatch().
References YCode::yeBracket, YCode::yeBuiltin, yyerror_with_lineinfo(), and yywarning_with_lineinfo().
if | ( | ! | yymsg | ) |
References YY_, yyerror, yymsg, yymsgbuf, yynerrs, YYSTACK_ALLOC, YYSTACK_FREE, and YYSYNTAX_ERROR.
Referenced by YEBuiltin::evaluate(), switch(), and yyerror_type_mismatch().
if | ( | yyss+yystacksize-1<= | yyssp | ) |
References YY_, YYABORT, YYDPRINTF, YYMAXDEPTH, YYSIZE_T, yyss, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yyvs, and yyalloc::yyvs_alloc.
if | ( | yypact_value_is_default(yyn) | ) |
if | ( | ) |
if | ( | yyn<= | 0 | ) |
References yyn, yyreduce, and yytable_value_is_error.
if | ( | yyerrstatus | = = 3 | ) |
References YYABORT, yydestruct(), YYEMPTY, and YYEOF.
if | ( | yyn | = =0 | ) |
if | ( | yyss! | = yyssa | ) |
if | ( | yymsg! | = yymsgbuf | ) |
|
static |
Referenced by switch().
pop element to stack
References y2debug.
Referenced by _blockstack_pop(), _scannerstack_pop(), and _switchstack_pop().
push element to stack
Referenced by _blockstack_push(), _scannerstack_push(), and _switchstack_push().
|
static |
begin of a block
type | declared return type |
References YBlock::b_file, blockstack_push, Scanner::filename(), blockstack_t::includeDepth, Parser::m_block_stack, Parser::m_blockstack_depth, Parser::m_current_block, Parser::m_scanner_stack, SCAN_INCLUDE, SCAN_START_INCLUDE, Parser::scanner(), blockstack_t::self, scannerstack_t::state, blockstack_t::textdomain, blockstack_t::theBlock, and y2debug.
Referenced by switch().
switch | ( | yytype | ) |
switch | ( | yyn | ) |
References StaticDeclaration::active_predefined(), Type::Any, attach_parameter(), YBlock::attachStatement(), YBlock::b_module, YBlock::b_using, blockstack_at_toplevel, blockstack_pop, Type::Boolean, builtinTable, SymbolEntry::c_builtin, YECompare::C_EQ, SymbolEntry::c_filename, SymbolEntry::c_function, YECompare::C_GE, SymbolEntry::c_global, YECompare::C_GT, YECompare::C_LE, YECompare::C_LT, SymbolEntry::c_module, YECompare::C_NEQ, SymbolEntry::c_predefined, SymbolEntry::c_reference, SymbolEntry::c_self, SymbolEntry::c_typedef, SymbolEntry::c_unspec, SymbolEntry::c_variable, check_binary_op, check_compare_op, check_unary_op, check_void_assign, SymbolTable::countUsage(), DECL_DEPRECATED, DECL_LOOP, DECL_SYMBOL, declared_return_type, DO_DEBUG, do_while_count, Scanner::doStrdup(), YaST::ee, FILE_NOW, scannerstack_t::filename, SymbolTable::find(), YCPPathSearch::findInclude(), declaration::flags, Type::Float, found_return_type, Type::Function(), Scanner::globalTable(), if(), in_switch, blockstack_t::includeDepth, inside_module, Type::Integer, YCPElement::isNull(), TableEntry::isOverloaded(), LAST_TOKEN_COMMENT, formalparamstack::line, LINE_NOW, scannerstack_t::linenumber, Type::List, Type::ListUnspec, Type::Locale, Scanner::localTable(), Type::Map, Type::MapUnspec, formalparamstack::name, formalparamstack::next, TableEntry::next_overloaded(), Type::Nil, scannerstack_t::old_textdomain, p_parser, parsing_comments(), TableEntry::remove(), repeat_count, RULE_COMMENT, SCAN_INCLUDE, SCAN_START_INCLUDE, scannerstack_t::scanner, scannerstack_push, blockstack_t::self, TableEntry::sentry(), YaST::ExecutionEnvironment::setFilename(), YaST::ExecutionEnvironment::setLinenumber(), start_block(), scannerstack_t::state, switchstack_t::statement, Type::String, switchstack_pop, switchstack_push, Type::Symbol, Y2Namespace::table(), declaration::tentry, Type::Term, blockstack_t::theBlock, TOKEN_COMMENT, TOKEN_COMMENT_TO, SymbolTable::toString(), formalparamstack::type, YEVariable::type(), declaration::type, YECall::type(), Type::Unspec, Type::Void, while(), y2debug, y2internal, y2warning, YCode::ycBoolean, YCode::ycFloat, YCode::ycInteger, YCode::ycList, YCode::ycMap, YCode::ycString, YCode::ycVoid, YCode::yeBuiltin, YCode::yeFunction, YCode::yeFunctionPointer, YCode::yeTerm, YCode::ysFunction, YCode::ysVariable, YYABORT, YYACCEPT, yyCantCast, yyConstAssignError, yyFerror, yyLerror, yyNoModule, yyTerror, yyTwarning, yyTypeMismatch, yyval, yyVerror, and yywarning.
while | ( | *++=*++yys! | = '\0' | ) |
Referenced by switch().
while | ( | yyssp! | = yyss | ) |
References yydestruct(), and YYPOPSTACK.
yyexhaustedlab YY_ | ( | "memory exhausted" | ) |
YYSTYPE yylval YY_INITIAL_VALUE | ( | yyval_default | ) |
YY_REDUCE_PRINT | ( | yyn | ) |
YY_SYMBOL_PRINT | ( | "Next token is" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | "Shifting" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | ) |
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_SYMBOL_PRINT | ( | "Shifting" | , |
yystos | [yyn], | ||
yyvsp | , | ||
yylsp | |||
) |
YYDPRINTF | ( | (stderr,"Starting parse\n") | ) |
YYDPRINTF | ( | (stderr,"Entering state %d\n", yystate) | ) |
|
static |
References Scanner::logError(), Parser::m_lineno, Parser::m_parser_errors, and Parser::scanner().
|
static |
References Scanner::logError(), Parser::m_parser_errors, and Parser::scanner().
|
static |
References Scanner::logError(), Parser::m_parser_errors, and Parser::scanner().
|
static |
References if(), Scanner::logError(), Parser::m_lineno, Parser::m_parser_errors, and Parser::scanner().
Referenced by attach_parameter(), and i_check_compare_op().
|
static |
References Scanner::logError(), Parser::m_lineno, Parser::m_parser_errors, and Parser::scanner().
Referenced by attach_parameter().
|
static |
References Scanner::logError(), Parser::m_lineno, Parser::m_parser_errors, and Parser::scanner().
|
static |
References Scanner::logError(), Parser::m_lineno, Parser::m_parser_errors, and Parser::scanner().
Referenced by attach_parameter(), i_check_binary_op(), i_check_unary_op(), i_check_void_assign(), and yylex().
|
static |
References Scanner::logError(), Parser::m_lineno, Parser::m_parser_errors, and Parser::scanner().
|
static |
return YYID | ( | yyresult | ) |
int yylex | ( | YYSTYPE * | lvalp_void, |
void * | void_pr | ||
) |
References tokenValue::bval, C_BOOLEAN, C_BYTEBLOCK, C_FLOAT, C_INTEGER, C_PATH, C_SYMBOL, C_VOID, Scanner::closeInput(), Scanner::commentBefore(), tokenValue::cval, END_OF_FILE, scannerstack_t::filename, tokenValue::fval, tokenValue::ival, Scanner::lineNumber(), scannerstack_t::linenumber, Parser::m_block_stack, Parser::m_current_block, Parser::m_lineno, Parser::m_scanner_stack, scannerstack_t::old_textdomain, tokenValue::pval, Scanner::scannedType(), Scanner::scannedValue(), Parser::scanner(), scannerstack_t::scanner, SCANNER_ERROR, scannerstack_pop, Parser::setScanner(), blockstack_t::textdomain, y2debug, YCode::ycBoolean, YCode::ycByteblock, YCode::ycFloat, YCode::ycInteger, YCode::ycPath, YCode::ycSymbol, YCode::ycVoid, tokenValue::yval, yyerror_with_lineinfo(), and Scanner::yylex().
int yyparse | ( | ) |
int yyparse | ( | vp_parser | ) |
YYPOPSTACK | ( | yylen | ) |
|
static |
Referenced by yytnamerr().
|
static |
Referenced by yysyntax_error(), and yytnamerr().
|
static |
References YY_, YY_NULL, YYCASE_, YYEMPTY, YYLAST, yymsg, yyn, YYNTOKENS, yypact_value_is_default, YYSIZE_T, yyssp, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable_value_is_error, YYTERROR, yytnamerr(), and yytoken.
|
static |
References yyn, YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
YYUSE | ( | vp_parser | ) |
|
static |
References Scanner::logWarning(), Parser::m_lineno, and Parser::scanner().
Referenced by i_check_void_assign().
|
static |
yynewstate __pad0__ |
yyexhaustedlab __pad10__ |
yyreturn __pad11__ |
yysetstate __pad1__ |
yybackup __pad2__ |
yydefault __pad3__ |
yyreduce __pad4__ |
yyerrlab __pad5__ |
yyerrorlab __pad6__ |
yyerrlab1 __pad7__ |
yyacceptlab __pad8__ |
yyabortlab __pad9__ |
|
static |
set by function declaration in order to predefine a definitions block return type
Referenced by switch().
|
static |
Referenced by switch().
else |
|
static |
set when a return statement is encountered
Referenced by switch().
|
static |
Referenced by switch().
|
static |
Referenced by switch().
|
static |
Referenced by switch().
StaticDeclaration static_declarations |
Parser* vp_parser |
goto yybackup |
yychar = YYEMPTY |
|
static |
return yyd |
|
static |
|
static |
goto yyerrlab1 |
yyerrstatus = 0 |
int yylen = 0 |
char* yymsg = yymsgbuf |
Referenced by if(), and yysyntax_error().
char yymsgbuf[128] |
Referenced by if().
yyn = yytoken |
Referenced by for(), if(), yysyntax_error(), and yytnamerr().
yynerrs = 0 |
Referenced by if().
goto yynewstate |
|
static |
|
static |
|
static |
|
static |
goto yyreduce |
Referenced by if().
yyresult = 2 |
goto yyreturn |
const char* yys = yysrc |
goto yysetstate |
const char* yysrc |
yytype_int16* yyss |
Referenced by if().
yytype_int16 yyssa[YYINITDEPTH] |
Referenced by for(), and yysyntax_error().
yystacksize = YYINITDEPTH |
|
static |
|
static |
|
static |
int yytoken = 0 |
Referenced by yysyntax_error().
|
static |
int yytype |
YYSTYPE* yyvaluep |
YYSTYPE yyvsa[YYINITDEPTH] |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN * yyvsp = yyvs = yyvsa |