/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>

#include <stdio.h>
typedef struct tparser243205 tparser243205;
typedef struct tlexer214190 tlexer214190;
typedef struct tbaselexer212024 tbaselexer212024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tllstream210204 tllstream210204;
typedef struct tlineinfo194539 tlineinfo194539;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct ttoken214186 ttoken214186;
typedef struct tident199021 tident199021;
typedef struct tnode224816 tnode224816;
typedef struct ttype224852 ttype224852;
typedef struct tsym224846 tsym224846;
typedef struct tnodeseq224810 tnodeseq224810;
typedef struct tcell44935 tcell44935;
typedef struct tcellseq44951 tcellseq44951;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44947 tcellset44947;
typedef struct tpagedesc44943 tpagedesc44943;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct tidobj199015 tidobj199015;
typedef struct ttypeseq224848 ttypeseq224848;
typedef struct tloc224830 tloc224830;
typedef struct trope176009 trope176009;
typedef struct tscope224840 tscope224840;
typedef struct TY224947 TY224947;
typedef struct tinstantiation224836 tinstantiation224836;
typedef struct tstrtable224820 tstrtable224820;
typedef struct tsymseq224818 tsymseq224818;
typedef struct tlib224834 tlib224834;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY224936 TY224936;
typedef struct tlistentry126022 tlistentry126022;
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tbaselexer212024  {
  TNimObject Sup;
NI Bufpos;
NCSTRING Buf;
NI Buflen;
tllstream210204* Stream;
NI Linenumber;
NI Sentinel;
NI Linestart;
};
struct  tlineinfo194539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (tlineinfo194539 info, NU16 msg, NimStringDesc* arg, void* ClEnv);
void* ClEnv;
} terrorhandler214188;
struct  tlexer214190  {
  tbaselexer212024 Sup;
NI32 Fileidx;
NI Indentahead;
NI Currlineindent;
NIM_BOOL Strongspaces;
terrorhandler214188 Errorhandler;
};
struct  ttoken214186  {
NU8 Toktype;
NI Indent;
tident199021* Ident;
NI64 Inumber;
NF Fnumber;
NU8 Base;
NI8 Strongspacea;
NI8 Strongspaceb;
NimStringDesc* Literal;
NI Line;
NI Col;
};
struct  tparser243205  {
NI Currind;
NIM_BOOL Firsttok;
NIM_BOOL Strongspaces;
tlexer214190 Lex;
ttoken214186 Tok;
NI Inpragma;
NI Insemistmtlist;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tnode224816  {
ttype224852* Typ;
tlineinfo194539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym224846* Sym;
} S4;
struct {tident199021* Ident;
} S5;
struct {tnodeseq224810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tcell44935  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44951  {
NI Len;
NI Cap;
tcell44935** D;
};
struct  tcellset44947  {
NI Counter;
NI Max;
tpagedesc44943* Head;
tpagedesc44943** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44951 Zct;
tcellseq44951 Decstack;
tcellset44947 Cycleroots;
tcellseq44951 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
typedef NimStringDesc* TY214175[118];
typedef NU8 TY243923[15];
struct  tidobj199015  {
  TNimObject Sup;
NI Id;
};
struct  tident199021  {
  tidobj199015 Sup;
NimStringDesc* S;
tident199021* Next;
NI H;
};
typedef tnode224816* TY245892[1];
typedef N_NIMCALL_PTR(tnode224816*, tdefparser246797) (tparser243205* p);
struct  tllstream210204  {
  TNimObject Sup;
NU8 Kind;
FILE* F;
NimStringDesc* S;
NI Rd;
NI Wr;
NI Lineoffset;
};
struct  tloc224830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype224852* T;
trope176009* R;
trope176009* Heaproot;
};
struct  ttype224852  {
  tidobj199015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq224848* Sons;
tnode224816* N;
tsym224846* Owner;
tsym224846* Sym;
tsym224846* Destructor;
tsym224846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc224830 Loc;
};
struct  tstrtable224820  {
NI Counter;
tsymseq224818* Data;
};
struct  tsym224846  {
  tidobj199015 Sup;
NU8 Kind;
union {
struct {ttypeseq224848* Typeinstcache;
tscope224840* Typscope;
} S1;
struct {TY224947* Procinstcache;
tscope224840* Scope;
} S2;
struct {TY224947* Usedgenerics;
tstrtable224820 Tab;
} S3;
struct {tsym224846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype224852* Typ;
tident199021* Name;
tlineinfo194539 Info;
tsym224846* Owner;
NU32 Flags;
tnode224816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc224830 Loc;
tlib224834* Annex;
tnode224816* Constraint;
};
typedef NI TY26420[16];
struct  tpagedesc44943  {
tpagedesc44943* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  trope176009  {
  TNimObject Sup;
trope176009* Left;
trope176009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tscope224840  {
NI Depthlevel;
tstrtable224820 Symbols;
tnodeseq224810* Usingsyms;
tscope224840* Parent;
};
struct  tinstantiation224836  {
tsym224846* Sym;
ttypeseq224848* Concretetypes;
TY224936* Usedby;
};
struct  tlistentry126022  {
  TNimObject Sup;
tlistentry126022* Prev;
tlistentry126022* Next;
};
struct  tlib224834  {
  tlistentry126022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope176009* Name;
tnode224816* Path;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct tnodeseq224810 {
  TGenericSeq Sup;
  tnode224816* data[SEQ_DECL_SIZE];
};
struct ttypeseq224848 {
  TGenericSeq Sup;
  ttype224852* data[SEQ_DECL_SIZE];
};
struct TY224947 {
  TGenericSeq Sup;
  tinstantiation224836* data[SEQ_DECL_SIZE];
};
struct tsymseq224818 {
  TGenericSeq Sup;
  tsym224846* data[SEQ_DECL_SIZE];
};
struct TY224936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, openparser_243402)(tparser243205* p, NI32 fileidx, tllstream210204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(void, inittoken_214482)(ttoken214186* l);
N_NIMCALL(void, openlexer_214229)(tlexer214190* lex, NI32 fileidx, tllstream210204* inputstream);
N_NIMCALL(void, gettok_243243)(tparser243205* p);
N_NIMCALL(void, rawgettok_214238)(tlexer214190* l, ttoken214186* tok);
N_NIMCALL(NI32, fileinfoidx_194747)(NimStringDesc* filename);
N_NIMCALL(tnode224816*, newnodep_243266)(NU8 kind, tparser243205* p);
N_NIMCALL(tnode224816*, newnodei_225138)(NU8 kind, tlineinfo194539 info);
N_NIMCALL(tlineinfo194539, parlineinfo_243316)(tparser243205* p);
static N_INLINE(tlineinfo194539, getlineinfo_214247)(tlexer214190* l, ttoken214186* tok);
N_NIMCALL(tlineinfo194539, newlineinfo_195129)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(tnode224816*, complexorsimplestmt_244605)(tparser243205* p);
N_NIMCALL(tnode224816*, parseiforwhen_246376)(tparser243205* p, NU8 kind);
N_NIMCALL(void, optind_243344)(tparser243205* p, tnode224816* n);
N_NIMCALL(void, skipcomment_243258)(tparser243205* p, tnode224816* node);
N_NIMCALL(void, rawskipcomment_243497)(tparser243205* p, tnode224816* node);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44935*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44935* c);
N_NOINLINE(void, addzct_48617)(tcellseq44951* s, tcell44935* c);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, parmessage_243250)(tparser243205* p, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, lexmessage_214289)(tlexer214190* l, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, skipind_243330)(tparser243205* p);
N_NIMCALL(void, addson_225287)(tnode224816* father, tnode224816* son);
N_NIMCALL(tnode224816*, parseexpr_243790)(tparser243205* p);
N_NIMCALL(tnode224816*, parseifexpr_245101)(tparser243205* p, NU8 kind);
N_NIMCALL(void, colcom_244001)(tparser243205* p, tnode224816* n);
N_NIMCALL(void, eat_243322)(tparser243205* p, NU8 toktype);
N_NIMCALL(tnode224816*, parsecase_243383)(tparser243205* p);
N_NIMCALL(void, exprlist_244160)(tparser243205* p, NU8 endtok, tnode224816* result);
N_NIMCALL(tnode224816*, parsestmt_243797)(tparser243205* p);
N_NIMCALL(void, parmessage_243452)(tparser243205* p, NU16 msg, ttoken214186* tok);
N_NIMCALL(NimStringDesc*, prettytok_214434)(ttoken214186* tok);
N_NIMCALL(tnode224816*, simplestmt_247319)(tparser243205* p);
N_NIMCALL(tnode224816*, parsereturnorraise_246355)(tparser243205* p, NU8 kind);
N_NIMCALL(NIM_BOOL, isexprstart_245619)(tparser243205* p);
N_NIMCALL(tnode224816*, parsestmtpragma_247297)(tparser243205* p);
N_NIMCALL(tnode224816*, parsepragma_245131)(tparser243205* p);
N_NIMCALL(tnode224816*, exprcoloneqexpr_244148)(tparser243205* p);
N_NIMCALL(tnode224816*, colonorequals_244118)(tparser243205* p, tnode224816* a);
N_NIMCALL(void, optpar_243337)(tparser243205* p);
N_NIMCALL(void, add_225498)(tnode224816* father, tnode224816* son);
N_NIMCALL(tnode224816*, parseimport_246207)(tparser243205* p, NU8 kind);
N_NIMCALL(tnode224816*, parsemodulename_246120)(tparser243205* p, NU8 kind);
N_NIMCALL(tnode224816*, parsefromstmt_246318)(tparser243205* p);
N_NIMCALL(tnode224816*, parseincludestmt_246281)(tparser243205* p);
N_NIMCALL(tnode224816*, newcommentstmt_246785)(tparser243205* p);
N_NIMCALL(tnode224816*, parseexprstmt_246028)(tparser243205* p);
N_NIMCALL(tnode224816*, simpleexpr_244612)(tparser243205* p, NU8 mode);
N_NIMCALL(tnode224816*, simpleexpraux_245022)(tparser243205* p, NI limit, NU8 mode);
N_NIMCALL(tnode224816*, primary_245014)(tparser243205* p, NU8 mode);
N_NIMCALL(NIM_BOOL, isoperator_243237)(ttoken214186* tok);
static N_INLINE(NIM_BOOL, issigillike_243827)(ttoken214186* tok);
N_NIMCALL(tnode224816*, newidentnodep_243297)(tident199021* ident, tparser243205* p);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(tnode224816*, primarysuffix_244873)(tparser243205* p, tnode224816* r, NI baseindent);
N_NIMCALL(tnode224816*, namedparams_244850)(tparser243205* p, tnode224816* callee, NU8 kind, NU8 endtok);
N_NIMCALL(void, exprcoloneqexprlistaux_244240)(tparser243205* p, NU8 endtok, tnode224816* result);
static N_INLINE(NI, len_225364)(tnode224816* n);
N_NIMCALL(void, parsedoblocks_243811)(tparser243205* p, tnode224816* call);
N_NIMCALL(tnode224816*, parsedoblock_245529)(tparser243205* p);
N_NIMCALL(tnode224816*, parseparamlist_243819)(tparser243205* p, NIM_BOOL retcolon);
N_NIMCALL(tnode224816*, parseidentcolonequals_245262)(tparser243205* p, NU8 flags);
N_NIMCALL(tnode224816*, identwithpragma_245232)(tparser243205* p);
N_NIMCALL(tnode224816*, identvis_245211)(tparser243205* p);
N_NIMCALL(tnode224816*, parsesymbol_243367)(tparser243205* p, NIM_BOOL allownil);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, toktostr_214271)(ttoken214186* tok);
N_NIMCALL(tident199021*, getident_199472)(NimStringDesc* identifier);
N_NIMCALL(tnode224816*, parsetypedesc_243804)(tparser243205* p);
N_NIMCALL(NIM_BOOL, identeq_199493)(tident199021* id, NimStringDesc* name);
N_NIMCALL(tnode224816*, optpragmas_245507)(tparser243205* p);
N_NIMCALL(tnode224816*, newprocnode_227432)(NU8 kind, tlineinfo194539 info, tnode224816* body, tnode224816* params, tnode224816* name, tnode224816* pattern, tnode224816* genericparams, tnode224816* pragmas, tnode224816* exceptions);
N_NIMCALL(tnode224816*, dotexpr_244207)(tparser243205* p, tnode224816* a);
N_NIMCALL(tnode224816*, parsegstrlit_244584)(tparser243205* p, tnode224816* a);
N_NIMCALL(tnode224816*, newstrnodep_243289)(NU8 kind, NimStringDesc* strval, tparser243205* p);
N_NIMCALL(tnode224816*, parsetypedesckaux_245667)(tparser243205* p, NU8 kind, NU8 mode);
N_NIMCALL(void, parsesymbollist_245629)(tparser243205* p, tnode224816* result, NIM_BOOL allownil);
N_NIMCALL(tnode224816*, parsetuple_245354)(tparser243205* p, NIM_BOOL indentallowed);
N_NIMCALL(tnode224816*, parseprocexpr_245579)(tparser243205* p, NIM_BOOL isexpr);
N_NIMCALL(tnode224816*, parseenum_245725)(tparser243205* p);
N_NIMCALL(tnode224816*, parseobject_245732)(tparser243205* p);
N_NIMCALL(NIM_BOOL, validind_246724)(tparser243205* p);
N_NIMCALL(tnode224816*, parseobjectpart_246922)(tparser243205* p);
N_NIMCALL(tnode224816*, parseobjectwhen_246929)(tparser243205* p);
N_NIMCALL(tnode224816*, parseobjectcase_246967)(tparser243205* p);
N_NIMCALL(void, gettoknoind_243579)(tparser243205* p);
N_NIMCALL(tnode224816*, parsetypeclass_245739)(tparser243205* p);
N_NIMCALL(tnode224816*, newnode_225090)(NU8 kind);
N_NIMCALL(tnode224816*, parsetypeclassparam_247082)(tparser243205* p);
static N_INLINE(NI, sonslen_225249)(tnode224816* n);
N_NIMCALL(tnode224816*, newnode_227207)(NU8 kind, tlineinfo194539 info, tnodeseq224810* sons, ttype224852* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(tnode224816*, identorliteral_244816)(tparser243205* p, NU8 mode);
N_NIMCALL(tnode224816*, newintnodep_243273)(NU8 kind, NI64 intval, tparser243205* p);
N_NIMCALL(void, setbaseflags_243360)(tnode224816* n, NU8 base);
N_NIMCALL(tnode224816*, newfloatnodep_243281)(NU8 kind, NF floatval, tparser243205* p);
N_NIMCALL(tnode224816*, exprcoloneqexprlist_244442)(tparser243205* p, NU8 kind, NU8 endtok);
N_NIMCALL(tnode224816*, parsepar_244671)(tparser243205* p);
N_NIMCALL(void, semistmtlist_244620)(tparser243205* p, tnode224816* result);
N_NIMCALL(tnode224816*, newnodei_227007)(NU8 kind, tlineinfo194539 info, NI children);
N_NIMCALL(tnode224816*, setortableconstr_244455)(tparser243205* p);
N_NIMCALL(tnode224816*, parsecast_244515)(tparser243205* p);
N_NIMCALL(tnode224816*, parseoperators_245031)(tparser243205* p, tnode224816* headnode, NI limit, NU8 mode);
N_NIMCALL(NI, getprecedence_243867)(ttoken214186* tok, NIM_BOOL strongspaces);
N_NIMCALL(NIM_BOOL, isunary_243942)(tparser243205* p);
static N_INLINE(void, checkbinary_243967)(tparser243205* p);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
static N_INLINE(NIM_BOOL, isrightassociative_243846)(ttoken214186* tok);
N_NIMCALL(tnode224816*, makecall_245950)(tnode224816* n);
N_NIMCALL(tnode224816*, parsemacrocolon_244865)(tparser243205* p, tnode224816* x);
N_NIMCALL(tnode224816*, makestmtlist_232031)(tnode224816* n);
N_NIMCALL(tnode224816*, parsetry_243375)(tparser243205* p, NIM_BOOL isexpr);
N_NIMCALL(tnode224816*, parsewhile_246417)(tparser243205* p);
N_NIMCALL(tnode224816*, parseexceptblock_246518)(tparser243205* p, NU8 kind);
N_NIMCALL(tnode224816*, parsefor_246530)(tparser243205* p);
N_NIMCALL(tnode224816*, parseblock_246558)(tparser243205* p);
N_NIMCALL(tnode224816*, parsestaticordefer_246578)(tparser243205* p, NU8 k);
N_NIMCALL(tnode224816*, parseasm_246590)(tparser243205* p);
N_NIMCALL(tnode224816*, parseroutine_246737)(tparser243205* p, NU8 kind);
N_NIMCALL(tnode224816*, parsepattern_246713)(tparser243205* p);
N_NIMCALL(tnode224816*, parsegenericparamlist_246666)(tparser243205* p);
N_NIMCALL(tnode224816*, parsegenericparam_246610)(tparser243205* p);
N_NIMCALL(void, indandcomment_243352)(tparser243205* p, tnode224816* n);
N_NIMCALL(tnode224816*, parsesection_246804)(tparser243205* p, NU8 kind, tdefparser246797 defparser);
N_NIMCALL(tnode224816*, parsetypedef_247176)(tparser243205* p);
N_NIMCALL(tnode224816*, parsetypedefaux_245939)(tparser243205* p);
N_NIMCALL(tnode224816*, parseconstant_246853)(tparser243205* p);
N_NIMCALL(tnode224816*, parsevariable_247247)(tparser243205* p);
N_NIMCALL(tnode224816*, parsevartuple_247205)(tparser243205* p);
N_NIMCALL(tnode224816*, parsebind_247268)(tparser243205* p, NU8 k);
N_NIMCALL(tnode224816*, qualifiedident_244220)(tparser243205* p);
N_NIMCALL(void, closelexer_214258)(tlexer214190* lex);
N_NIMCALL(tllstream210204*, llstreamopen_210220)(NimStringDesc* data);
N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_NIMCALL(void, openparser_243417)(tparser243205* p, NimStringDesc* filename, tllstream210204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(tnode224816*, parseall_243216)(tparser243205* p);
N_NIMCALL(void, closeparser_243223)(tparser243205* p);
STRING_LITERAL(TMP1079, "", 0);
STRING_LITERAL(TMP1080, "skipComment", 11);
extern NIM_CONST TY214175 toktypetostr_214174;
STRING_LITERAL(TMP1201, ".}", 2);
static NIM_CONST TY243923 TMP1202 = {
0x30, 0x00, 0x08, 0x00, 0x64, 0xD0, 0x06, 0x06,
0x40, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00}
;
STRING_LITERAL(TMP1203, ")", 1);
STRING_LITERAL(TMP1204, "->", 2);
static NIM_CONST TY243923 TMP1205 = {
0x00, 0x2A, 0x03, 0x1A, 0x09, 0x09, 0x00, 0x20,
0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP1206, "Number of spaces around \'$#\' not consistent", 43);
STRING_LITERAL(TMP1207, "Number of spaces must be 0,1,2,4 or 8", 37);
STRING_LITERAL(TMP1208, "except", 6);
TNimType NTI243205; /* TParser */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI214190; /* TLexer */
extern TNimType NTI214186; /* TToken */
extern tgcheap47016 gch_47044;
extern tnode224816* emptynode_225738;
extern TNimType NTI224810; /* TNodeSeq */

N_NIMCALL(void, gettok_243243)(tparser243205* p) {
	rawgettok_214238((&(*p).Lex), (&(*p).Tok));
}

N_NIMCALL(void, openparser_243402)(tparser243205* p, NI32 fileidx, tllstream210204* inputstream, NIM_BOOL strongspaces) {
	inittoken_214482((&(*p).Tok));
	openlexer_214229((&(*p).Lex), fileidx, inputstream);
	gettok_243243(p);
	(*p).Firsttok = NIM_TRUE;
	(*p).Strongspaces = strongspaces;
}

N_NIMCALL(void, openparser_243417)(tparser243205* p, NimStringDesc* filename, tllstream210204* inputstream, NIM_BOOL strongspaces) {
	NI32 LOC1;
	LOC1 = 0;
	LOC1 = fileinfoidx_194747(filename);
	openparser_243402(p, LOC1, inputstream, strongspaces);
}

static N_INLINE(tlineinfo194539, getlineinfo_214247)(tlexer214190* l, ttoken214186* tok) {
	tlineinfo194539 result;
	memset((void*)(&result), 0, sizeof(result));
	result = newlineinfo_195129((*l).Fileidx, (*tok).Line, (*tok).Col);
	return result;
}

N_NIMCALL(tlineinfo194539, parlineinfo_243316)(tparser243205* p) {
	tlineinfo194539 result;
	memset((void*)(&result), 0, sizeof(result));
	result = getlineinfo_214247((&(*p).Lex), (&(*p).Tok));
	return result;
}

N_NIMCALL(tnode224816*, newnodep_243266)(NU8 kind, tparser243205* p) {
	tnode224816* result;
	tlineinfo194539 LOC1;
	result = 0;
	LOC1 = parlineinfo_243316(p);
	result = newnodei_225138(kind, LOC1);
	return result;
}

static N_INLINE(tcell44935*, usrtocell_48646)(void* usr) {
	tcell44935* result;
	result = 0;
	result = ((tcell44935*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(tcell44935))))));
	return result;
}

static N_INLINE(void, rtladdzct_50204)(tcell44935* c) {
	addzct_48617((&gch_47044.Zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell44935* c;
	c = usrtocell_48646(p);
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	LA3: ;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI32)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, parmessage_243250)(tparser243205* p, NU16 msg, NimStringDesc* arg) {
	lexmessage_214289((&(*p).Lex), msg, arg);
}

N_NIMCALL(void, rawskipcomment_243497)(tparser243205* p, tnode224816* node) {
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA3;
		{
			if (!!((node == NIM_NIL))) goto LA7;
			{
				NimStringDesc* LOC13;
				if (!((*node).Comment == NIM_NIL)) goto LA11;
				LOC13 = 0;
				LOC13 = (*node).Comment; (*node).Comment = copyStringRC1(((NimStringDesc*) &TMP1079));
				if (LOC13) nimGCunrefNoCycle(LOC13);
			}
			LA11: ;
			(*node).Comment = resizeString((*node).Comment, (*p).Tok.Literal->Sup.len + 0);
appendString((*node).Comment, (*p).Tok.Literal);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_243250((&(*p)), ((NU16) 2), ((NimStringDesc*) &TMP1080));
		}
		LA5: ;
		gettok_243243(p);
	}
	LA3: ;
}

N_NIMCALL(void, skipcomment_243258)(tparser243205* p, tnode224816* node) {
	{
		if (!((*p).Tok.Indent < 0)) goto LA3;
		rawskipcomment_243497(p, node);
	}
	LA3: ;
}

N_NIMCALL(void, skipind_243330)(tparser243205* p) {
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		{
			if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA7;
			parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, optind_243344)(tparser243205* p, tnode224816* n) {
	skipcomment_243258(p, n);
	skipind_243330(p);
}

N_NIMCALL(void, eat_243322)(tparser243205* p, NU8 toktype) {
	{
		if (!((*p).Tok.Toktype == toktype)) goto LA3;
		gettok_243243(p);
	}
	goto LA1;
	LA3: ;
	{
		lexmessage_214289((&(*p).Lex), ((NU16) 23), toktypetostr_214174[(toktype)- 0]);
	}
	LA1: ;
}

N_NIMCALL(void, colcom_244001)(tparser243205* p, tnode224816* n) {
	eat_243322(p, ((NU8) 106));
	skipcomment_243258(p, n);
}

N_NIMCALL(tnode224816*, parseifexpr_245101)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	tnode224816* branch;
	tnode224816* LOC9;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	{
		while (1) {
			tnode224816* branch;
			tnode224816* LOC3;
			tnode224816* LOC4;
			gettok_243243(p);
			branch = newnodep_243266(((NU8) 49), (&(*p)));
			LOC3 = 0;
			LOC3 = parseexpr_243790(p);
			addson_225287(branch, LOC3);
			colcom_244001(p, branch);
			LOC4 = 0;
			LOC4 = parseexpr_243790(p);
			addson_225287(branch, LOC4);
			optind_243344(p, branch);
			addson_225287(result, branch);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 21)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		}
	} LA1: ;
	branch = newnodep_243266(((NU8) 50), (&(*p)));
	eat_243322(p, ((NU8) 22));
	colcom_244001(p, branch);
	LOC9 = 0;
	LOC9 = parseexpr_243790(p);
	addson_225287(branch, LOC9);
	addson_225287(result, branch);
	return result;
}

N_NIMCALL(void, exprlist_244160)(tparser243205* p, NU8 endtok, tnode224816* result) {
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			tnode224816* a;
			LOC3 = 0;
			LOC3 = !(((*p).Tok.Toktype == endtok));
			if (!(LOC3)) goto LA4;
			LOC3 = !(((*p).Tok.Toktype == ((NU8) 1)));
			LA4: ;
			if (!LOC3) goto LA2;
			a = parseexpr_243790(p);
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_243243(p);
			optind_243344(p, a);
		} LA2: ;
	} LA1: ;
	eat_243322(p, endtok);
}

N_NIMCALL(void, parmessage_243452)(tparser243205* p, NU16 msg, ttoken214186* tok) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = prettytok_214434(tok);
	parmessage_243250(p, msg, LOC1);
}

N_NIMCALL(NIM_BOOL, isexprstart_245619)(tparser243205* p) {
	NIM_BOOL result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	case ((NU8) 113):
	case ((NU8) 111):
	case ((NU8) 46):
	case ((NU8) 45):
	case ((NU8) 12):
	case ((NU8) 32):
	case ((NU8) 52):
	case ((NU8) 39):
	case ((NU8) 8):
	case ((NU8) 3):
	case ((NU8) 92):
	case ((NU8) 94):
	case ((NU8) 96):
	case ((NU8) 72) ... ((NU8) 91):
	case ((NU8) 65):
	case ((NU8) 55):
	case ((NU8) 53):
	case ((NU8) 62):
	case ((NU8) 48):
	case ((NU8) 63):
	case ((NU8) 66):
	case ((NU8) 11):
	{
		result = NIM_TRUE;
	}
	break;
	default:
	{
		result = NIM_FALSE;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, parsereturnorraise_246355)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA3;
		skipcomment_243258(p, result);
		addson_225287(result, emptynode_225738);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		NIM_BOOL LOC7;
		NIM_BOOL LOC10;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = (0 <= (*p).Tok.Indent);
		if (!(LOC7)) goto LA8;
		LOC7 = ((*p).Tok.Indent <= (*p).Currind);
		LA8: ;
		LOC6 = LOC7;
		if (LOC6) goto LA9;
		LOC10 = 0;
		LOC10 = isexprstart_245619((&(*p)));
		LOC6 = !(LOC10);
		LA9: ;
		if (!LOC6) goto LA11;
		addson_225287(result, emptynode_225738);
	}
	goto LA1;
	LA11: ;
	{
		tnode224816* LOC14;
		LOC14 = 0;
		LOC14 = parseexpr_243790(p);
		addson_225287(result, LOC14);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, colonorequals_244118)(tparser243205* p, tnode224816* a) {
	tnode224816* result;
	result = 0;
	{
		tnode224816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		result = newnodep_243266(((NU8) 34), (&(*p)));
		gettok_243243(p);
		addson_225287(result, a);
		LOC5 = 0;
		LOC5 = parseexpr_243790(p);
		addson_225287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		tnode224816* LOC9;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA7;
		result = newnodep_243266(((NU8) 33), (&(*p)));
		gettok_243243(p);
		addson_225287(result, a);
		LOC9 = 0;
		LOC9 = parseexpr_243790(p);
		addson_225287(result, LOC9);
	}
	goto LA1;
	LA7: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, exprcoloneqexpr_244148)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	a = parseexpr_243790(p);
	result = colonorequals_244118(p, a);
	return result;
}

N_NIMCALL(void, optpar_243337)(tparser243205* p) {
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		{
			if (!((*p).Tok.Indent < (*p).Currind)) goto LA7;
			parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(tnode224816*, parsepragma_245131)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 90), (&(*p)));
	(*p).Inpragma += 1;
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			tnode224816* a;
			if (!!(((*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 1)))) goto LA2;
			a = exprcoloneqexpr_244148(p);
			addson_225287(result, a);
			{
				if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA5;
				gettok_243243(p);
				skipcomment_243258(p, a);
			}
			LA5: ;
		} LA2: ;
	}
	optpar_243337(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 97))) goto LA9;
		gettok_243243(p);
	}
	goto LA7;
	LA9: ;
	{
		parmessage_243250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1201));
	}
	LA7: ;
	(*p).Inpragma -= 1;
	return result;
}

N_NIMCALL(tnode224816*, parsestmtpragma_247297)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = parsepragma_245131(p);
	{
		NIM_BOOL LOC3;
		tnode224816* a;
		tnode224816* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 106));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*p).Tok.Indent < 0);
		LA4: ;
		if (!LOC3) goto LA5;
		a = result;
		result = newnodei_225138(((NU8) 91), (*a).Info);
		gettok_243243(p);
		skipcomment_243258(p, result);
		add_225498(result, a);
		LOC7 = 0;
		LOC7 = parsestmt_243797(p);
		add_225498(result, LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode224816*, parsemodulename_246120)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	result = 0;
	result = parseexpr_243790(p);
	return result;
}

N_NIMCALL(tnode224816*, parseimport_246207)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	a = parsemodulename_246120(p, kind);
	addson_225287(result, a);
	{
		if (!((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 25))) goto LA3;
		{
			if (!((*p).Tok.Toktype == ((NU8) 25))) goto LA7;
			(*result).Kind = (kind + 1);
		}
		LA7: ;
		gettok_243243(p);
		optind_243344(p, result);
		{
			while (1) {
				a = parsemodulename_246120(p, kind);
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA13;
					goto LA9;
				}
				LA13: ;
				addson_225287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA17;
					goto LA9;
				}
				LA17: ;
				gettok_243243(p);
				optind_243344(p, a);
			}
		} LA9: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode224816*, parsefromstmt_246318)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	result = newnodep_243266(((NU8) 120), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	a = parsemodulename_246120(p, ((NU8) 116));
	addson_225287(result, a);
	eat_243322(p, ((NU8) 33));
	optind_243344(p, result);
	{
		while (1) {
			a = parseexpr_243790(p);
			{
				if (!((*a).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parseincludestmt_246281)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 121), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			tnode224816* a;
			a = parseexpr_243790(p);
			{
				if (!((*a).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, newcommentstmt_246785)(tparser243205* p) {
	tnode224816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_243266(((NU8) 125), (&(*p)));
	LOC1 = 0;
	LOC1 = (*result).Comment; (*result).Comment = copyStringRC1((*p).Tok.Literal);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	gettok_243243(p);
	return result;
}

N_NIMCALL(NIM_BOOL, isoperator_243237)(ttoken214186* tok) {
	NIM_BOOL result;
	result = 0;
	result = ((TMP1202[(*tok).Toktype/8] &(1<<((*tok).Toktype%8)))!=0);
	return result;
}

static N_INLINE(NIM_BOOL, issigillike_243827)(ttoken214186* tok) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*tok).Toktype == ((NU8) 111));
	if (!(LOC1)) goto LA2;
	LOC1 = ((NU8)((*(*tok).Ident).S->data[0]) == (NU8)(64));
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell44935* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48646(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell44935* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_48646((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA11;
			rtladdzct_50204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(tnode224816*, newidentnodep_243297)(tident199021* ident, tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 2), p);
	asgnRefNoCycle((void**) (&(*result).kindU.S5.Ident), ident);
	return result;
}

N_NIMCALL(void, exprcoloneqexprlistaux_244240)(tparser243205* p, NU8 endtok, tnode224816* result) {
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			tnode224816* a;
			LOC3 = 0;
			LOC3 = !(((*p).Tok.Toktype == endtok));
			if (!(LOC3)) goto LA4;
			LOC3 = !(((*p).Tok.Toktype == ((NU8) 1)));
			LA4: ;
			if (!LOC3) goto LA2;
			a = exprcoloneqexpr_244148(p);
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_243243(p);
			skipcomment_243258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_243337(p);
	eat_243322(p, endtok);
}

N_NIMCALL(tnode224816*, namedparams_244850)(tparser243205* p, tnode224816* callee, NU8 kind, NU8 endtok) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	a = callee;
	result = newnodep_243266(kind, (&(*p)));
	addson_225287(result, a);
	exprcoloneqexprlistaux_244240(p, endtok, result);
	return result;
}

static N_INLINE(NI, len_225364)(tnode224816* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.Sons == 0) goto LA3;
		result = 0;
	}
	goto LA1;
	LA3: ;
	{
		result = (*n).kindU.S6.Sons->Sup.len;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsesymbol_243367)(tparser243205* p, NIM_BOOL allownil) {
	tnode224816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	{
		result = newidentnodep_243297((*p).Tok.Ident, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 113):
	{
		result = newnodep_243266(((NU8) 53), (&(*p)));
		gettok_243243(p);
		{
			while (1) {
				switch ((*p).Tok.Toktype) {
				case ((NU8) 113):
				{
					{
						NI LOC8;
						LOC8 = 0;
						LOC8 = len_225364(result);
						if (!(LOC8 == 0)) goto LA9;
						parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
					}
					LA9: ;
					goto LA3;
				}
				break;
				case ((NU8) 111):
				case ((NU8) 109):
				case ((NU8) 110):
				case ((NU8) 108):
				case ((NU8) 92) ... ((NU8) 103):
				{
					NimStringDesc* accm;
					tident199021* LOC15;
					tnode224816* LOC16;
					accm = copyString(((NimStringDesc*) &TMP1079));
					{
						while (1) {
							NimStringDesc* LOC14;
							if (!((*p).Tok.Toktype == ((NU8) 111) || (*p).Tok.Toktype == ((NU8) 109) || (*p).Tok.Toktype == ((NU8) 110) || (*p).Tok.Toktype == ((NU8) 108) || (*p).Tok.Toktype >= ((NU8) 92) && (*p).Tok.Toktype <= ((NU8) 103))) goto LA13;
							LOC14 = 0;
							LOC14 = toktostr_214271((&(*p).Tok));
							accm = resizeString(accm, LOC14->Sup.len + 0);
appendString(accm, LOC14);
							gettok_243243(p);
						} LA13: ;
					}
					LOC15 = 0;
					LOC15 = getident_199472(accm);
					LOC16 = 0;
					LOC16 = newidentnodep_243297(LOC15, (&(*p)));
					add_225498(result, LOC16);
				}
				break;
				case ((NU8) 3) ... ((NU8) 71):
				case ((NU8) 2):
				case ((NU8) 72) ... ((NU8) 91):
				{
					NimStringDesc* LOC18;
					tident199021* LOC19;
					tnode224816* LOC20;
					LOC18 = 0;
					LOC18 = toktostr_214271((&(*p).Tok));
					LOC19 = 0;
					LOC19 = getident_199472(LOC18);
					LOC20 = 0;
					LOC20 = newidentnodep_243297(LOC19, (&(*p)));
					add_225498(result, LOC20);
					gettok_243243(p);
				}
				break;
				default:
				{
					parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
				}
				break;
				}
			}
		} LA3: ;
		eat_243322(p, ((NU8) 113));
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC25;
			LOC25 = 0;
			LOC25 = allownil;
			if (!(LOC25)) goto LA26;
			LOC25 = ((*p).Tok.Toktype == ((NU8) 45));
			LA26: ;
			if (!LOC25) goto LA27;
			result = newnodep_243266(((NU8) 23), (&(*p)));
			gettok_243243(p);
		}
		goto LA23;
		LA27: ;
		{
			parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
			gettok_243243(p);
			result = emptynode_225738;
		}
		LA23: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, identvis_245211)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	a = parsesymbol_243367(p, NIM_FALSE);
	{
		tnode224816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 111))) goto LA3;
		result = newnodep_243266(((NU8) 31), (&(*p)));
		LOC5 = 0;
		LOC5 = newidentnodep_243297((*p).Tok.Ident, (&(*p)));
		addson_225287(result, LOC5);
		addson_225287(result, a);
		gettok_243243(p);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, identwithpragma_245232)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	a = identvis_245211(p);
	{
		tnode224816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 100))) goto LA3;
		result = newnodep_243266(((NU8) 43), (&(*p)));
		addson_225287(result, a);
		LOC5 = 0;
		LOC5 = parsepragma_245131(p);
		addson_225287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsetypedesc_243804)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = simpleexpr_244612(p, ((NU8) 1));
	return result;
}

N_NIMCALL(tnode224816*, parseidentcolonequals_245262)(tparser243205* p, NU8 flags) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	a = 0;
	result = newnodep_243266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).Tok.Toktype) {
			case ((NU8) 2):
			case ((NU8) 113):
			{
				{
					if (!((flags &(1<<((((NU8) 0))&7)))!=0)) goto LA6;
					a = identwithpragma_245232(p);
				}
				goto LA4;
				LA6: ;
				{
					a = parsesymbol_243367(p, NIM_FALSE);
				}
				LA4: ;
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA11;
					goto BeforeRet;
				}
				LA11: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA16;
				goto LA1;
			}
			LA16: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	{
		tnode224816* LOC22;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA20;
		gettok_243243(p);
		optind_243344(p, result);
		LOC22 = 0;
		LOC22 = parsetypedesc_243804(p);
		addson_225287(result, LOC22);
	}
	goto LA18;
	LA20: ;
	{
		addson_225287(result, emptynode_225738);
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = !(((*p).Tok.Toktype == ((NU8) 108)));
			if (!(LOC26)) goto LA27;
			LOC26 = !(((flags &(1<<((((NU8) 1))&7)))!=0));
			LA27: ;
			if (!LOC26) goto LA28;
			parmessage_243452((&(*p)), ((NU16) 59), (&(*p).Tok));
		}
		LA28: ;
	}
	LA18: ;
	{
		tnode224816* LOC34;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA32;
		gettok_243243(p);
		optind_243344(p, result);
		LOC34 = 0;
		LOC34 = parseexpr_243790(p);
		addson_225287(result, LOC34);
	}
	goto LA30;
	LA32: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA30: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode224816*, parseparamlist_243819)(tparser243205* p, NIM_BOOL retcolon) {
	tnode224816* result;
	tnode224816* a;
	NIM_BOOL hasparle;
	NIM_BOOL LOC1;
	NIM_BOOL hasret;
	result = 0;
	a = 0;
	result = newnodep_243266(((NU8) 76), (&(*p)));
	addson_225287(result, emptynode_225738);
	LOC1 = 0;
	LOC1 = ((*p).Tok.Toktype == ((NU8) 92));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*p).Tok.Indent < 0);
	LA2: ;
	hasparle = LOC1;
	{
		if (!hasparle) goto LA5;
		gettok_243243(p);
		optind_243344(p, result);
		{
			while (1) {
				switch ((*p).Tok.Toktype) {
				case ((NU8) 2):
				case ((NU8) 113):
				{
					a = parseidentcolonequals_245262(p, 3);
				}
				break;
				case ((NU8) 93):
				{
					goto LA7;
				}
				break;
				default:
				{
					parmessage_243250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1203));
					goto LA7;
				}
				break;
				}
				addson_225287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA14;
					goto LA7;
				}
				LA14: ;
				gettok_243243(p);
				skipcomment_243258(p, a);
			}
		} LA7: ;
		optpar_243337(p);
		eat_243322(p, ((NU8) 93));
	}
	LA5: ;
	{
		if (!retcolon) goto LA18;
		hasret = ((*p).Tok.Toktype == ((NU8) 106));
	}
	goto LA16;
	LA18: ;
	{
		NIM_BOOL LOC21;
		LOC21 = 0;
		LOC21 = ((*p).Tok.Toktype == ((NU8) 111));
		if (!(LOC21)) goto LA22;
		LOC21 = identeq_199493((*p).Tok.Ident, ((NimStringDesc*) &TMP1204));
		LA22: ;
		hasret = LOC21;
	}
	LA16: ;
	{
		NIM_BOOL LOC25;
		LOC25 = 0;
		LOC25 = hasret;
		if (!(LOC25)) goto LA26;
		LOC25 = ((*p).Tok.Indent < 0);
		LA26: ;
		if (!LOC25) goto LA27;
		gettok_243243(p);
		optind_243344(p, result);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[0]), parsetypedesc_243804(p));
	}
	goto LA23;
	LA27: ;
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = !(retcolon);
		if (!(LOC30)) goto LA31;
		LOC30 = !(hasparle);
		LA31: ;
		if (!LOC30) goto LA32;
		result = emptynode_225738;
	}
	goto LA23;
	LA32: ;
	LA23: ;
	return result;
}

N_NIMCALL(tnode224816*, optpragmas_245507)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		LOC3 = 0;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = ((*p).Tok.Indent < 0);
		if (LOC5) goto LA6;
		LOC5 = ((*p).Currind < (*p).Tok.Indent);
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA7;
		result = parsepragma_245131(p);
	}
	goto LA1;
	LA7: ;
	{
		result = emptynode_225738;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsedoblock_245529)(tparser243205* p) {
	tnode224816* result;
	tlineinfo194539 info;
	tnode224816* params;
	tnode224816* pragmas;
	tnode224816* LOC1;
	result = 0;
	info = parlineinfo_243316((&(*p)));
	gettok_243243(p);
	params = parseparamlist_243819(p, NIM_FALSE);
	pragmas = optpragmas_245507(p);
	eat_243322(p, ((NU8) 106));
	skipcomment_243258(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243797(p);
	result = newprocnode_227432(((NU8) 52), info, LOC1, params, emptynode_225738, emptynode_225738, emptynode_225738, pragmas, emptynode_225738);
	return result;
}

N_NIMCALL(void, parsedoblocks_243811)(tparser243205* p, tnode224816* call) {
	{
		tnode224816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 20))) goto LA3;
		LOC5 = 0;
		LOC5 = parsedoblock_245529(p);
		addson_225287(call, LOC5);
		{
			while (1) {
				NIM_BOOL LOC8;
				tnode224816* LOC10;
				LOC8 = 0;
				LOC8 = ((*p).Tok.Indent == (*p).Currind);
				if (!(LOC8)) goto LA9;
				LOC8 = ((*p).Tok.Toktype == ((NU8) 20));
				LA9: ;
				if (!LOC8) goto LA7;
				LOC10 = 0;
				LOC10 = parsedoblock_245529(p);
				addson_225287(call, LOC10);
			} LA7: ;
		}
	}
	LA3: ;
}

N_NIMCALL(tnode224816*, dotexpr_244207)(tparser243205* p, tnode224816* a) {
	tnode224816* result;
	tlineinfo194539 info;
	result = 0;
	info = parlineinfo_243316((&(*p)));
	gettok_243243(p);
	optind_243344(p, a);
	switch ((*p).Tok.Toktype) {
	case ((NU8) 63):
	{
		result = newnodep_243266(((NU8) 132), (&(*p)));
		gettok_243243(p);
		addson_225287(result, a);
	}
	break;
	case ((NU8) 3):
	{
		result = newnodep_243266(((NU8) 63), (&(*p)));
		gettok_243243(p);
		addson_225287(result, a);
	}
	break;
	default:
	{
		tnode224816* LOC4;
		result = newnodei_225138(((NU8) 45), info);
		addson_225287(result, a);
		LOC4 = 0;
		LOC4 = parsesymbol_243367(p, NIM_FALSE);
		addson_225287(result, LOC4);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, newstrnodep_243289)(NU8 kind, NimStringDesc* strval, tparser243205* p) {
	tnode224816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_243266(kind, p);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(strval);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	return result;
}

N_NIMCALL(tnode224816*, parsegstrlit_244584)(tparser243205* p, tnode224816* a) {
	tnode224816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 89):
	{
		tnode224816* LOC2;
		result = newnodep_243266(((NU8) 28), (&(*p)));
		addson_225287(result, a);
		LOC2 = 0;
		LOC2 = newstrnodep_243289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		addson_225287(result, LOC2);
		gettok_243243(p);
	}
	break;
	case ((NU8) 90):
	{
		tnode224816* LOC4;
		result = newnodep_243266(((NU8) 28), (&(*p)));
		addson_225287(result, a);
		LOC4 = 0;
		LOC4 = newstrnodep_243289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		addson_225287(result, LOC4);
		gettok_243243(p);
	}
	break;
	default:
	{
		result = a;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, primarysuffix_244873)(tparser243205* p, tnode224816* r, NI baseindent) {
	tnode224816* result;
	result = 0;
	result = r;
	{
		while (1) {
			NIM_BOOL LOC3;
			NIM_BOOL LOC5;
			LOC3 = 0;
			LOC3 = ((*p).Tok.Indent < 0);
			if (LOC3) goto LA4;
			LOC5 = 0;
			LOC5 = ((*p).Tok.Toktype == ((NU8) 109));
			if (!(LOC5)) goto LA6;
			LOC5 = (baseindent <= (*p).Tok.Indent);
			LA6: ;
			LOC3 = LOC5;
			LA4: ;
			if (!LOC3) goto LA2;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 92):
			{
				{
					NIM_BOOL LOC10;
					LOC10 = 0;
					LOC10 = (*p).Strongspaces;
					if (!(LOC10)) goto LA11;
					LOC10 = (((NI8) 0) < (*p).Tok.Strongspacea);
					LA11: ;
					if (!LOC10) goto LA12;
					goto LA1;
				}
				LA12: ;
				result = namedparams_244850(p, result, ((NU8) 27), ((NU8) 93));
				{
					NIM_BOOL LOC16;
					NI LOC17;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = len_225364(result);
					LOC16 = (1 < LOC17);
					if (!(LOC16)) goto LA18;
					LOC16 = ((*(*result).kindU.S6.Sons->data[1]).Kind == ((NU8) 34));
					LA18: ;
					if (!LOC16) goto LA19;
					(*result).Kind = ((NU8) 38);
				}
				goto LA14;
				LA19: ;
				{
					parsedoblocks_243811(p, result);
				}
				LA14: ;
			}
			break;
			case ((NU8) 20):
			{
				tnode224816* a;
				a = result;
				result = newnodep_243266(((NU8) 27), (&(*p)));
				addson_225287(result, a);
				parsedoblocks_243811(p, result);
			}
			break;
			case ((NU8) 109):
			{
				result = dotexpr_244207(p, result);
				result = parsegstrlit_244584(p, result);
			}
			break;
			case ((NU8) 94):
			{
				{
					NIM_BOOL LOC27;
					LOC27 = 0;
					LOC27 = (*p).Strongspaces;
					if (!(LOC27)) goto LA28;
					LOC27 = (((NI8) 0) < (*p).Tok.Strongspacea);
					LA28: ;
					if (!LOC27) goto LA29;
					goto LA1;
				}
				LA29: ;
				result = namedparams_244850(p, result, ((NU8) 42), ((NU8) 95));
			}
			break;
			case ((NU8) 96):
			{
				{
					NIM_BOOL LOC34;
					LOC34 = 0;
					LOC34 = (*p).Strongspaces;
					if (!(LOC34)) goto LA35;
					LOC34 = (((NI8) 0) < (*p).Tok.Strongspacea);
					LA35: ;
					if (!LOC34) goto LA36;
					goto LA1;
				}
				LA36: ;
				result = namedparams_244850(p, result, ((NU8) 40), ((NU8) 97));
			}
			break;
			case ((NU8) 2):
			case ((NU8) 113):
			case ((NU8) 72) ... ((NU8) 91):
			case ((NU8) 45):
			case ((NU8) 12):
			{
				{
					tnode224816* a;
					tnode224816* LOC43;
					if (!((*p).Inpragma == 0)) goto LA41;
					a = result;
					result = newnodep_243266(((NU8) 26), (&(*p)));
					addson_225287(result, a);
					LOC43 = 0;
					LOC43 = parseexpr_243790(p);
					addson_225287(result, LOC43);
				}
				LA41: ;
				goto LA1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		} LA2: ;
	} LA1: ;
	return result;
}

N_NIMCALL(void, parsesymbollist_245629)(tparser243205* p, tnode224816* result, NIM_BOOL allownil) {
	{
		while (1) {
			tnode224816* s;
			s = parsesymbol_243367(p, allownil);
			{
				if (!((*s).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_225287(result, s);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_243243(p);
			optind_243344(p, s);
		}
	} LA1: ;
}

N_NIMCALL(tnode224816*, parsetypedesckaux_245667)(tparser243205* p, NU8 kind, NU8 mode) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode224816* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isoperator_243237((&(*p).Tok));
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = isexprstart_245619((&(*p)));
		LA5: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = primary_245014(p, mode);
		addson_225287(result, LOC8);
	}
	LA6: ;
	{
		NIM_BOOL LOC11;
		NU8 nodekind;
		tnode224816* list;
		LOC11 = 0;
		LOC11 = (kind == ((NU8) 145));
		if (!(LOC11)) goto LA12;
		LOC11 = ((*p).Tok.Toktype == ((NU8) 68) || (*p).Tok.Toktype == ((NU8) 69));
		LA12: ;
		if (!LOC11) goto LA13;
		{
			if (!((*p).Tok.Toktype == ((NU8) 68))) goto LA17;
			nodekind = ((NU8) 130);
		}
		goto LA15;
		LA17: ;
		{
			nodekind = ((NU8) 131);
		}
		LA15: ;
		gettok_243243(p);
		list = newnodep_243266(nodekind, (&(*p)));
		addson_225287(result, list);
		parsesymbollist_245629(p, list, NIM_TRUE);
	}
	LA13: ;
	return result;
}

N_NIMCALL(tnode224816*, parsetuple_245354)(tparser243205* p, NIM_BOOL indentallowed) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 134), (&(*p)));
	gettok_243243(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 94))) goto LA3;
		gettok_243243(p);
		optind_243344(p, result);
		{
			while (1) {
				tnode224816* a;
				if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA6;
				a = parseidentcolonequals_245262(p, 0);
				addson_225287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA9;
					goto LA5;
				}
				LA9: ;
				gettok_243243(p);
				skipcomment_243258(p, a);
			} LA6: ;
		} LA5: ;
		optpar_243337(p);
		eat_243322(p, ((NU8) 95));
	}
	goto LA1;
	LA3: ;
	{
		if (!indentallowed) goto LA12;
		skipcomment_243258(p, result);
		{
			NI oldind_245402;
			if (!((*p).Currind < (*p).Tok.Indent)) goto LA16;
			oldind_245402 = (*p).Currind;
			(*p).Currind = (*p).Tok.Indent;
			skipcomment_243258(p, result);
			{
				while (1) {
					switch ((*p).Tok.Toktype) {
					case ((NU8) 2):
					case ((NU8) 113):
					{
						tnode224816* a;
						a = parseidentcolonequals_245262(p, 0);
						skipcomment_243258(p, a);
						addson_225287(result, a);
					}
					break;
					case ((NU8) 1):
					{
						goto LA18;
					}
					break;
					default:
					{
						parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
						goto LA18;
					}
					break;
					}
					{
						if (!!(((*p).Tok.Indent == (*p).Currind))) goto LA25;
						goto LA18;
					}
					LA25: ;
				}
			} LA18: ;
			(*p).Currind = oldind_245402;
		}
		LA16: ;
	}
	goto LA1;
	LA12: ;
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parseprocexpr_245579)(tparser243205* p, NIM_BOOL isexpr) {
	tnode224816* result;
	tlineinfo194539 info;
	NIM_BOOL hassignature;
	NIM_BOOL LOC1;
	tnode224816* params;
	tnode224816* pragmas;
	result = 0;
	info = parlineinfo_243316((&(*p)));
	gettok_243243(p);
	LOC1 = 0;
	LOC1 = ((*p).Tok.Toktype == ((NU8) 92) || (*p).Tok.Toktype == ((NU8) 106));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*p).Tok.Indent < 0);
	LA2: ;
	hassignature = LOC1;
	params = parseparamlist_243819(p, NIM_TRUE);
	pragmas = optpragmas_245507(p);
	{
		NIM_BOOL LOC5;
		tnode224816* LOC9;
		LOC5 = 0;
		LOC5 = ((*p).Tok.Toktype == ((NU8) 108));
		if (!(LOC5)) goto LA6;
		LOC5 = isexpr;
		LA6: ;
		if (!LOC5) goto LA7;
		gettok_243243(p);
		skipcomment_243258(p, result);
		LOC9 = 0;
		LOC9 = parsestmt_243797(p);
		result = newprocnode_227432(((NU8) 51), info, LOC9, params, emptynode_225738, emptynode_225738, emptynode_225738, pragmas, emptynode_225738);
	}
	goto LA3;
	LA7: ;
	{
		result = newnodei_225138(((NU8) 146), info);
		{
			if (!hassignature) goto LA13;
			addson_225287(result, params);
			addson_225287(result, pragmas);
		}
		LA13: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode224816*, parseenum_245725)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 149), (&(*p)));
	gettok_243243(p);
	addson_225287(result, emptynode_225738);
	optind_243344(p, result);
	{
		while (1) {
			tnode224816* a;
			a = parsesymbol_243367(p, NIM_FALSE);
			{
				NIM_BOOL LOC5;
				LOC5 = 0;
				LOC5 = (0 <= (*p).Tok.Indent);
				if (!(LOC5)) goto LA6;
				LOC5 = ((*p).Tok.Indent <= (*p).Currind);
				LA6: ;
				if (!LOC5) goto LA7;
				add_225498(result, a);
				goto LA1;
			}
			LA7: ;
			{
				NIM_BOOL LOC11;
				tnode224816* b;
				tnode224816* LOC15;
				LOC11 = 0;
				LOC11 = ((*p).Tok.Toktype == ((NU8) 108));
				if (!(LOC11)) goto LA12;
				LOC11 = ((*p).Tok.Indent < 0);
				LA12: ;
				if (!LOC11) goto LA13;
				gettok_243243(p);
				optind_243344(p, a);
				b = a;
				a = newnodep_243266(((NU8) 150), (&(*p)));
				addson_225287(a, b);
				LOC15 = 0;
				LOC15 = parseexpr_243790(p);
				addson_225287(a, LOC15);
				skipcomment_243258(p, a);
			}
			LA13: ;
			{
				NIM_BOOL LOC18;
				LOC18 = 0;
				LOC18 = ((*p).Tok.Toktype == ((NU8) 104));
				if (!(LOC18)) goto LA19;
				LOC18 = ((*p).Tok.Indent < 0);
				LA19: ;
				if (!LOC18) goto LA20;
				gettok_243243(p);
				rawskipcomment_243497(p, a);
			}
			goto LA16;
			LA20: ;
			{
				skipcomment_243258(p, a);
			}
			LA16: ;
			addson_225287(result, a);
			{
				NIM_BOOL LOC25;
				NIM_BOOL LOC26;
				LOC25 = 0;
				LOC26 = 0;
				LOC26 = (0 <= (*p).Tok.Indent);
				if (!(LOC26)) goto LA27;
				LOC26 = ((*p).Tok.Indent <= (*p).Currind);
				LA27: ;
				LOC25 = LOC26;
				if (LOC25) goto LA28;
				LOC25 = ((*p).Tok.Toktype == ((NU8) 1));
				LA28: ;
				if (!LOC25) goto LA29;
				goto LA1;
			}
			LA29: ;
		}
	} LA1: ;
	{
		NI LOC33;
		NimStringDesc* LOC36;
		LOC33 = 0;
		LOC33 = len_225364(result);
		if (!(LOC33 <= 1)) goto LA34;
		LOC36 = 0;
		LOC36 = prettytok_214434((&(*p).Tok));
		lexmessage_214289((&(*p).Lex), ((NU16) 19), LOC36);
	}
	LA34: ;
	return result;
}

N_NIMCALL(NIM_BOOL, validind_246724)(tparser243205* p) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*p).Tok.Indent < 0);
	if (LOC1) goto LA2;
	LOC1 = ((*p).Currind < (*p).Tok.Indent);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(tnode224816*, parseobjectwhen_246929)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 139), (&(*p)));
	{
		while (1) {
			tnode224816* branch;
			tnode224816* LOC3;
			tnode224816* LOC4;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA2;
			gettok_243243(p);
			branch = newnodep_243266(((NU8) 86), (&(*p)));
			optind_243344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_243790(p);
			addson_225287(branch, LOC3);
			colcom_244001(p, branch);
			LOC4 = 0;
			LOC4 = parseobjectpart_246922(p);
			addson_225287(branch, LOC4);
			skipcomment_243258(p, branch);
			addson_225287(result, branch);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 21)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		} LA2: ;
	} LA1: ;
	{
		NIM_BOOL LOC11;
		tnode224816* branch;
		tnode224816* LOC15;
		LOC11 = 0;
		LOC11 = ((*p).Tok.Toktype == ((NU8) 22));
		if (!(LOC11)) goto LA12;
		LOC11 = ((*p).Tok.Indent == (*p).Currind);
		LA12: ;
		if (!LOC11) goto LA13;
		branch = newnodep_243266(((NU8) 88), (&(*p)));
		eat_243322(p, ((NU8) 22));
		colcom_244001(p, branch);
		LOC15 = 0;
		LOC15 = parseobjectpart_246922(p);
		addson_225287(branch, LOC15);
		skipcomment_243258(p, branch);
		addson_225287(result, branch);
	}
	LA13: ;
	return result;
}

N_NIMCALL(void, gettoknoind_243579)(tparser243205* p) {
	gettok_243243(p);
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
	}
	LA3: ;
}

N_NIMCALL(tnode224816*, parseobjectcase_246967)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	tnode224816* LOC1;
	tnode224816* LOC2;
	NIM_BOOL wasindented;
	NI oldind;
	result = 0;
	result = newnodep_243266(((NU8) 138), (&(*p)));
	gettoknoind_243579(p);
	a = newnodep_243266(((NU8) 35), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_245232(p);
	addson_225287(a, LOC1);
	eat_243322(p, ((NU8) 106));
	LOC2 = 0;
	LOC2 = parsetypedesc_243804(p);
	addson_225287(a, LOC2);
	addson_225287(a, emptynode_225738);
	addson_225287(result, a);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA5;
		gettok_243243(p);
	}
	LA5: ;
	skipcomment_243258(p, result);
	wasindented = NIM_FALSE;
	oldind = (*p).Currind;
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA9;
		(*p).Currind = (*p).Tok.Indent;
		wasindented = NIM_TRUE;
	}
	LA9: ;
	{
		while (1) {
			tnode224816* b;
			tnode224816* fields;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA12;
			b = 0;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 49):
			{
				b = newnodep_243266(((NU8) 85), (&(*p)));
				exprlist_244160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 22):
			{
				b = newnodep_243266(((NU8) 88), (&(*p)));
				gettok_243243(p);
				eat_243322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA11;
			}
			break;
			}
			skipcomment_243258(p, b);
			fields = parseobjectpart_246922(p);
			{
				if (!((*fields).Kind == ((NU8) 1))) goto LA18;
				parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
				fields = newnodep_243266(((NU8) 23), (&(*p)));
			}
			LA18: ;
			addson_225287(b, fields);
			addson_225287(result, b);
			{
				if (!((*b).Kind == ((NU8) 88))) goto LA22;
				goto LA11;
			}
			LA22: ;
		} LA12: ;
	} LA11: ;
	{
		if (!wasindented) goto LA26;
		(*p).Currind = oldind;
	}
	LA26: ;
	return result;
}

N_NIMCALL(tnode224816*, parseobjectpart_246922)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	{
		NI oldind_247026;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		result = newnodep_243266(((NU8) 137), (&(*p)));
		oldind_247026 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		rawskipcomment_243497(p, result);
		{
			while (1) {
				if (!((*p).Tok.Indent == (*p).Currind)) goto LA6;
				switch ((*p).Tok.Toktype) {
				case ((NU8) 11):
				case ((NU8) 66):
				case ((NU8) 2):
				case ((NU8) 113):
				case ((NU8) 45):
				{
					tnode224816* LOC8;
					LOC8 = 0;
					LOC8 = parseobjectpart_246922(p);
					addson_225287(result, LOC8);
				}
				break;
				default:
				{
					parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
					goto LA5;
				}
				break;
				}
			} LA6: ;
		} LA5: ;
		(*p).Currind = oldind_247026;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).Tok.Toktype) {
		case ((NU8) 66):
		{
			result = parseobjectwhen_246929(p);
		}
		break;
		case ((NU8) 11):
		{
			result = parseobjectcase_246967(p);
		}
		break;
		case ((NU8) 2):
		case ((NU8) 113):
		{
			result = parseidentcolonequals_245262(p, 1);
			skipcomment_243258(p, result);
		}
		break;
		case ((NU8) 45):
		{
			result = newnodep_243266(((NU8) 23), (&(*p)));
			gettok_243243(p);
		}
		break;
		default:
		{
			result = emptynode_225738;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parseobject_245732)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC25;
	result = 0;
	result = newnodep_243266(((NU8) 133), (&(*p)));
	gettok_243243(p);
	{
		NIM_BOOL LOC3;
		tnode224816* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC3)) goto LA4;
		LOC3 = validind_246724(p);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = parsepragma_245131(p);
		addson_225287(result, LOC7);
	}
	goto LA1;
	LA5: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA1: ;
	{
		NIM_BOOL LOC11;
		tnode224816* a;
		tnode224816* LOC15;
		LOC11 = 0;
		LOC11 = ((*p).Tok.Toktype == ((NU8) 49));
		if (!(LOC11)) goto LA12;
		LOC11 = ((*p).Tok.Indent < 0);
		LA12: ;
		if (!LOC11) goto LA13;
		a = newnodep_243266(((NU8) 77), (&(*p)));
		gettok_243243(p);
		LOC15 = 0;
		LOC15 = parsetypedesc_243804(p);
		addson_225287(a, LOC15);
		addson_225287(result, a);
	}
	goto LA9;
	LA13: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA9: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA19;
		skipcomment_243258(p, result);
	}
	LA19: ;
	{
		if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA23;
		addson_225287(result, emptynode_225738);
		goto BeforeRet;
	}
	LA23: ;
	LOC25 = 0;
	LOC25 = parseobjectpart_246922(p);
	addson_225287(result, LOC25);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode224816*, parsetypeclassparam_247082)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	{
		tnode224816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 65))) goto LA3;
		gettok_243243(p);
		result = newnode_225090(((NU8) 142));
		LOC5 = 0;
		LOC5 = parsesymbol_243367(p, NIM_FALSE);
		addson_225287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = parsesymbol_243367(p, NIM_FALSE);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsetypeclass_245739)(tparser243205* p) {
	tnode224816* result;
	tnode224816* args;
	tnode224816* LOC1;
	result = 0;
	result = newnodep_243266(((NU8) 135), (&(*p)));
	gettok_243243(p);
	args = newnode_225090(((NU8) 151));
	addson_225287(result, args);
	LOC1 = 0;
	LOC1 = parsetypeclassparam_247082(p);
	addson_225287(args, LOC1);
	{
		while (1) {
			tnode224816* LOC4;
			if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA3;
			gettok_243243(p);
			LOC4 = 0;
			LOC4 = parsetypeclassparam_247082(p);
			addson_225287(args, LOC4);
		} LA3: ;
	}
	{
		NIM_BOOL LOC7;
		tnode224816* LOC11;
		LOC7 = 0;
		LOC7 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC7)) goto LA8;
		LOC7 = validind_246724(p);
		LA8: ;
		if (!LOC7) goto LA9;
		LOC11 = 0;
		LOC11 = parsepragma_245131(p);
		addson_225287(result, LOC11);
	}
	goto LA5;
	LA9: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		tnode224816* a;
		LOC15 = 0;
		LOC15 = ((*p).Tok.Toktype == ((NU8) 49));
		if (!(LOC15)) goto LA16;
		LOC15 = ((*p).Tok.Indent < 0);
		LA16: ;
		if (!LOC15) goto LA17;
		a = newnodep_243266(((NU8) 77), (&(*p)));
		gettok_243243(p);
		{
			while (1) {
				tnode224816* LOC21;
				LOC21 = 0;
				LOC21 = parsetypedesc_243804(p);
				addson_225287(a, LOC21);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA24;
					goto LA19;
				}
				LA24: ;
				gettok_243243(p);
			}
		} LA19: ;
		addson_225287(result, a);
	}
	goto LA13;
	LA17: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA13: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA29;
		skipcomment_243258(p, result);
	}
	LA29: ;
	{
		if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA33;
		addson_225287(result, emptynode_225738);
	}
	goto LA31;
	LA33: ;
	{
		tnode224816* LOC36;
		LOC36 = 0;
		LOC36 = parsestmt_243797(p);
		addson_225287(result, LOC36);
	}
	LA31: ;
	return result;
}

static N_INLINE(NI, sonslen_225249)(tnode224816* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.Sons == 0) goto LA3;
		result = 0;
	}
	goto LA1;
	LA3: ;
	{
		result = (*n).kindU.S6.Sons->Sup.len;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, newintnodep_243273)(NU8 kind, NI64 intval, tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, p);
	(*result).kindU.S1.Intval = intval;
	return result;
}

N_NIMCALL(void, setbaseflags_243360)(tnode224816* n, NU8 base) {
	switch (base) {
	case ((NU8) 0):
	{
	}
	break;
	case ((NU8) 1):
	{
		(*n).Flags |= ((NI16)1)<<((((NU8) 1))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 2):
	{
		(*n).Flags |= ((NI16)1)<<((((NU8) 2))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 3):
	{
		(*n).Flags |= ((NI16)1)<<((((NU8) 3))%(sizeof(NI16)*8));
	}
	break;
	}
}

N_NIMCALL(tnode224816*, newfloatnodep_243281)(NU8 kind, NF floatval, tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, p);
	(*result).kindU.S2.Floatval = floatval;
	return result;
}

N_NIMCALL(tnode224816*, exprcoloneqexprlist_244442)(tparser243205* p, NU8 kind, NU8 endtok) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	exprcoloneqexprlistaux_244240(p, endtok, result);
	return result;
}

N_NIMCALL(void, semistmtlist_244620)(tparser243205* p, tnode224816* result) {
	tnode224816* LOC1;
	(*p).Insemistmtlist += 1;
	LOC1 = 0;
	LOC1 = complexorsimplestmt_244605(p);
	add_225498(result, LOC1);
	{
		while (1) {
			tnode224816* LOC4;
			if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA3;
			gettok_243243(p);
			optind_243344(p, result);
			LOC4 = 0;
			LOC4 = complexorsimplestmt_244605(p);
			add_225498(result, LOC4);
		} LA3: ;
	}
	(*p).Insemistmtlist -= 1;
	(*result).Kind = ((NU8) 126);
}

N_NIMCALL(tnode224816*, parsepar_244671)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 37), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		if (!((TMP1205[(*p).Tok.Toktype/8] &(1<<((*p).Tok.Toktype%8)))!=0)) goto LA3;
		semistmtlist_244620(p, result);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA6;
		gettok_243243(p);
		optind_243344(p, result);
		semistmtlist_244620(p, result);
	}
	goto LA1;
	LA6: ;
	{
		tnode224816* a_244708;
		if (!!(((*p).Tok.Toktype == ((NU8) 93)))) goto LA9;
		a_244708 = simpleexpr_244612(p, ((NU8) 0));
		{
			tnode224816* b;
			tnode224816* asgn;
			if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA13;
			gettok_243243(p);
			optind_243344(p, result);
			b = parseexpr_243790(p);
			asgn = newnodei_227007(((NU8) 73), (*a_244708).Info, 2);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.Sons->data[0]), a_244708);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.Sons->data[1]), b);
			add_225498(result, asgn);
			{
				if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA17;
				semistmtlist_244620(p, result);
			}
			LA17: ;
		}
		goto LA11;
		LA13: ;
		{
			if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA20;
			add_225498(result, a_244708);
			semistmtlist_244620(p, result);
		}
		goto LA11;
		LA20: ;
		{
			a_244708 = colonorequals_244118(p, a_244708);
			add_225498(result, a_244708);
			{
				if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA25;
				gettok_243243(p);
				skipcomment_243258(p, a_244708);
				{
					while (1) {
						NIM_BOOL LOC29;
						tnode224816* a;
						LOC29 = 0;
						LOC29 = !(((*p).Tok.Toktype == ((NU8) 93)));
						if (!(LOC29)) goto LA30;
						LOC29 = !(((*p).Tok.Toktype == ((NU8) 1)));
						LA30: ;
						if (!LOC29) goto LA28;
						a = exprcoloneqexpr_244148(p);
						addson_225287(result, a);
						{
							if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA33;
							goto LA27;
						}
						LA33: ;
						gettok_243243(p);
						skipcomment_243258(p, a);
					} LA28: ;
				} LA27: ;
			}
			LA25: ;
		}
		LA11: ;
	}
	goto LA1;
	LA9: ;
	LA1: ;
	optpar_243337(p);
	eat_243322(p, ((NU8) 93));
	return result;
}

N_NIMCALL(tnode224816*, setortableconstr_244455)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 39), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		gettok_243243(p);
		(*result).Kind = ((NU8) 54);
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				tnode224816* a;
				if (!!(((*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 1)))) goto LA7;
				a = exprcoloneqexpr_244148(p);
				{
					if (!((*a).Kind == ((NU8) 34))) goto LA10;
					(*result).Kind = ((NU8) 54);
				}
				LA10: ;
				addson_225287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA14;
					goto LA6;
				}
				LA14: ;
				gettok_243243(p);
				skipcomment_243258(p, a);
			} LA7: ;
		} LA6: ;
	}
	LA1: ;
	optpar_243337(p);
	eat_243322(p, ((NU8) 97));
	return result;
}

N_NIMCALL(tnode224816*, parsecast_244515)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC1;
	tnode224816* LOC2;
	result = 0;
	result = newnodep_243266(((NU8) 61), (&(*p)));
	gettok_243243(p);
	eat_243322(p, ((NU8) 94));
	optind_243344(p, result);
	LOC1 = 0;
	LOC1 = parsetypedesc_243804(p);
	addson_225287(result, LOC1);
	optpar_243337(p);
	eat_243322(p, ((NU8) 95));
	eat_243322(p, ((NU8) 92));
	optind_243344(p, result);
	LOC2 = 0;
	LOC2 = parseexpr_243790(p);
	addson_225287(result, LOC2);
	optpar_243337(p);
	eat_243322(p, ((NU8) 93));
	return result;
}

N_NIMCALL(tnode224816*, identorliteral_244816)(tparser243205* p, NU8 mode) {
	tnode224816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	{
		result = newidentnodep_243297((*p).Tok.Ident, (&(*p)));
		gettok_243243(p);
		result = parsegstrlit_244584(p, result);
	}
	break;
	case ((NU8) 113):
	{
		result = parsesymbol_243367(p, NIM_FALSE);
	}
	break;
	case ((NU8) 72):
	{
		result = newintnodep_243273(((NU8) 6), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 73):
	{
		result = newintnodep_243273(((NU8) 7), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 74):
	{
		result = newintnodep_243273(((NU8) 8), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 75):
	{
		result = newintnodep_243273(((NU8) 9), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 76):
	{
		result = newintnodep_243273(((NU8) 10), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 77):
	{
		result = newintnodep_243273(((NU8) 11), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 78):
	{
		result = newintnodep_243273(((NU8) 12), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 79):
	{
		result = newintnodep_243273(((NU8) 13), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 80):
	{
		result = newintnodep_243273(((NU8) 14), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 81):
	{
		result = newintnodep_243273(((NU8) 15), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 82):
	{
		result = newfloatnodep_243281(((NU8) 16), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 83):
	{
		result = newfloatnodep_243281(((NU8) 17), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 84):
	{
		result = newfloatnodep_243281(((NU8) 18), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 85):
	{
		result = newfloatnodep_243281(((NU8) 19), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).Tok.Base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 86):
	{
		result = newstrnodep_243289(((NU8) 20), (*p).Tok.Literal, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 87):
	{
		result = newstrnodep_243289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 88):
	{
		result = newstrnodep_243289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 91):
	{
		result = newintnodep_243273(((NU8) 5), ((NI64) (((NU8)((*p).Tok.Literal->data[0])))), (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 45):
	{
		result = newnodep_243266(((NU8) 23), (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 92):
	{
		{
			if (!((6 &(1<<((mode)&7)))!=0)) goto LA25;
			result = exprcoloneqexprlist_244442(p, ((NU8) 37), ((NU8) 93));
		}
		goto LA23;
		LA25: ;
		{
			result = parsepar_244671(p);
		}
		LA23: ;
	}
	break;
	case ((NU8) 96):
	{
		result = setortableconstr_244455(p);
	}
	break;
	case ((NU8) 94):
	{
		result = exprcoloneqexprlist_244442(p, ((NU8) 41), ((NU8) 95));
	}
	break;
	case ((NU8) 12):
	{
		result = parsecast_244515(p);
	}
	break;
	default:
	{
		parmessage_243452((&(*p)), ((NU16) 60), (&(*p).Tok));
		gettok_243243(p);
		result = emptynode_225738;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, primary_245014)(tparser243205* p, NU8 mode) {
	tnode224816* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL issigil;
		tnode224816* a;
		LOC3 = 0;
		LOC3 = isoperator_243237((&(*p).Tok));
		if (!LOC3) goto LA4;
		issigil = issigillike_243827((&(*p).Tok));
		result = newnodep_243266(((NU8) 30), (&(*p)));
		a = newidentnodep_243297((*p).Tok.Ident, (&(*p)));
		addson_225287(result, a);
		gettok_243243(p);
		optind_243344(p, a);
		{
			NI baseind;
			tnode224816* LOC10;
			if (!issigil) goto LA8;
			baseind = (*p).Lex.Currlineindent;
			LOC10 = 0;
			LOC10 = primary_245014(p, ((NU8) 3));
			addson_225287(result, LOC10);
			result = primarysuffix_244873(p, result, baseind);
		}
		goto LA6;
		LA8: ;
		{
			tnode224816* LOC12;
			LOC12 = 0;
			LOC12 = primary_245014(p, ((NU8) 0));
			addson_225287(result, LOC12);
		}
		LA6: ;
		goto BeforeRet;
	}
	LA4: ;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 65):
	{
		result = parsetypedesckaux_245667(p, ((NU8) 142), mode);
	}
	break;
	case ((NU8) 55):
	{
		result = parsetypedesckaux_245667(p, ((NU8) 140), mode);
	}
	break;
	case ((NU8) 53):
	{
		result = parsetypedesckaux_245667(p, ((NU8) 141), mode);
	}
	break;
	case ((NU8) 18):
	{
		result = parsetypedesckaux_245667(p, ((NU8) 145), mode);
	}
	break;
	case ((NU8) 63):
	{
		result = parsetypedesckaux_245667(p, ((NU8) 132), mode);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetuple_245354(p, (mode == ((NU8) 2)));
	}
	break;
	case ((NU8) 52):
	{
		result = parseprocexpr_245579(p, !(((6 &(1<<((mode)&7)))!=0)));
	}
	break;
	case ((NU8) 39):
	{
		result = parseprocexpr_245579(p, !(((6 &(1<<((mode)&7)))!=0)));
		{
			if (!((*result).Kind == ((NU8) 51))) goto LA23;
			(*result).Kind = ((NU8) 84);
		}
		goto LA21;
		LA23: ;
		{
			(*result).Kind = ((NU8) 147);
		}
		LA21: ;
	}
	break;
	case ((NU8) 24):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA29;
			result = parseenum_245725(p);
		}
		goto LA27;
		LA29: ;
		{
			result = newnodep_243266(((NU8) 149), (&(*p)));
			gettok_243243(p);
		}
		LA27: ;
	}
	break;
	case ((NU8) 48):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA35;
			result = parseobject_245732(p);
		}
		goto LA33;
		LA35: ;
		{
			result = newnodep_243266(((NU8) 133), (&(*p)));
			gettok_243243(p);
		}
		LA33: ;
	}
	break;
	case ((NU8) 31):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA41;
			result = parsetypeclass_245739(p);
		}
		goto LA39;
		LA41: ;
		{
			parmessage_243452((&(*p)), ((NU16) 12), (&(*p).Tok));
		}
		LA39: ;
	}
	break;
	case ((NU8) 3):
	{
		tnode224816* LOC45;
		result = newnodep_243266(((NU8) 63), (&(*p)));
		gettoknoind_243579(p);
		LOC45 = 0;
		LOC45 = primary_245014(p, ((NU8) 0));
		addson_225287(result, LOC45);
	}
	break;
	case ((NU8) 59):
	{
		tlineinfo194539 info;
		tnode224816* next;
		info = parlineinfo_243316((&(*p)));
		gettoknoind_243579(p);
		next = primary_245014(p, ((NU8) 0));
		{
			NIM_BOOL LOC49;
			NI LOC51;
			tnodeseq224810* LOC54;
			TY245892 LOC55;
			LOC49 = 0;
			LOC49 = ((*next).Kind == ((NU8) 41));
			if (!(LOC49)) goto LA50;
			LOC51 = 0;
			LOC51 = sonslen_225249(next);
			LOC49 = (LOC51 == 1);
			LA50: ;
			if (!LOC49) goto LA52;
			LOC54 = 0;
			LOC54 = (tnodeseq224810*) newSeq((&NTI224810), 1);
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = (*next).kindU.S6.Sons->data[0];
			asgnRefNoCycle((void**) (&LOC54->data[0]), LOC55[0]);
			result = newnode_227207(((NU8) 136), info, LOC54, NIM_NIL);
		}
		goto LA47;
		LA52: ;
		{
			tnodeseq224810* LOC57;
			TY245892 LOC58;
			LOC57 = 0;
			LOC57 = (tnodeseq224810*) newSeq((&NTI224810), 1);
			memset((void*)LOC58, 0, sizeof(LOC58));
			LOC58[0] = next;
			asgnRefNoCycle((void**) (&LOC57->data[0]), LOC58[0]);
			result = newnode_227207(((NU8) 62), info, LOC57, NIM_NIL);
		}
		LA47: ;
	}
	break;
	case ((NU8) 8):
	{
		tnode224816* LOC60;
		result = newnodep_243266(((NU8) 55), (&(*p)));
		gettok_243243(p);
		optind_243344(p, result);
		LOC60 = 0;
		LOC60 = primary_245014(p, ((NU8) 0));
		addson_225287(result, LOC60);
	}
	break;
	default:
	{
		NI baseind;
		baseind = (*p).Lex.Currlineindent;
		result = identorliteral_244816(p, mode);
		{
			if (!!((mode == ((NU8) 3)))) goto LA64;
			result = primarysuffix_244873(p, result, baseind);
		}
		LA64: ;
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(NI, getprecedence_243867)(ttoken214186* tok, NIM_BOOL strongspaces) {
	NI result;
	result = 0;
	switch ((*tok).Toktype) {
	case ((NU8) 111):
	{
		NI l;
		NIM_CHAR relevantchar;
		l = (*(*tok).Ident).S->Sup.len;
		relevantchar = (*(*tok).Ident).S->data[0];
		{
			NIM_BOOL LOC4;
			NI LOC8;
			LOC4 = 0;
			LOC4 = (1 < l);
			if (!(LOC4)) goto LA5;
			LOC4 = ((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(62));
			LA5: ;
			if (!LOC4) goto LA6;
			LOC8 = 0;
			{
				if (!strongspaces) goto LA11;
				LOC8 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA9;
			LA11: ;
			{
				LOC8 = 0;
			}
			LA9: ;
			result = (NI32)(1 + LOC8);
			goto BeforeRet;
		}
		LA6: ;
		switch (((NU8)(relevantchar))) {
		case 36:
		case 94:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(61))) goto LA17;
				result = 1;
			}
			goto LA15;
			LA17: ;
			{
				NI LOC20;
				LOC20 = 0;
				{
					if (!strongspaces) goto LA23;
					LOC20 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA21;
				LA23: ;
				{
					LOC20 = 0;
				}
				LA21: ;
				result = (NI32)(10 + LOC20);
			}
			LA15: ;
		}
		break;
		case 42:
		case 37:
		case 47:
		case 92:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(61))) goto LA29;
				result = 1;
			}
			goto LA27;
			LA29: ;
			{
				NI LOC32;
				LOC32 = 0;
				{
					if (!strongspaces) goto LA35;
					LOC32 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA33;
				LA35: ;
				{
					LOC32 = 0;
				}
				LA33: ;
				result = (NI32)(9 + LOC32);
			}
			LA27: ;
		}
		break;
		case 126:
		{
			NI LOC39;
			LOC39 = 0;
			{
				if (!strongspaces) goto LA42;
				LOC39 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA40;
			LA42: ;
			{
				LOC39 = 0;
			}
			LA40: ;
			result = (NI32)(8 + LOC39);
		}
		break;
		case 43:
		case 45:
		case 124:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(61))) goto LA48;
				result = 1;
			}
			goto LA46;
			LA48: ;
			{
				NI LOC51;
				LOC51 = 0;
				{
					if (!strongspaces) goto LA54;
					LOC51 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA52;
				LA54: ;
				{
					LOC51 = 0;
				}
				LA52: ;
				result = (NI32)(8 + LOC51);
			}
			LA46: ;
		}
		break;
		case 38:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(61))) goto LA60;
				result = 1;
			}
			goto LA58;
			LA60: ;
			{
				NI LOC63;
				LOC63 = 0;
				{
					if (!strongspaces) goto LA66;
					LOC63 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA64;
				LA66: ;
				{
					LOC63 = 0;
				}
				LA64: ;
				result = (NI32)(7 + LOC63);
			}
			LA58: ;
		}
		break;
		case 61:
		case 60:
		case 62:
		case 33:
		{
			NI LOC70;
			LOC70 = 0;
			{
				if (!strongspaces) goto LA73;
				LOC70 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA71;
			LA73: ;
			{
				LOC70 = 0;
			}
			LA71: ;
			result = (NI32)(5 + LOC70);
		}
		break;
		case 46:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(61))) goto LA79;
				result = 1;
			}
			goto LA77;
			LA79: ;
			{
				NI LOC82;
				LOC82 = 0;
				{
					if (!strongspaces) goto LA85;
					LOC82 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA83;
				LA85: ;
				{
					LOC82 = 0;
				}
				LA83: ;
				result = (NI32)(6 + LOC82);
			}
			LA77: ;
		}
		break;
		case 63:
		{
			NI LOC89;
			LOC89 = 0;
			{
				if (!strongspaces) goto LA92;
				LOC89 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA90;
			LA92: ;
			{
				LOC89 = 0;
			}
			LA90: ;
			result = (NI32)(2 + LOC89);
		}
		break;
		default:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(61))) goto LA98;
				result = 1;
			}
			goto LA96;
			LA98: ;
			{
				NI LOC101;
				LOC101 = 0;
				{
					if (!strongspaces) goto LA104;
					LOC101 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA102;
				LA104: ;
				{
					LOC101 = 0;
				}
				LA102: ;
				result = (NI32)(2 + LOC101);
			}
			LA96: ;
		}
		break;
		}
	}
	break;
	case ((NU8) 19):
	case ((NU8) 44):
	case ((NU8) 57):
	case ((NU8) 58):
	{
		result = 9;
	}
	break;
	case ((NU8) 34):
	case ((NU8) 47):
	case ((NU8) 37):
	case ((NU8) 38):
	case ((NU8) 46):
	case ((NU8) 49):
	case ((NU8) 5):
	{
		result = 5;
	}
	break;
	case ((NU8) 110):
	{
		NI LOC110;
		LOC110 = 0;
		{
			if (!strongspaces) goto LA113;
			LOC110 = (NI32)(100 - (NI32)(((NI) ((*tok).Strongspacea)) * 10));
		}
		goto LA111;
		LA113: ;
		{
			LOC110 = 0;
		}
		LA111: ;
		result = (NI32)(6 + LOC110);
	}
	break;
	case ((NU8) 4):
	{
		result = 4;
	}
	break;
	case ((NU8) 50):
	case ((NU8) 70):
	case ((NU8) 53):
	case ((NU8) 55):
	{
		result = 3;
	}
	break;
	default:
	{
		result = -10;
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isunary_243942)(tparser243205* p) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC3 = 0;
	LOC3 = (*p).Strongspaces;
	if (!(LOC3)) goto LA4;
	LOC3 = ((*p).Tok.Toktype == ((NU8) 111) || (*p).Tok.Toktype == ((NU8) 110));
	LA4: ;
	LOC2 = LOC3;
	if (!(LOC2)) goto LA5;
	LOC2 = ((*p).Tok.Strongspaceb == ((NI8) 0));
	LA5: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA6;
	LOC1 = (((NI8) 0) < (*p).Tok.Strongspacea);
	LA6: ;
	result = LOC1;
	return result;
}

static N_INLINE(void, checkbinary_243967)(tparser243205* p) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (*p).Strongspaces;
		if (!(LOC3)) goto LA4;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 111));
		LA4: ;
		if (!LOC3) goto LA5;
		{
			NIM_BOOL LOC9;
			NimStringDesc* LOC13;
			NimStringDesc* LOC14;
			LOC9 = 0;
			LOC9 = (((NI8) 0) < (*p).Tok.Strongspaceb);
			if (!(LOC9)) goto LA10;
			LOC9 = !(((*p).Tok.Strongspacea == (*p).Tok.Strongspaceb));
			LA10: ;
			if (!LOC9) goto LA11;
			LOC13 = 0;
			LOC13 = prettytok_214434((&(*p).Tok));
			LOC14 = 0;
			LOC14 = nsuFormatSingleElem(((NimStringDesc*) &TMP1206), LOC13);
			parmessage_243250(p, ((NU16) 4), LOC14);
		}
		goto LA7;
		LA11: ;
		{
			if (!!(((*p).Tok.Strongspacea == 0 || (*p).Tok.Strongspacea == 1 || (*p).Tok.Strongspacea == 2 || (*p).Tok.Strongspacea == 4 || (*p).Tok.Strongspacea == 8))) goto LA16;
			parmessage_243250(p, ((NU16) 4), ((NimStringDesc*) &TMP1207));
		}
		goto LA7;
		LA16: ;
		LA7: ;
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isrightassociative_243846)(ttoken214186* tok) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	NI l;
	NIM_BOOL LOC5;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*tok).Toktype == ((NU8) 111));
	if (!(LOC1)) goto LA2;
	LOC3 = 0;
	LOC3 = ((NU8)((*(*tok).Ident).S->data[0]) == (NU8)(94));
	if (LOC3) goto LA4;
	l = (*(*tok).Ident).S->Sup.len;
	LOC5 = 0;
	LOC5 = (1 < l);
	if (!(LOC5)) goto LA6;
	LOC5 = ((NU8)((*(*tok).Ident).S->data[(NI32)(l - 1)]) == (NU8)(62));
	LA6: ;
	LOC3 = LOC5;
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(tnode224816*, parseoperators_245031)(tparser243205* p, tnode224816* headnode, NI limit, NU8 mode) {
	tnode224816* result;
	NI opprec;
	NU8 modeb;
	result = 0;
	result = headnode;
	opprec = getprecedence_243867((&(*p).Tok), (*p).Strongspaces);
	{
		if (!(mode == ((NU8) 2))) goto LA3;
		modeb = ((NU8) 1);
	}
	goto LA1;
	LA3: ;
	{
		modeb = mode;
	}
	LA1: ;
	{
		while (1) {
			NIM_BOOL LOC8;
			NIM_BOOL LOC9;
			NIM_BOOL LOC12;
			NI leftassoc;
			NIM_BOOL LOC13;
			tnode224816* a;
			tnode224816* opnode;
			tnode224816* b;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = (limit <= opprec);
			if (!(LOC9)) goto LA10;
			LOC9 = ((*p).Tok.Indent < 0);
			LA10: ;
			LOC8 = LOC9;
			if (!(LOC8)) goto LA11;
			LOC12 = 0;
			LOC12 = isunary_243942((&(*p)));
			LOC8 = !(LOC12);
			LA11: ;
			if (!LOC8) goto LA7;
			checkbinary_243967((&(*p)));
			LOC13 = 0;
			LOC13 = isrightassociative_243846((&(*p).Tok));
			leftassoc = (NI32)(1 - ((NI) (LOC13)));
			a = newnodep_243266(((NU8) 29), (&(*p)));
			opnode = newidentnodep_243297((*p).Tok.Ident, (&(*p)));
			gettok_243243(p);
			optind_243344(p, opnode);
			b = simpleexpraux_245022(p, (NI32)(opprec + leftassoc), modeb);
			addson_225287(a, opnode);
			addson_225287(a, result);
			addson_225287(a, b);
			result = a;
			opprec = getprecedence_243867((&(*p).Tok), (*p).Strongspaces);
		} LA7: ;
	}
	return result;
}

N_NIMCALL(tnode224816*, simpleexpraux_245022)(tparser243205* p, NI limit, NU8 mode) {
	tnode224816* result;
	result = 0;
	result = primary_245014(p, mode);
	result = parseoperators_245031(p, result, limit, mode);
	return result;
}

N_NIMCALL(tnode224816*, simpleexpr_244612)(tparser243205* p, NU8 mode) {
	tnode224816* result;
	result = 0;
	result = simpleexpraux_245022(p, -1, mode);
	return result;
}

N_NIMCALL(tnode224816*, makecall_245950)(tnode224816* n) {
	tnode224816* result;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 27) || (*n).Kind == ((NU8) 29) || (*n).Kind == ((NU8) 30) || (*n).Kind == ((NU8) 31) || (*n).Kind == ((NU8) 26) || (*n).Kind == ((NU8) 28) || (*n).Kind == ((NU8) 32))) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		result = newnodei_225138(((NU8) 27), (*n).Info);
		add_225498(result, n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsemacrocolon_244865)(tparser243205* p, tnode224816* x) {
	tnode224816* result;
	result = 0;
	result = x;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 106));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*p).Tok.Indent < 0);
		LA4: ;
		if (!LOC3) goto LA5;
		result = makecall_245950(result);
		gettok_243243(p);
		skipcomment_243258(p, result);
		{
			tnode224816* body;
			tnode224816* LOC11;
			if (!!(((*p).Tok.Toktype == ((NU8) 49) || (*p).Tok.Toktype == ((NU8) 21) || (*p).Tok.Toktype == ((NU8) 22) || (*p).Tok.Toktype == ((NU8) 25)))) goto LA9;
			body = parsestmt_243797(p);
			LOC11 = 0;
			LOC11 = makestmtlist_232031(body);
			addson_225287(result, LOC11);
		}
		LA9: ;
		{
			while (1) {
				tnode224816* b;
				tnode224816* LOC20;
				if (!((*p).Tok.Indent == (*p).Currind)) goto LA13;
				b = 0;
				switch ((*p).Tok.Toktype) {
				case ((NU8) 49):
				{
					b = newnodep_243266(((NU8) 85), (&(*p)));
					exprlist_244160(p, ((NU8) 106), b);
				}
				break;
				case ((NU8) 21):
				{
					tnode224816* LOC16;
					b = newnodep_243266(((NU8) 86), (&(*p)));
					gettok_243243(p);
					optind_243344(p, b);
					LOC16 = 0;
					LOC16 = parseexpr_243790(p);
					addson_225287(b, LOC16);
					eat_243322(p, ((NU8) 106));
				}
				break;
				case ((NU8) 25):
				{
					b = newnodep_243266(((NU8) 87), (&(*p)));
					exprlist_244160(p, ((NU8) 106), b);
					skipcomment_243258(p, b);
				}
				break;
				case ((NU8) 22):
				{
					b = newnodep_243266(((NU8) 88), (&(*p)));
					gettok_243243(p);
					eat_243322(p, ((NU8) 106));
				}
				break;
				default:
				{
					goto LA12;
				}
				break;
				}
				LOC20 = 0;
				LOC20 = parsestmt_243797(p);
				addson_225287(b, LOC20);
				addson_225287(result, b);
				{
					if (!((*b).Kind == ((NU8) 88))) goto LA23;
					goto LA12;
				}
				LA23: ;
			} LA13: ;
		} LA12: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode224816*, parseexprstmt_246028)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	(*p).Inpragma += 1;
	a = simpleexpr_244612(p, ((NU8) 0));
	(*p).Inpragma -= 1;
	{
		tnode224816* b;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA3;
		gettok_243243(p);
		optind_243344(p, result);
		b = parseexpr_243790(p);
		result = newnodei_225138(((NU8) 73), (*a).Info);
		addson_225287(result, a);
		addson_225287(result, b);
	}
	goto LA1;
	LA3: ;
	{
		{
			NIM_BOOL LOC8;
			tnodeseq224810* LOC12;
			TY245892 LOC13;
			LOC8 = 0;
			LOC8 = ((*p).Tok.Indent < 0);
			if (!(LOC8)) goto LA9;
			LOC8 = isexprstart_245619((&(*p)));
			LA9: ;
			if (!LOC8) goto LA10;
			LOC12 = 0;
			LOC12 = (tnodeseq224810*) newSeq((&NTI224810), 1);
			memset((void*)LOC13, 0, sizeof(LOC13));
			LOC13[0] = a;
			asgnRefNoCycle((void**) (&LOC12->data[0]), LOC13[0]);
			result = newnode_227207(((NU8) 26), (*a).Info, LOC12, NIM_NIL);
			{
				while (1) {
					tnode224816* e;
					e = parseexpr_243790(p);
					addson_225287(result, e);
					{
						if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA18;
						goto LA14;
					}
					LA18: ;
					gettok_243243(p);
					optind_243344(p, result);
				}
			} LA14: ;
		}
		goto LA6;
		LA10: ;
		{
			result = a;
		}
		LA6: ;
		{
			NIM_BOOL LOC23;
			LOC23 = 0;
			LOC23 = ((*p).Tok.Toktype == ((NU8) 20));
			if (!(LOC23)) goto LA24;
			LOC23 = ((*p).Tok.Indent < 0);
			LA24: ;
			if (!LOC23) goto LA25;
			result = makecall_245950(result);
			parsedoblocks_243811(p, result);
			goto BeforeRet;
		}
		LA25: ;
		result = parsemacrocolon_244865(p, result);
	}
	LA1: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode224816*, simplestmt_247319)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 56):
	{
		result = parsereturnorraise_246355(p, ((NU8) 109));
	}
	break;
	case ((NU8) 54):
	{
		result = parsereturnorraise_246355(p, ((NU8) 108));
	}
	break;
	case ((NU8) 71):
	{
		result = parsereturnorraise_246355(p, ((NU8) 104));
	}
	break;
	case ((NU8) 17):
	{
		result = parsereturnorraise_246355(p, ((NU8) 114));
	}
	break;
	case ((NU8) 10):
	{
		result = parsereturnorraise_246355(p, ((NU8) 110));
	}
	break;
	case ((NU8) 14):
	{
		result = parsereturnorraise_246355(p, ((NU8) 111));
	}
	break;
	case ((NU8) 100):
	{
		result = parsestmtpragma_247297(p);
	}
	break;
	case ((NU8) 33):
	{
		result = parseimport_246207(p, ((NU8) 116));
	}
	break;
	case ((NU8) 26):
	{
		result = parseimport_246207(p, ((NU8) 118));
	}
	break;
	case ((NU8) 29):
	{
		result = parsefromstmt_246318(p);
	}
	break;
	case ((NU8) 35):
	{
		result = parseincludestmt_246281(p);
	}
	break;
	case ((NU8) 112):
	{
		result = newcommentstmt_246785(p);
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = isexprstart_245619((&(*p)));
			if (!LOC16) goto LA17;
			result = parseexprstmt_246028(p);
		}
		goto LA14;
		LA17: ;
		{
			result = emptynode_225738;
		}
		LA14: ;
	}
	break;
	}
	{
		if (!!(((*result).Kind == ((NU8) 1) || (*result).Kind == ((NU8) 125)))) goto LA22;
		skipcomment_243258(p, result);
	}
	LA22: ;
	return result;
}

N_NIMCALL(tnode224816*, parsestmt_243797)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	{
		NI oldind_247371;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		result = newnodep_243266(((NU8) 115), (&(*p)));
		oldind_247371 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		{
			while (1) {
				tnode224816* a;
				{
					if (!((*p).Tok.Indent == (*p).Currind)) goto LA9;
				}
				goto LA7;
				LA9: ;
				{
					if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA12;
					gettok_243243(p);
					{
						NIM_BOOL LOC16;
						LOC16 = 0;
						LOC16 = ((*p).Tok.Indent < 0);
						if (LOC16) goto LA17;
						LOC16 = ((*p).Tok.Indent == (*p).Currind);
						LA17: ;
						if (!LOC16) goto LA18;
					}
					goto LA14;
					LA18: ;
					{
						goto LA5;
					}
					LA14: ;
				}
				goto LA7;
				LA12: ;
				{
					{
						NIM_BOOL LOC24;
						LOC24 = 0;
						LOC24 = ((*p).Currind < (*p).Tok.Indent);
						if (!(LOC24)) goto LA25;
						LOC24 = !(((*p).Tok.Toktype == ((NU8) 109)));
						LA25: ;
						if (!LOC24) goto LA26;
						parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
					}
					LA26: ;
					goto LA5;
				}
				LA7: ;
				{
					if (!((*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 93) || (*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 95))) goto LA30;
					goto LA5;
				}
				LA30: ;
				a = complexorsimplestmt_244605(p);
				{
					if (!!(((*a).Kind == ((NU8) 1)))) goto LA34;
					addson_225287(result, a);
				}
				goto LA32;
				LA34: ;
				{
					parmessage_243452((&(*p)), ((NU16) 60), (&(*p).Tok));
					gettok_243243(p);
				}
				LA32: ;
			}
		} LA5: ;
		(*p).Currind = oldind_247371;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).Tok.Toktype) {
		case ((NU8) 32):
		case ((NU8) 67):
		case ((NU8) 11):
		case ((NU8) 61):
		case ((NU8) 28):
		case ((NU8) 9):
		case ((NU8) 6):
		case ((NU8) 52):
		case ((NU8) 39):
		case ((NU8) 41):
		case ((NU8) 63):
		case ((NU8) 13):
		case ((NU8) 66):
		case ((NU8) 65):
		{
			parmessage_243250((&(*p)), ((NU16) 153), ((NimStringDesc*) &TMP1079));
			result = emptynode_225738;
		}
		break;
		default:
		{
			{
				if (!(0 < (*p).Insemistmtlist)) goto LA42;
				result = simplestmt_247319(p);
				{
					if (!((*result).Kind == ((NU8) 1))) goto LA46;
					parmessage_243452((&(*p)), ((NU16) 60), (&(*p).Tok));
				}
				LA46: ;
			}
			goto LA40;
			LA42: ;
			{
				result = newnodep_243266(((NU8) 115), (&(*p)));
				{
					while (1) {
						tnode224816* a;
						{
							if (!(0 <= (*p).Tok.Indent)) goto LA53;
							parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
						}
						LA53: ;
						a = simplestmt_247319(p);
						{
							if (!((*a).Kind == ((NU8) 1))) goto LA57;
							parmessage_243452((&(*p)), ((NU16) 60), (&(*p).Tok));
						}
						LA57: ;
						add_225498(result, a);
						{
							if (!!(((*p).Tok.Toktype == ((NU8) 105)))) goto LA61;
							goto LA49;
						}
						LA61: ;
						gettok_243243(p);
					}
				} LA49: ;
			}
			LA40: ;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsecase_243383)(tparser243205* p) {
	tnode224816* result;
	tnode224816* b;
	NIM_BOOL inelif;
	NIM_BOOL wasindented;
	tnode224816* LOC1;
	NI oldind;
	result = 0;
	b = 0;
	inelif = NIM_FALSE;
	wasindented = NIM_FALSE;
	result = newnodep_243266(((NU8) 97), (&(*p)));
	gettok_243243(p);
	LOC1 = 0;
	LOC1 = parseexpr_243790(p);
	addson_225287(result, LOC1);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA4;
		gettok_243243(p);
	}
	LA4: ;
	skipcomment_243258(p, result);
	oldind = (*p).Currind;
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA8;
		(*p).Currind = (*p).Tok.Indent;
		wasindented = NIM_TRUE;
	}
	LA8: ;
	{
		while (1) {
			tnode224816* LOC21;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA11;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 49):
			{
				{
					if (!inelif) goto LA15;
					goto LA10;
				}
				LA15: ;
				b = newnodep_243266(((NU8) 85), (&(*p)));
				exprlist_244160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 21):
			{
				tnode224816* LOC18;
				inelif = NIM_TRUE;
				b = newnodep_243266(((NU8) 86), (&(*p)));
				gettok_243243(p);
				optind_243344(p, b);
				LOC18 = 0;
				LOC18 = parseexpr_243790(p);
				addson_225287(b, LOC18);
				eat_243322(p, ((NU8) 106));
			}
			break;
			case ((NU8) 22):
			{
				b = newnodep_243266(((NU8) 88), (&(*p)));
				gettok_243243(p);
				eat_243322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA10;
			}
			break;
			}
			skipcomment_243258(p, b);
			LOC21 = 0;
			LOC21 = parsestmt_243797(p);
			addson_225287(b, LOC21);
			addson_225287(result, b);
			{
				if (!((*b).Kind == ((NU8) 88))) goto LA24;
				goto LA10;
			}
			LA24: ;
		} LA11: ;
	} LA10: ;
	{
		if (!wasindented) goto LA28;
		(*p).Currind = oldind;
	}
	LA28: ;
	return result;
}

N_NIMCALL(tnode224816*, parsetry_243375)(tparser243205* p, NIM_BOOL isexpr) {
	tnode224816* result;
	tnode224816* LOC1;
	tnode224816* b;
	result = 0;
	result = newnodep_243266(((NU8) 106), (&(*p)));
	gettok_243243(p);
	eat_243322(p, ((NU8) 106));
	skipcomment_243258(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243797(p);
	addson_225287(result, LOC1);
	b = NIM_NIL;
	{
		while (1) {
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			tnode224816* LOC11;
			LOC4 = 0;
			LOC5 = 0;
			LOC5 = ((*p).Tok.Indent == (*p).Currind);
			if (LOC5) goto LA6;
			LOC5 = ((*p).Tok.Indent < 0);
			LA6: ;
			LOC4 = LOC5;
			if (LOC4) goto LA7;
			LOC4 = isexpr;
			LA7: ;
			if (!LOC4) goto LA3;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 25):
			{
				b = newnodep_243266(((NU8) 87), (&(*p)));
				exprlist_244160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 27):
			{
				b = newnodep_243266(((NU8) 107), (&(*p)));
				gettoknoind_243579(p);
				eat_243322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA2;
			}
			break;
			}
			skipcomment_243258(p, b);
			LOC11 = 0;
			LOC11 = parsestmt_243797(p);
			addson_225287(b, LOC11);
			addson_225287(result, b);
			{
				if (!((*b).Kind == ((NU8) 107))) goto LA14;
				goto LA2;
			}
			LA14: ;
		} LA3: ;
	} LA2: ;
	{
		if (!(b == NIM_NIL)) goto LA18;
		parmessage_243250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1208));
	}
	LA18: ;
	return result;
}

N_NIMCALL(tnode224816*, parseexpr_243790)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 32):
	{
		result = parseifexpr_245101(p, ((NU8) 48));
	}
	break;
	case ((NU8) 66):
	{
		result = parseifexpr_245101(p, ((NU8) 93));
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_243383(p);
	}
	break;
	case ((NU8) 61):
	{
		result = parsetry_243375(p, NIM_TRUE);
	}
	break;
	default:
	{
		result = simpleexpr_244612(p, ((NU8) 0));
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, parseiforwhen_246376)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	{
		while (1) {
			tnode224816* branch;
			tnode224816* LOC3;
			tnode224816* LOC4;
			gettok_243243(p);
			branch = newnodep_243266(((NU8) 86), (&(*p)));
			optind_243344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_243790(p);
			addson_225287(branch, LOC3);
			eat_243322(p, ((NU8) 106));
			skipcomment_243258(p, branch);
			LOC4 = 0;
			LOC4 = parsestmt_243797(p);
			addson_225287(branch, LOC4);
			skipcomment_243258(p, branch);
			addson_225287(result, branch);
			{
				NIM_BOOL LOC7;
				NIM_BOOL LOC9;
				LOC7 = 0;
				LOC7 = !(((*p).Tok.Toktype == ((NU8) 21)));
				if (LOC7) goto LA8;
				LOC9 = 0;
				LOC9 = ((*p).Tok.Indent == (*p).Currind);
				if (LOC9) goto LA10;
				LOC9 = ((*p).Tok.Indent < 0);
				LA10: ;
				LOC7 = !(LOC9);
				LA8: ;
				if (!LOC7) goto LA11;
				goto LA1;
			}
			LA11: ;
		}
	} LA1: ;
	{
		NIM_BOOL LOC15;
		NIM_BOOL LOC17;
		tnode224816* branch;
		tnode224816* LOC21;
		LOC15 = 0;
		LOC15 = ((*p).Tok.Toktype == ((NU8) 22));
		if (!(LOC15)) goto LA16;
		LOC17 = 0;
		LOC17 = ((*p).Tok.Indent == (*p).Currind);
		if (LOC17) goto LA18;
		LOC17 = ((*p).Tok.Indent < 0);
		LA18: ;
		LOC15 = LOC17;
		LA16: ;
		if (!LOC15) goto LA19;
		branch = newnodep_243266(((NU8) 88), (&(*p)));
		eat_243322(p, ((NU8) 22));
		eat_243322(p, ((NU8) 106));
		skipcomment_243258(p, branch);
		LOC21 = 0;
		LOC21 = parsestmt_243797(p);
		addson_225287(branch, LOC21);
		addson_225287(result, branch);
	}
	LA19: ;
	return result;
}

N_NIMCALL(tnode224816*, parsewhile_246417)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC1;
	tnode224816* LOC2;
	result = 0;
	result = newnodep_243266(((NU8) 96), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	LOC1 = 0;
	LOC1 = parseexpr_243790(p);
	addson_225287(result, LOC1);
	colcom_244001(p, result);
	LOC2 = 0;
	LOC2 = parsestmt_243797(p);
	addson_225287(result, LOC2);
	return result;
}

N_NIMCALL(tnode224816*, parseexceptblock_246518)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	tnode224816* LOC1;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettoknoind_243579(p);
	colcom_244001(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243797(p);
	addson_225287(result, LOC1);
	return result;
}

N_NIMCALL(tnode224816*, parsefor_246530)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	tnode224816* LOC3;
	tnode224816* LOC4;
	result = 0;
	result = newnodep_243266(((NU8) 94), (&(*p)));
	gettoknoind_243579(p);
	a = identwithpragma_245232(p);
	addson_225287(result, a);
	{
		while (1) {
			if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA2;
			gettok_243243(p);
			optind_243344(p, a);
			a = identwithpragma_245232(p);
			addson_225287(result, a);
		} LA2: ;
	}
	eat_243322(p, ((NU8) 34));
	LOC3 = 0;
	LOC3 = parseexpr_243790(p);
	addson_225287(result, LOC3);
	colcom_244001(p, result);
	LOC4 = 0;
	LOC4 = parsestmt_243797(p);
	addson_225287(result, LOC4);
	return result;
}

N_NIMCALL(tnode224816*, parseblock_246558)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC7;
	result = 0;
	result = newnodep_243266(((NU8) 112), (&(*p)));
	gettoknoind_243579(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		addson_225287(result, emptynode_225738);
	}
	goto LA1;
	LA3: ;
	{
		tnode224816* LOC6;
		LOC6 = 0;
		LOC6 = parsesymbol_243367(p, NIM_FALSE);
		addson_225287(result, LOC6);
	}
	LA1: ;
	colcom_244001(p, result);
	LOC7 = 0;
	LOC7 = parsestmt_243797(p);
	addson_225287(result, LOC7);
	return result;
}

N_NIMCALL(tnode224816*, parsestaticordefer_246578)(tparser243205* p, NU8 k) {
	tnode224816* result;
	tnode224816* LOC1;
	result = 0;
	result = newnodep_243266(k, (&(*p)));
	gettoknoind_243579(p);
	colcom_244001(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243797(p);
	addson_225287(result, LOC1);
	return result;
}

N_NIMCALL(tnode224816*, parseasm_246590)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 89), (&(*p)));
	gettoknoind_243579(p);
	{
		tnode224816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 100))) goto LA3;
		LOC5 = 0;
		LOC5 = parsepragma_245131(p);
		addson_225287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA1: ;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 86):
	{
		tnode224816* LOC8;
		LOC8 = 0;
		LOC8 = newstrnodep_243289(((NU8) 20), (*p).Tok.Literal, (&(*p)));
		addson_225287(result, LOC8);
	}
	break;
	case ((NU8) 87):
	{
		tnode224816* LOC10;
		LOC10 = 0;
		LOC10 = newstrnodep_243289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		addson_225287(result, LOC10);
	}
	break;
	case ((NU8) 88):
	{
		tnode224816* LOC12;
		LOC12 = 0;
		LOC12 = newstrnodep_243289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		addson_225287(result, LOC12);
	}
	break;
	default:
	{
		parmessage_243250((&(*p)), ((NU16) 6), ((NimStringDesc*) &TMP1079));
		addson_225287(result, emptynode_225738);
		goto BeforeRet;
	}
	break;
	}
	gettok_243243(p);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode224816*, parsepattern_246713)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	eat_243322(p, ((NU8) 96));
	result = parsestmt_243797(p);
	eat_243322(p, ((NU8) 97));
	return result;
}

N_NIMCALL(tnode224816*, parsegenericparam_246610)(tparser243205* p) {
	tnode224816* result;
	tnode224816* a;
	result = 0;
	a = 0;
	result = newnodep_243266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).Tok.Toktype) {
			case ((NU8) 2):
			case ((NU8) 113):
			{
				a = parsesymbol_243367(p, NIM_FALSE);
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA11;
				goto LA1;
			}
			LA11: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	{
		tnode224816* LOC17;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA15;
		gettok_243243(p);
		optind_243344(p, result);
		LOC17 = 0;
		LOC17 = parseexpr_243790(p);
		addson_225287(result, LOC17);
	}
	goto LA13;
	LA15: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA13: ;
	{
		tnode224816* LOC23;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA21;
		gettok_243243(p);
		optind_243344(p, result);
		LOC23 = 0;
		LOC23 = parseexpr_243790(p);
		addson_225287(result, LOC23);
	}
	goto LA19;
	LA21: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA19: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode224816*, parsegenericparamlist_246666)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 75), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			tnode224816* a;
			if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA2;
			a = parsegenericparam_246610(p);
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_243243(p);
			skipcomment_243258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_243337(p);
	eat_243322(p, ((NU8) 95));
	return result;
}

N_NIMCALL(void, indandcomment_243352)(tparser243205* p, tnode224816* n) {
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		{
			if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA7;
			rawskipcomment_243497(p, n);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		skipcomment_243258(p, n);
	}
	LA1: ;
}

N_NIMCALL(tnode224816*, parseroutine_246737)(tparser243205* p, NU8 kind) {
	tnode224816* result;
	tnode224816* LOC1;
	tnode224816* LOC18;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	LOC1 = 0;
	LOC1 = identvis_245211(p);
	addson_225287(result, LOC1);
	{
		NIM_BOOL LOC4;
		tnode224816* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).Tok.Toktype == ((NU8) 96));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_246724(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsepattern_246713(p);
		addson_225287(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA2: ;
	{
		NIM_BOOL LOC12;
		tnode224816* LOC16;
		LOC12 = 0;
		LOC12 = ((*p).Tok.Toktype == ((NU8) 94));
		if (!(LOC12)) goto LA13;
		LOC12 = validind_246724(p);
		LA13: ;
		if (!LOC12) goto LA14;
		LOC16 = 0;
		LOC16 = parsegenericparamlist_246666(p);
		add_225498(result, LOC16);
	}
	goto LA10;
	LA14: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA10: ;
	LOC18 = 0;
	LOC18 = parseparamlist_243819(p, NIM_TRUE);
	addson_225287(result, LOC18);
	{
		NIM_BOOL LOC21;
		tnode224816* LOC25;
		LOC21 = 0;
		LOC21 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC21)) goto LA22;
		LOC21 = validind_246724(p);
		LA22: ;
		if (!LOC21) goto LA23;
		LOC25 = 0;
		LOC25 = parsepragma_245131(p);
		addson_225287(result, LOC25);
	}
	goto LA19;
	LA23: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA19: ;
	addson_225287(result, emptynode_225738);
	{
		NIM_BOOL LOC29;
		tnode224816* LOC33;
		LOC29 = 0;
		LOC29 = ((*p).Tok.Toktype == ((NU8) 108));
		if (!(LOC29)) goto LA30;
		LOC29 = validind_246724(p);
		LA30: ;
		if (!LOC29) goto LA31;
		gettok_243243(p);
		skipcomment_243258(p, result);
		LOC33 = 0;
		LOC33 = parsestmt_243797(p);
		addson_225287(result, LOC33);
	}
	goto LA27;
	LA31: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA27: ;
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(tnode224816*, parsesection_246804)(tparser243205* p, NU8 kind, tdefparser246797 defparser) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	{
		if (!!((kind == ((NU8) 98)))) goto LA3;
		gettok_243243(p);
	}
	LA3: ;
	skipcomment_243258(p, result);
	{
		NI oldind_246822;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA7;
		oldind_246822 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		skipcomment_243258(p, result);
		{
			while (1) {
				if (!((*p).Tok.Indent == (*p).Currind)) goto LA10;
				switch ((*p).Tok.Toktype) {
				case ((NU8) 2):
				case ((NU8) 113):
				case ((NU8) 92):
				{
					tnode224816* a;
					a = defparser(p);
					skipcomment_243258(p, a);
					addson_225287(result, a);
				}
				break;
				case ((NU8) 112):
				{
					tnode224816* a;
					a = newcommentstmt_246785(p);
					addson_225287(result, a);
				}
				break;
				default:
				{
					parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
					goto LA9;
				}
				break;
				}
			} LA10: ;
		} LA9: ;
		(*p).Currind = oldind_246822;
		{
			NI LOC16;
			LOC16 = 0;
			LOC16 = len_225364(result);
			if (!(LOC16 == 0)) goto LA17;
			parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
		}
		LA17: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		tnode224816* LOC24;
		LOC20 = 0;
		LOC20 = ((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113) || (*p).Tok.Toktype == ((NU8) 92));
		if (!(LOC20)) goto LA21;
		LOC20 = ((*p).Tok.Indent < 0);
		LA21: ;
		if (!LOC20) goto LA22;
		LOC24 = 0;
		LOC24 = defparser(p);
		addson_225287(result, LOC24);
	}
	goto LA5;
	LA22: ;
	{
		parmessage_243452((&(*p)), ((NU16) 19), (&(*p).Tok));
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode224816*, parsetypedefaux_245939)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = simpleexpr_244612(p, ((NU8) 2));
	return result;
}

N_NIMCALL(tnode224816*, parsetypedef_247176)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC1;
	result = 0;
	result = newnodep_243266(((NU8) 103), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_245232(p);
	addson_225287(result, LOC1);
	{
		NIM_BOOL LOC4;
		tnode224816* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).Tok.Toktype == ((NU8) 94));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_246724(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsegenericparamlist_246666(p);
		addson_225287(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA2: ;
	{
		tnode224816* LOC14;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA12;
		gettok_243243(p);
		optind_243344(p, result);
		LOC14 = 0;
		LOC14 = parsetypedefaux_245939(p);
		addson_225287(result, LOC14);
	}
	goto LA10;
	LA12: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA10: ;
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(tnode224816*, parseconstant_246853)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC1;
	tnode224816* LOC8;
	result = 0;
	result = newnodep_243266(((NU8) 102), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_245232(p);
	addson_225287(result, LOC1);
	{
		tnode224816* LOC6;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA4;
		gettok_243243(p);
		optind_243344(p, result);
		LOC6 = 0;
		LOC6 = parsetypedesc_243804(p);
		addson_225287(result, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		addson_225287(result, emptynode_225738);
	}
	LA2: ;
	eat_243322(p, ((NU8) 108));
	optind_243344(p, result);
	LOC8 = 0;
	LOC8 = parseexpr_243790(p);
	addson_225287(result, LOC8);
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(tnode224816*, parsevartuple_247205)(tparser243205* p) {
	tnode224816* result;
	tnode224816* LOC7;
	result = 0;
	result = newnodep_243266(((NU8) 36), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			tnode224816* a;
			if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA2;
			a = identwithpragma_245232(p);
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_243243(p);
			skipcomment_243258(p, a);
		} LA2: ;
	} LA1: ;
	addson_225287(result, emptynode_225738);
	optpar_243337(p);
	eat_243322(p, ((NU8) 93));
	eat_243322(p, ((NU8) 108));
	optind_243344(p, result);
	LOC7 = 0;
	LOC7 = parseexpr_243790(p);
	addson_225287(result, LOC7);
	return result;
}

N_NIMCALL(tnode224816*, parsevariable_247247)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	{
		if (!((*p).Tok.Toktype == ((NU8) 92))) goto LA3;
		result = parsevartuple_247205(p);
	}
	goto LA1;
	LA3: ;
	{
		result = parseidentcolonequals_245262(p, 1);
	}
	LA1: ;
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(tnode224816*, qualifiedident_244220)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = parsesymbol_243367(p, NIM_FALSE);
	{
		if (!((*p).Tok.Toktype == ((NU8) 109))) goto LA3;
		result = dotexpr_244207(p, result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode224816*, parsebind_247268)(tparser243205* p, NU8 k) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(k, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			tnode224816* a;
			a = qualifiedident_244220(p);
			addson_225287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, complexorsimplestmt_244605)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 32):
	{
		result = parseiforwhen_246376(p, ((NU8) 92));
	}
	break;
	case ((NU8) 67):
	{
		result = parsewhile_246417(p);
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_243383(p);
	}
	break;
	case ((NU8) 61):
	{
		result = parsetry_243375(p, NIM_FALSE);
	}
	break;
	case ((NU8) 27):
	{
		result = parseexceptblock_246518(p, ((NU8) 107));
	}
	break;
	case ((NU8) 25):
	{
		result = parseexceptblock_246518(p, ((NU8) 87));
	}
	break;
	case ((NU8) 28):
	{
		result = parsefor_246530(p);
	}
	break;
	case ((NU8) 9):
	{
		result = parseblock_246558(p);
	}
	break;
	case ((NU8) 59):
	{
		result = parsestaticordefer_246578(p, ((NU8) 113));
	}
	break;
	case ((NU8) 16):
	{
		result = parsestaticordefer_246578(p, ((NU8) 105));
	}
	break;
	case ((NU8) 6):
	{
		result = parseasm_246590(p);
	}
	break;
	case ((NU8) 52):
	{
		result = parseroutine_246737(p, ((NU8) 79));
	}
	break;
	case ((NU8) 42):
	{
		result = parseroutine_246737(p, ((NU8) 80));
	}
	break;
	case ((NU8) 39):
	{
		result = parseroutine_246737(p, ((NU8) 84));
	}
	break;
	case ((NU8) 41):
	{
		result = parseroutine_246737(p, ((NU8) 82));
	}
	break;
	case ((NU8) 60):
	{
		result = parseroutine_246737(p, ((NU8) 83));
	}
	break;
	case ((NU8) 15):
	{
		result = parseroutine_246737(p, ((NU8) 81));
	}
	break;
	case ((NU8) 63):
	{
		gettok_243243(p);
		{
			tnode224816* LOC23;
			if (!((*p).Tok.Toktype == ((NU8) 92))) goto LA21;
			gettok_243243(p);
			result = newnodep_243266(((NU8) 132), (&(*p)));
			LOC23 = 0;
			LOC23 = primary_245014(p, ((NU8) 1));
			addson_225287(result, LOC23);
			eat_243322(p, ((NU8) 93));
			result = parseoperators_245031(p, result, -1, ((NU8) 0));
		}
		goto LA19;
		LA21: ;
		{
			result = parsesection_246804(p, ((NU8) 98), parsetypedef_247176);
		}
		LA19: ;
	}
	break;
	case ((NU8) 13):
	{
		result = parsesection_246804(p, ((NU8) 101), parseconstant_246853);
	}
	break;
	case ((NU8) 40):
	{
		result = parsesection_246804(p, ((NU8) 100), parsevariable_247247);
	}
	break;
	case ((NU8) 66):
	{
		result = parseiforwhen_246376(p, ((NU8) 93));
	}
	break;
	case ((NU8) 65):
	{
		result = parsesection_246804(p, ((NU8) 99), parsevariable_247247);
	}
	break;
	case ((NU8) 8):
	{
		result = parsebind_247268(p, ((NU8) 122));
	}
	break;
	case ((NU8) 43):
	{
		result = parsebind_247268(p, ((NU8) 123));
	}
	break;
	case ((NU8) 64):
	{
		result = parsebind_247268(p, ((NU8) 124));
	}
	break;
	default:
	{
		result = simplestmt_247319(p);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode224816*, parseall_243216)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = newnodep_243266(((NU8) 115), (&(*p)));
	{
		while (1) {
			tnode224816* a;
			if (!!(((*p).Tok.Toktype == ((NU8) 1)))) goto LA2;
			a = complexorsimplestmt_244605(p);
			{
				if (!!(((*a).Kind == ((NU8) 1)))) goto LA5;
				addson_225287(result, a);
			}
			goto LA3;
			LA5: ;
			{
				parmessage_243452((&(*p)), ((NU16) 60), (&(*p).Tok));
				gettok_243243(p);
			}
			LA3: ;
			{
				if (!!(((*p).Tok.Indent == 0))) goto LA10;
				parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
			}
			LA10: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, closeparser_243223)(tparser243205* p) {
	closelexer_214258((&(*p).Lex));
}

N_NIMCALL(tnode224816*, parsetoplevelstmt_243230)(tparser243205* p) {
	tnode224816* result;
	result = 0;
	result = emptynode_225738;
	{
		while (1) {
			{
				if (!!(((*p).Tok.Indent == 0))) goto LA5;
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = (*p).Firsttok;
					if (!(LOC9)) goto LA10;
					LOC9 = ((*p).Tok.Indent < 0);
					LA10: ;
					if (!LOC9) goto LA11;
				}
				goto LA7;
				LA11: ;
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 105)))) goto LA14;
					parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
				}
				goto LA7;
				LA14: ;
				LA7: ;
			}
			LA5: ;
			(*p).Firsttok = NIM_FALSE;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 105):
			{
				gettok_243243(p);
				{
					if (!((*p).Tok.Indent <= 0)) goto LA19;
				}
				goto LA17;
				LA19: ;
				{
					parmessage_243250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1079));
				}
				LA17: ;
				(*p).Firsttok = NIM_TRUE;
			}
			break;
			case ((NU8) 1):
			{
				goto LA1;
			}
			break;
			default:
			{
				result = complexorsimplestmt_244605(p);
				{
					if (!((*result).Kind == ((NU8) 1))) goto LA26;
					parmessage_243452((&(*p)), ((NU16) 60), (&(*p).Tok));
				}
				LA26: ;
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode224816*, parsestring_247539)(NimStringDesc* s, NimStringDesc* filename, NI line, terrorhandler214188 errorhandler) {
	tnode224816* result;
	tllstream210204* stream;
	tparser243205 parser;
	result = 0;
	stream = llstreamopen_210220(s);
	(*stream).Lineoffset = line;
	memset((void*)(&parser), 0, sizeof(parser));
	objectInit((&parser), (&NTI243205));
	openparser_243417((&parser), filename, stream, NIM_FALSE);
	parser.Lex.Errorhandler.ClEnv = errorhandler.ClEnv;
	parser.Lex.Errorhandler.ClPrc = errorhandler.ClPrc;
	result = parseall_243216((&parser));
	closeparser_243223((&parser));
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_parserInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, HEX00_parserDatInit)(void) {
static TNimNode* TMP1006[7];
static TNimNode TMP797[8];
NTI243205.size = sizeof(tparser243205);
NTI243205.kind = 18;
NTI243205.base = 0;
TMP1006[0] = &TMP797[1];
TMP797[1].kind = 1;
TMP797[1].offset = offsetof(tparser243205, Currind);
TMP797[1].typ = (&NTI108);
TMP797[1].name = "currInd";
TMP1006[1] = &TMP797[2];
TMP797[2].kind = 1;
TMP797[2].offset = offsetof(tparser243205, Firsttok);
TMP797[2].typ = (&NTI138);
TMP797[2].name = "firstTok";
TMP1006[2] = &TMP797[3];
TMP797[3].kind = 1;
TMP797[3].offset = offsetof(tparser243205, Strongspaces);
TMP797[3].typ = (&NTI138);
TMP797[3].name = "strongSpaces";
TMP1006[3] = &TMP797[4];
TMP797[4].kind = 1;
TMP797[4].offset = offsetof(tparser243205, Lex);
TMP797[4].typ = (&NTI214190);
TMP797[4].name = "lex";
TMP1006[4] = &TMP797[5];
TMP797[5].kind = 1;
TMP797[5].offset = offsetof(tparser243205, Tok);
TMP797[5].typ = (&NTI214186);
TMP797[5].name = "tok";
TMP1006[5] = &TMP797[6];
TMP797[6].kind = 1;
TMP797[6].offset = offsetof(tparser243205, Inpragma);
TMP797[6].typ = (&NTI108);
TMP797[6].name = "inPragma";
TMP1006[6] = &TMP797[7];
TMP797[7].kind = 1;
TMP797[7].offset = offsetof(tparser243205, Insemistmtlist);
TMP797[7].typ = (&NTI108);
TMP797[7].name = "inSemiStmtList";
TMP797[0].len = 7; TMP797[0].kind = 2; TMP797[0].sons = &TMP1006[0];
NTI243205.node = &TMP797[0];
}

