annotate src/sdl/exprNode.h @ 607:743b7b68e74e

added video without buttons.
author Robert McIntyre <rlm@mit.edu>
date Mon, 03 Sep 2012 08:14:46 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 // -*- C++ -*-
rlm@1 2 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
rlm@1 3 // Copyright (C) 1999-2003 Forgotten
rlm@1 4 // Copyright (C) 2004 Forgotten and the VBA development team
rlm@1 5
rlm@1 6 // This program is free software; you can redistribute it and/or modify
rlm@1 7 // it under the terms of the GNU General Public License as published by
rlm@1 8 // the Free Software Foundation; either version 2, or(at your option)
rlm@1 9 // any later version.
rlm@1 10 //
rlm@1 11 // This program is distributed in the hope that it will be useful,
rlm@1 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
rlm@1 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rlm@1 14 // GNU General Public License for more details.
rlm@1 15 //
rlm@1 16 // You should have received a copy of the GNU General Public License
rlm@1 17 // along with this program; if not, write to the Free Software Foundation,
rlm@1 18 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
rlm@1 19
rlm@1 20 struct Node {
rlm@1 21 Type *type;
rlm@1 22 u32 location;
rlm@1 23 u32 objLocation;
rlm@1 24 LocationType locType;
rlm@1 25 int value;
rlm@1 26 int index;
rlm@1 27 char *name;
rlm@1 28 Node *expression;
rlm@1 29 Member *member;
rlm@1 30 void (*print)(Node *);
rlm@1 31 bool (*resolve)(Node *, Function *f, CompileUnit *u);
rlm@1 32 };
rlm@1 33
rlm@1 34 extern void exprNodeCleanUp();
rlm@1 35
rlm@1 36 extern Node *exprNodeIdentifier();
rlm@1 37 extern void exprNodeIdentifierPrint(Node *);
rlm@1 38 extern bool exprNodeIdentifierResolve(Node *, Function *, CompileUnit *);
rlm@1 39
rlm@1 40 extern Node *exprNodeNumber();
rlm@1 41 extern void exprNodeNumberPrint(Node *);
rlm@1 42 extern bool exprNodeNumberResolve(Node *, Function *, CompileUnit *);
rlm@1 43
rlm@1 44 extern Node *exprNodeStar(Node *);
rlm@1 45 extern void exprNodeStarPrint(Node *);
rlm@1 46 extern bool exprNodeStarResolve(Node *, Function *, CompileUnit *);
rlm@1 47
rlm@1 48 extern Node *exprNodeDot(Node *, Node *);
rlm@1 49 extern void exprNodeDotPrint(Node *);
rlm@1 50 extern bool exprNodeDotResolve(Node *, Function *, CompileUnit *);
rlm@1 51
rlm@1 52 extern Node *exprNodeArrow(Node *, Node *);
rlm@1 53 extern void exprNodeArrowPrint(Node *);
rlm@1 54 extern bool exprNodeArrowResolve(Node *, Function *, CompileUnit *);
rlm@1 55
rlm@1 56 extern Node *exprNodeAddr(Node *);
rlm@1 57 extern void exprNodeAddrPrint(Node *);
rlm@1 58 extern bool exprNodeAddrResolve(Node *, Function *, CompileUnit *);
rlm@1 59
rlm@1 60 extern Node *exprNodeSizeof(Node *);
rlm@1 61 extern void exprNodeSizeofPrint(Node *);
rlm@1 62 extern bool exprNodeSizeofResolve(Node *, Function *, CompileUnit *);
rlm@1 63
rlm@1 64 extern Node *exprNodeArray(Node *, Node *);
rlm@1 65 extern void exprNodeArrayPrint(Node *);
rlm@1 66 extern bool exprNodeArrayResolve(Node *, Function *, CompileUnit *);
rlm@1 67
rlm@1 68 #define YYSTYPE struct Node *