#line 1 "arrowxpr.m"
struct _PRIVATE { struct _PRIVATE *isa; };
typedef struct _PRIVATE *id;
struct _SHARED {
  id isa;
  id clsSuper;
  char *clsName;
  char *clsTypes;
  short clsSizInstance;
  short clsSizDict;
  struct _SLT *clsDispTable;
  long clsStatus;
  struct modDescriptor *clsMod;
  unsigned clsVersion;
  id clsCats;
  id *clsGlbl;
};
extern id  (* _imp(id,char*))();
extern id  (* _impSuper(id,char*))();
extern struct modDescriptor  *_OBJCBIND_arrowxpr(void);
static char **selTransTbl;
struct _SLT {char *_cmd;id (*_imp)();};
struct modDescriptor {
  char *modName;
  char *modVersion;
  long modStatus;
  char *modMinSel;
  char *modMaxSel;
  id *modClsLst;
  short modSelRef;
  char **modSelTbl;
  struct methodDescriptor *modMapTbl;
};
extern struct modDescriptor arrowxpr_modDesc;

#line 1 "../../util//stdarg.h"
#include <stdarg.h>

#line 1 "../../util//stdlib.h"
#include <stdlib.h>

#line 1 "../../util//assert.h"
#include <assert.h>

#line 1 "../../util//string.h"
#include <string.h>

#line 1 "../../util//stdio.h"
#include <stdio.h>

#line 1 "../../util//stdio.h"
#include <stdio.h>

#line 1 "../../util//stddef.h"
#include <stddef.h>

#line 53 "../../include/objcrt/objcrt.h"
typedef char*SEL;
typedef char*STR;
typedef char BOOL;
typedef FILE*IOD;
typedef id SHR;
#line 62 "../../include/objcrt/objcrt.h"
typedef id(*IMP)();


typedef void(*ARGIMP)(id,SEL,void*);
#line 85 "../../include/objcrt/objcrt.h"
extern BOOL msgFlag;
extern FILE*msgIOD;
extern FILE*dbgIOD;
extern BOOL allocFlag;
extern BOOL dbgFlag;
extern BOOL noCacheFlag;
extern BOOL noNilRcvr;
#line 98 "../../include/objcrt/objcrt.h"
SEL selUid(STR);
STR selName(SEL);
void dbg(char*fmt,...);
void prnstack(FILE*file);
void loadobjc(void*modPtr);
void unloadobjc(void*modPtr);
#line 107 "../../include/objcrt/objcrt.h"
IMP fwdimp(id,SEL,IMP);
IMP fwdimpSuper(id,SEL,IMP);
void fwdmsg(id,SEL,void*,ARGIMP);
id selptrfwd(id,SEL,id,id,id,id);


id idincref(id obj);
id idassign(id*lhs,id rhs);
id iddecref(id obj);

extern id(*_fileIn)(FILE*);
extern BOOL(*_fileOut)(FILE*,id);
extern BOOL(*_storeOn)(STR,id);
extern id(*_readFrom)(STR);
void setfilein(id(*f)(FILE*));
void setfileout(BOOL(*f)(FILE*,id));

extern id(*_showOn)(id,unsigned);

void*OC_Malloc(size_t);
void*OC_MallocAtomic(size_t);
void*OC_Calloc(size_t);
void*OC_Realloc(void*,size_t);
void*OC_Free(void*data);
#line 1 "../../util//string.h"
#include <string.h>

#line 32 "../../include/objpak/ocstring.h"
typedef struct objstr
{
int count;
int capacity;
char*ptr;
}*
objstr_t;
#line 22 "node.h"
extern FILE*gfile;
extern int inlineno;
extern id infilename;
extern int outlineno;
extern char*outfilename;
extern int exitstatus;
extern id loadedmodules;

void gc(char c);
void gextc(void);
void gcom(char*cm);
void gvarlist(id c,char*sp,char*iz);
void gcommalist(id c);
void gs(char*str);
void gf(char*fmt,...);
void gl(int no,char*fn);
void g_otbvars(void);
void gstderr(void);
void gnormal(void);
char*browsepath(char*filename);

void warn(char*fmt,...);
void warnat(id sym,char*fmt,...);
void fatal(char*fmt,...);
void fatalat(id sym,char*fmt,...);
#line 22 "expr.h"
extern id e_nil;
extern id e_self;
extern id e_cmd;
extern id e_super;
extern id e_aFiler;
extern id e_ft_id;
#line 22 "symbol.h"
extern id s_void;
extern id s_char;
extern id s_bool;
extern id s_int;
extern id s_uns;
extern id s_long;
extern id s_double;
extern id s_str;
extern id s_sel;
extern id s_newblock;
extern id s_main;
extern id s_objcmain;
extern id s_id;
extern id s_nil;
extern id s_self;
extern id s_cmd;
extern id s_super;
extern id s_type;
extern id s_aFiler;
extern id s_fileIn;
extern id s_fileOut;
extern id s_fileInIdsFrom;
extern id s_fileOutIdsFor;
extern id s_returnval;
extern id s_returnflag;
extern id s_increfs;
extern id s_decrefs;
extern id s_idincref;
extern id s_iddecref;

BOOL istypeword(id sym);
BOOL isbuiltinfun(id sym);
int pragmatoggle(char*s);
void definebuiltintype(char*s);
void definebuiltinfun(char*s);
void definebuiltinvar(char*s);
#line 22 "type.h"
extern id t_unknown;
extern id t_void;
extern id t_char;
extern id t_bool;
extern id t_int;
extern id t_long;
extern id t_uns;
extern id t_double;
extern id t_str;
extern id t_sel;
extern id t_id;
#line 22 "arrowxpr.h"
struct ArrowExpr_PRIVATE {

#line 42 "../../include/objcrt/Object.h"
id isa;
#line 46 "../../include/objcrt/Object.h"
unsigned short attr;
unsigned short objID;
#line 31 "expr.h"
id type;
#line 24 "binxpr.h"
STR op;
id lhs,rhs;};

#line 22 "arrowxpr.h"
extern id  ArrowExpr;

#line 22 "arrowxpr.h"
extern struct _SHARED _ArrowExpr;
extern struct _SHARED __ArrowExpr;


#line 41 "arrowxpr.m"
static id c_ArrowExpr_new(struct ArrowExpr_PRIVATE *self,SEL _cmd){
id objcT0,objcT1;

#line 42 "arrowxpr.m"
return(objcT0=(objcT1=__ArrowExpr.clsSuper,(*_impSuper(objcT1,selTransTbl[0]))((id)self,selTransTbl[0])),(*(id(*)(id,SEL,STR))_imp(objcT0,selTransTbl[1]))(objcT0,selTransTbl[1],"->"));
}

static id i_ArrowExpr_typesynth(struct ArrowExpr_PRIVATE *self,SEL _cmd)
{
id objcT2,objcT3,objcT4,objcT5;

#line 47 "arrowxpr.m"
(void)0;self->
type=(objcT2=(objcT3=self->lhs,(*_imp(objcT3,selTransTbl[2]))(objcT3,selTransTbl[2])),(*_imp(objcT2,selTransTbl[3]))(objcT2,selTransTbl[3]));self->
type=(objcT4=self->type,(*_imp(objcT4,selTransTbl[4]))(objcT4,selTransTbl[4],self->rhs));
if( !self->type)
fatalat(self->rhs,"structure has no field '%s'",(objcT5=self->rhs,(*(STR(*)(id,SEL))_imp(objcT5,selTransTbl[5]))(objcT5,selTransTbl[5])));
return(id)self;
}
extern id  Object;
extern struct _SHARED _Object;
extern struct _SHARED __Object;
extern id  BinaryExpr;
extern struct _SHARED _BinaryExpr;
extern struct _SHARED __BinaryExpr;
static struct _SLT _ArrowExpr_clsDispatchTbl[] ={
{"new",(id (*)())c_ArrowExpr_new},
{(char*)0,(id (*)())0}
};
static struct _SLT _ArrowExpr_nstDispatchTbl[] ={
{"typesynth",(id (*)())i_ArrowExpr_typesynth},
{(char*)0,(id (*)())0}
};
id ArrowExpr = (id)&_ArrowExpr;
id  *OBJCCLASS_ArrowExpr(void) { return &ArrowExpr; }
struct _SHARED  _ArrowExpr = {
  (id)&__ArrowExpr,
  (id)&_BinaryExpr,
  "ArrowExpr",
  0,
  sizeof(struct ArrowExpr_PRIVATE),
  1,
  _ArrowExpr_nstDispatchTbl,
  41,
  &arrowxpr_modDesc,
  0,
  (id)0,
  &ArrowExpr,
};
id  OBJCCFUNC_ArrowExpr(void) { return (id)&_ArrowExpr; }
id  OBJCCSUPER_ArrowExpr(void) { return _ArrowExpr.clsSuper; }
struct _SHARED __ArrowExpr = {
  (id)&__Object,
  (id)&__BinaryExpr,
  "ArrowExpr",
  0,
  sizeof(struct _SHARED),
  1,
  _ArrowExpr_clsDispatchTbl,
  34,
  &arrowxpr_modDesc,
  0,
  (id)0,
  0,
};
id  OBJCMFUNC_ArrowExpr(void) { return (id)&__ArrowExpr; }
id  OBJCMSUPER_ArrowExpr(void) { return __ArrowExpr.clsSuper; }
static char *_selTransTbl[] ={
"new",
"op:",
"type",
"star",
"dot:",
"str",
0
};
struct modDescriptor arrowxpr_modDesc = {
  "arrowxpr",
  "objc3.1.26",
  0L,
  0,
  0,
  &ArrowExpr,
  6,
  _selTransTbl,
  0
};
struct modDescriptor *_OBJCBIND_arrowxpr(void)
{
  selTransTbl = _selTransTbl;
  return &arrowxpr_modDesc;
}
int _OBJCPOSTLINK_arrowxpr = 1;


