/* 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 tparser244205 tparser244205;
typedef struct tlexer215190 tlexer215190;
typedef struct tbaselexer213024 tbaselexer213024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tllstream211204 tllstream211204;
typedef struct tlineinfo195539 tlineinfo195539;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct ttoken215186 ttoken215186;
typedef struct tident200021 tident200021;
typedef struct tnode225816 tnode225816;
typedef struct ttype225852 ttype225852;
typedef struct tsym225846 tsym225846;
typedef struct tnodeseq225810 tnodeseq225810;
typedef struct tcell44933 tcell44933;
typedef struct tcellseq44949 tcellseq44949;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44945 tcellset44945;
typedef struct tpagedesc44941 tpagedesc44941;
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 tidobj200015 tidobj200015;
typedef struct ttypeseq225848 ttypeseq225848;
typedef struct tloc225830 tloc225830;
typedef struct trope177009 trope177009;
typedef struct tscope225840 tscope225840;
typedef struct TY225947 TY225947;
typedef struct tinstantiation225836 tinstantiation225836;
typedef struct tstrtable225820 tstrtable225820;
typedef struct tsymseq225818 tsymseq225818;
typedef struct tlib225834 tlib225834;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY225936 TY225936;
typedef struct tlistentry127022 tlistentry127022;
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  tbaselexer213024  {
  TNimObject Sup;
NI Bufpos;
NCSTRING Buf;
NI Buflen;
tllstream211204* Stream;
NI Linenumber;
NI Sentinel;
NI Linestart;
};
struct  tlineinfo195539  {
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) (tlineinfo195539 info, NU16 msg, NimStringDesc* arg, void* ClEnv);
void* ClEnv;
} terrorhandler215188;
struct  tlexer215190  {
  tbaselexer213024 Sup;
NI32 Fileidx;
NI Indentahead;
NI Currlineindent;
NIM_BOOL Strongspaces;
terrorhandler215188 Errorhandler;
};
struct  ttoken215186  {
NU8 Toktype;
NI Indent;
tident200021* Ident;
NI64 Inumber;
NF Fnumber;
NU8 Base;
NI8 Strongspacea;
NI8 Strongspaceb;
NimStringDesc* Literal;
NI Line;
NI Col;
};
struct  tparser244205  {
NI Currind;
NIM_BOOL Firsttok;
NIM_BOOL Strongspaces;
tlexer215190 Lex;
ttoken215186 Tok;
NI Inpragma;
NI Insemistmtlist;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tnode225816  {
ttype225852* Typ;
tlineinfo195539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym225846* Sym;
} S4;
struct {tident200021* Ident;
} S5;
struct {tnodeseq225810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tcell44933  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44949  {
NI Len;
NI Cap;
tcell44933** D;
};
struct  tcellset44945  {
NI Counter;
NI Max;
tpagedesc44941* Head;
tpagedesc44941** 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;
tcellseq44949 Zct;
tcellseq44949 Decstack;
tcellset44945 Cycleroots;
tcellseq44949 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
typedef NimStringDesc* TY215175[118];
typedef NU8 TY244923[15];
struct  tidobj200015  {
  TNimObject Sup;
NI Id;
};
struct  tident200021  {
  tidobj200015 Sup;
NimStringDesc* S;
tident200021* Next;
NI H;
};
typedef tnode225816* TY246892[1];
typedef N_NIMCALL_PTR(tnode225816*, tdefparser247797) (tparser244205* p);
struct  tllstream211204  {
  TNimObject Sup;
NU8 Kind;
FILE* F;
NimStringDesc* S;
NI Rd;
NI Wr;
NI Lineoffset;
};
struct  tloc225830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype225852* T;
trope177009* R;
trope177009* Heaproot;
};
struct  ttype225852  {
  tidobj200015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq225848* Sons;
tnode225816* N;
tsym225846* Owner;
tsym225846* Sym;
tsym225846* Destructor;
tsym225846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc225830 Loc;
};
struct  tstrtable225820  {
NI Counter;
tsymseq225818* Data;
};
struct  tsym225846  {
  tidobj200015 Sup;
NU8 Kind;
union {
struct {ttypeseq225848* Typeinstcache;
tscope225840* Typscope;
} S1;
struct {TY225947* Procinstcache;
tscope225840* Scope;
} S2;
struct {TY225947* Usedgenerics;
tstrtable225820 Tab;
} S3;
struct {tsym225846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype225852* Typ;
tident200021* Name;
tlineinfo195539 Info;
tsym225846* Owner;
NU32 Flags;
tnode225816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc225830 Loc;
tlib225834* Annex;
tnode225816* Constraint;
};
typedef NI TY26420[16];
struct  tpagedesc44941  {
tpagedesc44941* 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  trope177009  {
  TNimObject Sup;
trope177009* Left;
trope177009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tscope225840  {
NI Depthlevel;
tstrtable225820 Symbols;
tnodeseq225810* Usingsyms;
tscope225840* Parent;
};
struct  tinstantiation225836  {
tsym225846* Sym;
ttypeseq225848* Concretetypes;
TY225936* Usedby;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib225834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope177009* Name;
tnode225816* Path;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct tnodeseq225810 {
  TGenericSeq Sup;
  tnode225816* data[SEQ_DECL_SIZE];
};
struct ttypeseq225848 {
  TGenericSeq Sup;
  ttype225852* data[SEQ_DECL_SIZE];
};
struct TY225947 {
  TGenericSeq Sup;
  tinstantiation225836* data[SEQ_DECL_SIZE];
};
struct tsymseq225818 {
  TGenericSeq Sup;
  tsym225846* data[SEQ_DECL_SIZE];
};
struct TY225936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, openparser_244402)(tparser244205* p, NI32 fileidx, tllstream211204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(void, inittoken_215482)(ttoken215186* l);
N_NIMCALL(void, openlexer_215229)(tlexer215190* lex, NI32 fileidx, tllstream211204* inputstream);
N_NIMCALL(void, gettok_244243)(tparser244205* p);
N_NIMCALL(void, rawgettok_215238)(tlexer215190* l, ttoken215186* tok);
N_NIMCALL(NI32, fileinfoidx_195747)(NimStringDesc* filename);
N_NIMCALL(tnode225816*, newnodep_244266)(NU8 kind, tparser244205* p);
N_NIMCALL(tnode225816*, newnodei_226138)(NU8 kind, tlineinfo195539 info);
N_NIMCALL(tlineinfo195539, parlineinfo_244316)(tparser244205* p);
static N_INLINE(tlineinfo195539, getlineinfo_215247)(tlexer215190* l, ttoken215186* tok);
N_NIMCALL(tlineinfo195539, newlineinfo_196129)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(tnode225816*, complexorsimplestmt_245605)(tparser244205* p);
N_NIMCALL(tnode225816*, parseiforwhen_247376)(tparser244205* p, NU8 kind);
N_NIMCALL(void, optind_244344)(tparser244205* p, tnode225816* n);
N_NIMCALL(void, skipcomment_244258)(tparser244205* p, tnode225816* node);
N_NIMCALL(void, rawskipcomment_244497)(tparser244205* p, tnode225816* node);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44933*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44933* c);
N_NOINLINE(void, addzct_48617)(tcellseq44949* s, tcell44933* c);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, parmessage_244250)(tparser244205* p, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, lexmessage_215289)(tlexer215190* l, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, skipind_244330)(tparser244205* p);
N_NIMCALL(void, addson_226287)(tnode225816* father, tnode225816* son);
N_NIMCALL(tnode225816*, parseexpr_244790)(tparser244205* p);
N_NIMCALL(tnode225816*, parseifexpr_246101)(tparser244205* p, NU8 kind);
N_NIMCALL(void, colcom_245001)(tparser244205* p, tnode225816* n);
N_NIMCALL(void, eat_244322)(tparser244205* p, NU8 toktype);
N_NIMCALL(tnode225816*, parsecase_244383)(tparser244205* p);
N_NIMCALL(void, exprlist_245160)(tparser244205* p, NU8 endtok, tnode225816* result);
N_NIMCALL(tnode225816*, parsestmt_244797)(tparser244205* p);
N_NIMCALL(void, parmessage_244452)(tparser244205* p, NU16 msg, ttoken215186* tok);
N_NIMCALL(NimStringDesc*, prettytok_215434)(ttoken215186* tok);
N_NIMCALL(tnode225816*, simplestmt_248319)(tparser244205* p);
N_NIMCALL(tnode225816*, parsereturnorraise_247355)(tparser244205* p, NU8 kind);
N_NIMCALL(NIM_BOOL, isexprstart_246619)(tparser244205* p);
N_NIMCALL(tnode225816*, parsestmtpragma_248297)(tparser244205* p);
N_NIMCALL(tnode225816*, parsepragma_246131)(tparser244205* p);
N_NIMCALL(tnode225816*, exprcoloneqexpr_245148)(tparser244205* p);
N_NIMCALL(tnode225816*, colonorequals_245118)(tparser244205* p, tnode225816* a);
N_NIMCALL(void, optpar_244337)(tparser244205* p);
N_NIMCALL(void, add_226498)(tnode225816* father, tnode225816* son);
N_NIMCALL(tnode225816*, parseimport_247207)(tparser244205* p, NU8 kind);
N_NIMCALL(tnode225816*, parsemodulename_247120)(tparser244205* p, NU8 kind);
N_NIMCALL(tnode225816*, parsefromstmt_247318)(tparser244205* p);
N_NIMCALL(tnode225816*, parseincludestmt_247281)(tparser244205* p);
N_NIMCALL(tnode225816*, newcommentstmt_247785)(tparser244205* p);
N_NIMCALL(tnode225816*, parseexprstmt_247028)(tparser244205* p);
N_NIMCALL(tnode225816*, simpleexpr_245612)(tparser244205* p, NU8 mode);
N_NIMCALL(tnode225816*, simpleexpraux_246022)(tparser244205* p, NI limit, NU8 mode);
N_NIMCALL(tnode225816*, primary_246014)(tparser244205* p, NU8 mode);
N_NIMCALL(NIM_BOOL, isoperator_244237)(ttoken215186* tok);
static N_INLINE(NIM_BOOL, issigillike_244827)(ttoken215186* tok);
N_NIMCALL(tnode225816*, newidentnodep_244297)(tident200021* ident, tparser244205* p);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(tnode225816*, primarysuffix_245873)(tparser244205* p, tnode225816* r, NI baseindent);
N_NIMCALL(tnode225816*, namedparams_245850)(tparser244205* p, tnode225816* callee, NU8 kind, NU8 endtok);
N_NIMCALL(void, exprcoloneqexprlistaux_245240)(tparser244205* p, NU8 endtok, tnode225816* result);
static N_INLINE(NI, len_226364)(tnode225816* n);
N_NIMCALL(void, parsedoblocks_244811)(tparser244205* p, tnode225816* call);
N_NIMCALL(tnode225816*, parsedoblock_246529)(tparser244205* p);
N_NIMCALL(tnode225816*, parseparamlist_244819)(tparser244205* p, NIM_BOOL retcolon);
N_NIMCALL(tnode225816*, parseidentcolonequals_246262)(tparser244205* p, NU8 flags);
N_NIMCALL(tnode225816*, identwithpragma_246232)(tparser244205* p);
N_NIMCALL(tnode225816*, identvis_246211)(tparser244205* p);
N_NIMCALL(tnode225816*, parsesymbol_244367)(tparser244205* p, NIM_BOOL allownil);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, toktostr_215271)(ttoken215186* tok);
N_NIMCALL(tident200021*, getident_200472)(NimStringDesc* identifier);
N_NIMCALL(tnode225816*, parsetypedesc_244804)(tparser244205* p);
N_NIMCALL(NIM_BOOL, identeq_200493)(tident200021* id, NimStringDesc* name);
N_NIMCALL(tnode225816*, optpragmas_246507)(tparser244205* p);
N_NIMCALL(tnode225816*, newprocnode_228432)(NU8 kind, tlineinfo195539 info, tnode225816* body, tnode225816* params, tnode225816* name, tnode225816* pattern, tnode225816* genericparams, tnode225816* pragmas, tnode225816* exceptions);
N_NIMCALL(tnode225816*, dotexpr_245207)(tparser244205* p, tnode225816* a);
N_NIMCALL(tnode225816*, parsegstrlit_245584)(tparser244205* p, tnode225816* a);
N_NIMCALL(tnode225816*, newstrnodep_244289)(NU8 kind, NimStringDesc* strval, tparser244205* p);
N_NIMCALL(tnode225816*, parsetypedesckaux_246667)(tparser244205* p, NU8 kind, NU8 mode);
N_NIMCALL(void, parsesymbollist_246629)(tparser244205* p, tnode225816* result, NIM_BOOL allownil);
N_NIMCALL(tnode225816*, parsetuple_246354)(tparser244205* p, NIM_BOOL indentallowed);
N_NIMCALL(tnode225816*, parseprocexpr_246579)(tparser244205* p, NIM_BOOL isexpr);
N_NIMCALL(tnode225816*, parseenum_246725)(tparser244205* p);
N_NIMCALL(tnode225816*, parseobject_246732)(tparser244205* p);
N_NIMCALL(NIM_BOOL, validind_247724)(tparser244205* p);
N_NIMCALL(tnode225816*, parseobjectpart_247922)(tparser244205* p);
N_NIMCALL(tnode225816*, parseobjectwhen_247929)(tparser244205* p);
N_NIMCALL(tnode225816*, parseobjectcase_247967)(tparser244205* p);
N_NIMCALL(void, gettoknoind_244579)(tparser244205* p);
N_NIMCALL(tnode225816*, parsetypeclass_246739)(tparser244205* p);
N_NIMCALL(tnode225816*, newnode_226090)(NU8 kind);
N_NIMCALL(tnode225816*, parsetypeclassparam_248082)(tparser244205* p);
static N_INLINE(NI, sonslen_226249)(tnode225816* n);
N_NIMCALL(tnode225816*, newnode_228207)(NU8 kind, tlineinfo195539 info, tnodeseq225810* sons, ttype225852* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(tnode225816*, identorliteral_245816)(tparser244205* p, NU8 mode);
N_NIMCALL(tnode225816*, newintnodep_244273)(NU8 kind, NI64 intval, tparser244205* p);
N_NIMCALL(void, setbaseflags_244360)(tnode225816* n, NU8 base);
N_NIMCALL(tnode225816*, newfloatnodep_244281)(NU8 kind, NF floatval, tparser244205* p);
N_NIMCALL(tnode225816*, exprcoloneqexprlist_245442)(tparser244205* p, NU8 kind, NU8 endtok);
N_NIMCALL(tnode225816*, parsepar_245671)(tparser244205* p);
N_NIMCALL(void, semistmtlist_245620)(tparser244205* p, tnode225816* result);
N_NIMCALL(tnode225816*, newnodei_228007)(NU8 kind, tlineinfo195539 info, NI children);
N_NIMCALL(tnode225816*, setortableconstr_245455)(tparser244205* p);
N_NIMCALL(tnode225816*, parsecast_245515)(tparser244205* p);
N_NIMCALL(tnode225816*, parseoperators_246031)(tparser244205* p, tnode225816* headnode, NI limit, NU8 mode);
N_NIMCALL(NI, getprecedence_244867)(ttoken215186* tok, NIM_BOOL strongspaces);
N_NIMCALL(NIM_BOOL, isunary_244942)(tparser244205* p);
static N_INLINE(void, checkbinary_244967)(tparser244205* p);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
static N_INLINE(NIM_BOOL, isrightassociative_244846)(ttoken215186* tok);
N_NIMCALL(tnode225816*, makecall_246950)(tnode225816* n);
N_NIMCALL(tnode225816*, parsemacrocolon_245865)(tparser244205* p, tnode225816* x);
N_NIMCALL(tnode225816*, makestmtlist_233031)(tnode225816* n);
N_NIMCALL(tnode225816*, parsetry_244375)(tparser244205* p, NIM_BOOL isexpr);
N_NIMCALL(tnode225816*, parsewhile_247417)(tparser244205* p);
N_NIMCALL(tnode225816*, parseexceptblock_247518)(tparser244205* p, NU8 kind);
N_NIMCALL(tnode225816*, parsefor_247530)(tparser244205* p);
N_NIMCALL(tnode225816*, parseblock_247558)(tparser244205* p);
N_NIMCALL(tnode225816*, parsestaticordefer_247578)(tparser244205* p, NU8 k);
N_NIMCALL(tnode225816*, parseasm_247590)(tparser244205* p);
N_NIMCALL(tnode225816*, parseroutine_247737)(tparser244205* p, NU8 kind);
N_NIMCALL(tnode225816*, parsepattern_247713)(tparser244205* p);
N_NIMCALL(tnode225816*, parsegenericparamlist_247666)(tparser244205* p);
N_NIMCALL(tnode225816*, parsegenericparam_247610)(tparser244205* p);
N_NIMCALL(void, indandcomment_244352)(tparser244205* p, tnode225816* n);
N_NIMCALL(tnode225816*, parsesection_247804)(tparser244205* p, NU8 kind, tdefparser247797 defparser);
N_NIMCALL(tnode225816*, parsetypedef_248176)(tparser244205* p);
N_NIMCALL(tnode225816*, parsetypedefaux_246939)(tparser244205* p);
N_NIMCALL(tnode225816*, parseconstant_247853)(tparser244205* p);
N_NIMCALL(tnode225816*, parsevariable_248247)(tparser244205* p);
N_NIMCALL(tnode225816*, parsevartuple_248205)(tparser244205* p);
N_NIMCALL(tnode225816*, parsebind_248268)(tparser244205* p, NU8 k);
N_NIMCALL(tnode225816*, qualifiedident_245220)(tparser244205* p);
N_NIMCALL(void, closelexer_215258)(tlexer215190* lex);
N_NIMCALL(tllstream211204*, llstreamopen_211220)(NimStringDesc* data);
N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_NIMCALL(void, openparser_244417)(tparser244205* p, NimStringDesc* filename, tllstream211204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(tnode225816*, parseall_244216)(tparser244205* p);
N_NIMCALL(void, closeparser_244223)(tparser244205* p);
STRING_LITERAL(TMP1080, "", 0);
STRING_LITERAL(TMP1081, "skipComment", 11);
extern NIM_CONST TY215175 toktypetostr_215174;
STRING_LITERAL(TMP1202, ".}", 2);
static NIM_CONST TY244923 TMP1203 = {
0x30, 0x00, 0x08, 0x00, 0x64, 0xD0, 0x06, 0x06,
0x40, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00}
;
STRING_LITERAL(TMP1204, ")", 1);
STRING_LITERAL(TMP1205, "->", 2);
static NIM_CONST TY244923 TMP1206 = {
0x00, 0x2A, 0x03, 0x1A, 0x09, 0x09, 0x00, 0x20,
0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP1207, "Number of spaces around \'$#\' not consistent", 43);
STRING_LITERAL(TMP1208, "Number of spaces must be 0,1,2,4 or 8", 37);
STRING_LITERAL(TMP1209, "except", 6);
TNimType NTI244205; /* TParser */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI215190; /* TLexer */
extern TNimType NTI215186; /* TToken */
extern tgcheap47016 gch_47044;
extern tnode225816* emptynode_226738;
extern TNimType NTI225810; /* TNodeSeq */

N_NIMCALL(void, gettok_244243)(tparser244205* p) {
	rawgettok_215238((&(*p).Lex), (&(*p).Tok));
}

N_NIMCALL(void, openparser_244402)(tparser244205* p, NI32 fileidx, tllstream211204* inputstream, NIM_BOOL strongspaces) {
	inittoken_215482((&(*p).Tok));
	openlexer_215229((&(*p).Lex), fileidx, inputstream);
	gettok_244243(p);
	(*p).Firsttok = NIM_TRUE;
	(*p).Strongspaces = strongspaces;
}

N_NIMCALL(void, openparser_244417)(tparser244205* p, NimStringDesc* filename, tllstream211204* inputstream, NIM_BOOL strongspaces) {
	NI32 LOC1;
	LOC1 = 0;
	LOC1 = fileinfoidx_195747(filename);
	openparser_244402(p, LOC1, inputstream, strongspaces);
}

static N_INLINE(tlineinfo195539, getlineinfo_215247)(tlexer215190* l, ttoken215186* tok) {
	tlineinfo195539 result;
	memset((void*)(&result), 0, sizeof(result));
	result = newlineinfo_196129((*l).Fileidx, (*tok).Line, (*tok).Col);
	return result;
}

N_NIMCALL(tlineinfo195539, parlineinfo_244316)(tparser244205* p) {
	tlineinfo195539 result;
	memset((void*)(&result), 0, sizeof(result));
	result = getlineinfo_215247((&(*p).Lex), (&(*p).Tok));
	return result;
}

N_NIMCALL(tnode225816*, newnodep_244266)(NU8 kind, tparser244205* p) {
	tnode225816* result;
	tlineinfo195539 LOC1;
	result = 0;
	LOC1 = parlineinfo_244316(p);
	result = newnodei_226138(kind, LOC1);
	return result;
}

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

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell44933* 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_244250)(tparser244205* p, NU16 msg, NimStringDesc* arg) {
	lexmessage_215289((&(*p).Lex), msg, arg);
}

N_NIMCALL(void, rawskipcomment_244497)(tparser244205* p, tnode225816* 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*) &TMP1080));
				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_244250((&(*p)), ((NU16) 2), ((NimStringDesc*) &TMP1081));
		}
		LA5: ;
		gettok_244243(p);
	}
	LA3: ;
}

N_NIMCALL(void, skipcomment_244258)(tparser244205* p, tnode225816* node) {
	{
		if (!((*p).Tok.Indent < 0)) goto LA3;
		rawskipcomment_244497(p, node);
	}
	LA3: ;
}

N_NIMCALL(void, skipind_244330)(tparser244205* p) {
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		{
			if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA7;
			parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, optind_244344)(tparser244205* p, tnode225816* n) {
	skipcomment_244258(p, n);
	skipind_244330(p);
}

N_NIMCALL(void, eat_244322)(tparser244205* p, NU8 toktype) {
	{
		if (!((*p).Tok.Toktype == toktype)) goto LA3;
		gettok_244243(p);
	}
	goto LA1;
	LA3: ;
	{
		lexmessage_215289((&(*p).Lex), ((NU16) 23), toktypetostr_215174[(toktype)- 0]);
	}
	LA1: ;
}

N_NIMCALL(void, colcom_245001)(tparser244205* p, tnode225816* n) {
	eat_244322(p, ((NU8) 106));
	skipcomment_244258(p, n);
}

N_NIMCALL(tnode225816*, parseifexpr_246101)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	tnode225816* branch;
	tnode225816* LOC9;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	{
		while (1) {
			tnode225816* branch;
			tnode225816* LOC3;
			tnode225816* LOC4;
			gettok_244243(p);
			branch = newnodep_244266(((NU8) 49), (&(*p)));
			LOC3 = 0;
			LOC3 = parseexpr_244790(p);
			addson_226287(branch, LOC3);
			colcom_245001(p, branch);
			LOC4 = 0;
			LOC4 = parseexpr_244790(p);
			addson_226287(branch, LOC4);
			optind_244344(p, branch);
			addson_226287(result, branch);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 21)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		}
	} LA1: ;
	branch = newnodep_244266(((NU8) 50), (&(*p)));
	eat_244322(p, ((NU8) 22));
	colcom_245001(p, branch);
	LOC9 = 0;
	LOC9 = parseexpr_244790(p);
	addson_226287(branch, LOC9);
	addson_226287(result, branch);
	return result;
}

N_NIMCALL(void, exprlist_245160)(tparser244205* p, NU8 endtok, tnode225816* result) {
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			tnode225816* 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_244790(p);
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_244243(p);
			optind_244344(p, a);
		} LA2: ;
	} LA1: ;
	eat_244322(p, endtok);
}

N_NIMCALL(void, parmessage_244452)(tparser244205* p, NU16 msg, ttoken215186* tok) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = prettytok_215434(tok);
	parmessage_244250(p, msg, LOC1);
}

N_NIMCALL(NIM_BOOL, isexprstart_246619)(tparser244205* 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(tnode225816*, parsereturnorraise_247355)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	gettok_244243(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA3;
		skipcomment_244258(p, result);
		addson_226287(result, emptynode_226738);
	}
	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_246619((&(*p)));
		LOC6 = !(LOC10);
		LA9: ;
		if (!LOC6) goto LA11;
		addson_226287(result, emptynode_226738);
	}
	goto LA1;
	LA11: ;
	{
		tnode225816* LOC14;
		LOC14 = 0;
		LOC14 = parseexpr_244790(p);
		addson_226287(result, LOC14);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, colonorequals_245118)(tparser244205* p, tnode225816* a) {
	tnode225816* result;
	result = 0;
	{
		tnode225816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		result = newnodep_244266(((NU8) 34), (&(*p)));
		gettok_244243(p);
		addson_226287(result, a);
		LOC5 = 0;
		LOC5 = parseexpr_244790(p);
		addson_226287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		tnode225816* LOC9;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA7;
		result = newnodep_244266(((NU8) 33), (&(*p)));
		gettok_244243(p);
		addson_226287(result, a);
		LOC9 = 0;
		LOC9 = parseexpr_244790(p);
		addson_226287(result, LOC9);
	}
	goto LA1;
	LA7: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, exprcoloneqexpr_245148)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	a = parseexpr_244790(p);
	result = colonorequals_245118(p, a);
	return result;
}

N_NIMCALL(void, optpar_244337)(tparser244205* p) {
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		{
			if (!((*p).Tok.Indent < (*p).Currind)) goto LA7;
			parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(tnode225816*, parsepragma_246131)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 90), (&(*p)));
	(*p).Inpragma += 1;
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			tnode225816* a;
			if (!!(((*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 1)))) goto LA2;
			a = exprcoloneqexpr_245148(p);
			addson_226287(result, a);
			{
				if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA5;
				gettok_244243(p);
				skipcomment_244258(p, a);
			}
			LA5: ;
		} LA2: ;
	}
	optpar_244337(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 97))) goto LA9;
		gettok_244243(p);
	}
	goto LA7;
	LA9: ;
	{
		parmessage_244250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1202));
	}
	LA7: ;
	(*p).Inpragma -= 1;
	return result;
}

N_NIMCALL(tnode225816*, parsestmtpragma_248297)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = parsepragma_246131(p);
	{
		NIM_BOOL LOC3;
		tnode225816* a;
		tnode225816* 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_226138(((NU8) 91), (*a).Info);
		gettok_244243(p);
		skipcomment_244258(p, result);
		add_226498(result, a);
		LOC7 = 0;
		LOC7 = parsestmt_244797(p);
		add_226498(result, LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode225816*, parsemodulename_247120)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	result = 0;
	result = parseexpr_244790(p);
	return result;
}

N_NIMCALL(tnode225816*, parseimport_247207)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	a = parsemodulename_247120(p, kind);
	addson_226287(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_244243(p);
		optind_244344(p, result);
		{
			while (1) {
				a = parsemodulename_247120(p, kind);
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA13;
					goto LA9;
				}
				LA13: ;
				addson_226287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA17;
					goto LA9;
				}
				LA17: ;
				gettok_244243(p);
				optind_244344(p, a);
			}
		} LA9: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode225816*, parsefromstmt_247318)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	result = newnodep_244266(((NU8) 120), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	a = parsemodulename_247120(p, ((NU8) 116));
	addson_226287(result, a);
	eat_244322(p, ((NU8) 33));
	optind_244344(p, result);
	{
		while (1) {
			a = parseexpr_244790(p);
			{
				if (!((*a).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_244243(p);
			optind_244344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parseincludestmt_247281)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 121), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			tnode225816* a;
			a = parseexpr_244790(p);
			{
				if (!((*a).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_244243(p);
			optind_244344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, newcommentstmt_247785)(tparser244205* p) {
	tnode225816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_244266(((NU8) 125), (&(*p)));
	LOC1 = 0;
	LOC1 = (*result).Comment; (*result).Comment = copyStringRC1((*p).Tok.Literal);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	gettok_244243(p);
	return result;
}

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

static N_INLINE(NIM_BOOL, issigillike_244827)(ttoken215186* 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) {
	{
		tcell44933* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48646(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell44933* 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(tnode225816*, newidentnodep_244297)(tident200021* ident, tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 2), p);
	asgnRefNoCycle((void**) (&(*result).kindU.S5.Ident), ident);
	return result;
}

N_NIMCALL(void, exprcoloneqexprlistaux_245240)(tparser244205* p, NU8 endtok, tnode225816* result) {
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			tnode225816* 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_245148(p);
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_244243(p);
			skipcomment_244258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_244337(p);
	eat_244322(p, endtok);
}

N_NIMCALL(tnode225816*, namedparams_245850)(tparser244205* p, tnode225816* callee, NU8 kind, NU8 endtok) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	a = callee;
	result = newnodep_244266(kind, (&(*p)));
	addson_226287(result, a);
	exprcoloneqexprlistaux_245240(p, endtok, result);
	return result;
}

static N_INLINE(NI, len_226364)(tnode225816* 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(tnode225816*, parsesymbol_244367)(tparser244205* p, NIM_BOOL allownil) {
	tnode225816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	{
		result = newidentnodep_244297((*p).Tok.Ident, (&(*p)));
		gettok_244243(p);
	}
	break;
	case ((NU8) 113):
	{
		result = newnodep_244266(((NU8) 53), (&(*p)));
		gettok_244243(p);
		{
			while (1) {
				switch ((*p).Tok.Toktype) {
				case ((NU8) 113):
				{
					{
						NI LOC8;
						LOC8 = 0;
						LOC8 = len_226364(result);
						if (!(LOC8 == 0)) goto LA9;
						parmessage_244452((&(*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;
					tident200021* LOC15;
					tnode225816* LOC16;
					accm = copyString(((NimStringDesc*) &TMP1080));
					{
						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_215271((&(*p).Tok));
							accm = resizeString(accm, LOC14->Sup.len + 0);
appendString(accm, LOC14);
							gettok_244243(p);
						} LA13: ;
					}
					LOC15 = 0;
					LOC15 = getident_200472(accm);
					LOC16 = 0;
					LOC16 = newidentnodep_244297(LOC15, (&(*p)));
					add_226498(result, LOC16);
				}
				break;
				case ((NU8) 3) ... ((NU8) 71):
				case ((NU8) 2):
				case ((NU8) 72) ... ((NU8) 91):
				{
					NimStringDesc* LOC18;
					tident200021* LOC19;
					tnode225816* LOC20;
					LOC18 = 0;
					LOC18 = toktostr_215271((&(*p).Tok));
					LOC19 = 0;
					LOC19 = getident_200472(LOC18);
					LOC20 = 0;
					LOC20 = newidentnodep_244297(LOC19, (&(*p)));
					add_226498(result, LOC20);
					gettok_244243(p);
				}
				break;
				default:
				{
					parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
				}
				break;
				}
			}
		} LA3: ;
		eat_244322(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_244266(((NU8) 23), (&(*p)));
			gettok_244243(p);
		}
		goto LA23;
		LA27: ;
		{
			parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
			gettok_244243(p);
			result = emptynode_226738;
		}
		LA23: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, identvis_246211)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	a = parsesymbol_244367(p, NIM_FALSE);
	{
		tnode225816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 111))) goto LA3;
		result = newnodep_244266(((NU8) 31), (&(*p)));
		LOC5 = 0;
		LOC5 = newidentnodep_244297((*p).Tok.Ident, (&(*p)));
		addson_226287(result, LOC5);
		addson_226287(result, a);
		gettok_244243(p);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, identwithpragma_246232)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	a = identvis_246211(p);
	{
		tnode225816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 100))) goto LA3;
		result = newnodep_244266(((NU8) 43), (&(*p)));
		addson_226287(result, a);
		LOC5 = 0;
		LOC5 = parsepragma_246131(p);
		addson_226287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parsetypedesc_244804)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = simpleexpr_245612(p, ((NU8) 1));
	return result;
}

N_NIMCALL(tnode225816*, parseidentcolonequals_246262)(tparser244205* p, NU8 flags) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	a = 0;
	result = newnodep_244266(((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_246232(p);
				}
				goto LA4;
				LA6: ;
				{
					a = parsesymbol_244367(p, NIM_FALSE);
				}
				LA4: ;
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA11;
					goto BeforeRet;
				}
				LA11: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA16;
				goto LA1;
			}
			LA16: ;
			gettok_244243(p);
			optind_244344(p, a);
		}
	} LA1: ;
	{
		tnode225816* LOC22;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA20;
		gettok_244243(p);
		optind_244344(p, result);
		LOC22 = 0;
		LOC22 = parsetypedesc_244804(p);
		addson_226287(result, LOC22);
	}
	goto LA18;
	LA20: ;
	{
		addson_226287(result, emptynode_226738);
		{
			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_244452((&(*p)), ((NU16) 59), (&(*p).Tok));
		}
		LA28: ;
	}
	LA18: ;
	{
		tnode225816* LOC34;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA32;
		gettok_244243(p);
		optind_244344(p, result);
		LOC34 = 0;
		LOC34 = parseexpr_244790(p);
		addson_226287(result, LOC34);
	}
	goto LA30;
	LA32: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA30: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, parseparamlist_244819)(tparser244205* p, NIM_BOOL retcolon) {
	tnode225816* result;
	tnode225816* a;
	NIM_BOOL hasparle;
	NIM_BOOL LOC1;
	NIM_BOOL hasret;
	result = 0;
	a = 0;
	result = newnodep_244266(((NU8) 76), (&(*p)));
	addson_226287(result, emptynode_226738);
	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_244243(p);
		optind_244344(p, result);
		{
			while (1) {
				switch ((*p).Tok.Toktype) {
				case ((NU8) 2):
				case ((NU8) 113):
				{
					a = parseidentcolonequals_246262(p, 3);
				}
				break;
				case ((NU8) 93):
				{
					goto LA7;
				}
				break;
				default:
				{
					parmessage_244250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1204));
					goto LA7;
				}
				break;
				}
				addson_226287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA14;
					goto LA7;
				}
				LA14: ;
				gettok_244243(p);
				skipcomment_244258(p, a);
			}
		} LA7: ;
		optpar_244337(p);
		eat_244322(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_200493((*p).Tok.Ident, ((NimStringDesc*) &TMP1205));
		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_244243(p);
		optind_244344(p, result);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[0]), parsetypedesc_244804(p));
	}
	goto LA23;
	LA27: ;
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = !(retcolon);
		if (!(LOC30)) goto LA31;
		LOC30 = !(hasparle);
		LA31: ;
		if (!LOC30) goto LA32;
		result = emptynode_226738;
	}
	goto LA23;
	LA32: ;
	LA23: ;
	return result;
}

N_NIMCALL(tnode225816*, optpragmas_246507)(tparser244205* p) {
	tnode225816* 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_246131(p);
	}
	goto LA1;
	LA7: ;
	{
		result = emptynode_226738;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parsedoblock_246529)(tparser244205* p) {
	tnode225816* result;
	tlineinfo195539 info;
	tnode225816* params;
	tnode225816* pragmas;
	tnode225816* LOC1;
	result = 0;
	info = parlineinfo_244316((&(*p)));
	gettok_244243(p);
	params = parseparamlist_244819(p, NIM_FALSE);
	pragmas = optpragmas_246507(p);
	eat_244322(p, ((NU8) 106));
	skipcomment_244258(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_244797(p);
	result = newprocnode_228432(((NU8) 52), info, LOC1, params, emptynode_226738, emptynode_226738, emptynode_226738, pragmas, emptynode_226738);
	return result;
}

N_NIMCALL(void, parsedoblocks_244811)(tparser244205* p, tnode225816* call) {
	{
		tnode225816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 20))) goto LA3;
		LOC5 = 0;
		LOC5 = parsedoblock_246529(p);
		addson_226287(call, LOC5);
		{
			while (1) {
				NIM_BOOL LOC8;
				tnode225816* 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_246529(p);
				addson_226287(call, LOC10);
			} LA7: ;
		}
	}
	LA3: ;
}

N_NIMCALL(tnode225816*, dotexpr_245207)(tparser244205* p, tnode225816* a) {
	tnode225816* result;
	tlineinfo195539 info;
	result = 0;
	info = parlineinfo_244316((&(*p)));
	gettok_244243(p);
	optind_244344(p, a);
	switch ((*p).Tok.Toktype) {
	case ((NU8) 63):
	{
		result = newnodep_244266(((NU8) 132), (&(*p)));
		gettok_244243(p);
		addson_226287(result, a);
	}
	break;
	case ((NU8) 3):
	{
		result = newnodep_244266(((NU8) 63), (&(*p)));
		gettok_244243(p);
		addson_226287(result, a);
	}
	break;
	default:
	{
		tnode225816* LOC4;
		result = newnodei_226138(((NU8) 45), info);
		addson_226287(result, a);
		LOC4 = 0;
		LOC4 = parsesymbol_244367(p, NIM_FALSE);
		addson_226287(result, LOC4);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, newstrnodep_244289)(NU8 kind, NimStringDesc* strval, tparser244205* p) {
	tnode225816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_244266(kind, p);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(strval);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	return result;
}

N_NIMCALL(tnode225816*, parsegstrlit_245584)(tparser244205* p, tnode225816* a) {
	tnode225816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 89):
	{
		tnode225816* LOC2;
		result = newnodep_244266(((NU8) 28), (&(*p)));
		addson_226287(result, a);
		LOC2 = 0;
		LOC2 = newstrnodep_244289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		addson_226287(result, LOC2);
		gettok_244243(p);
	}
	break;
	case ((NU8) 90):
	{
		tnode225816* LOC4;
		result = newnodep_244266(((NU8) 28), (&(*p)));
		addson_226287(result, a);
		LOC4 = 0;
		LOC4 = newstrnodep_244289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		addson_226287(result, LOC4);
		gettok_244243(p);
	}
	break;
	default:
	{
		result = a;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, primarysuffix_245873)(tparser244205* p, tnode225816* r, NI baseindent) {
	tnode225816* 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_245850(p, result, ((NU8) 27), ((NU8) 93));
				{
					NIM_BOOL LOC16;
					NI LOC17;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = len_226364(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_244811(p, result);
				}
				LA14: ;
			}
			break;
			case ((NU8) 20):
			{
				tnode225816* a;
				a = result;
				result = newnodep_244266(((NU8) 27), (&(*p)));
				addson_226287(result, a);
				parsedoblocks_244811(p, result);
			}
			break;
			case ((NU8) 109):
			{
				result = dotexpr_245207(p, result);
				result = parsegstrlit_245584(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_245850(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_245850(p, result, ((NU8) 40), ((NU8) 97));
			}
			break;
			case ((NU8) 2):
			case ((NU8) 113):
			case ((NU8) 72) ... ((NU8) 91):
			case ((NU8) 45):
			case ((NU8) 12):
			{
				{
					tnode225816* a;
					tnode225816* LOC43;
					if (!((*p).Inpragma == 0)) goto LA41;
					a = result;
					result = newnodep_244266(((NU8) 26), (&(*p)));
					addson_226287(result, a);
					LOC43 = 0;
					LOC43 = parseexpr_244790(p);
					addson_226287(result, LOC43);
				}
				LA41: ;
				goto LA1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		} LA2: ;
	} LA1: ;
	return result;
}

N_NIMCALL(void, parsesymbollist_246629)(tparser244205* p, tnode225816* result, NIM_BOOL allownil) {
	{
		while (1) {
			tnode225816* s;
			s = parsesymbol_244367(p, allownil);
			{
				if (!((*s).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_226287(result, s);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_244243(p);
			optind_244344(p, s);
		}
	} LA1: ;
}

N_NIMCALL(tnode225816*, parsetypedesckaux_246667)(tparser244205* p, NU8 kind, NU8 mode) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode225816* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isoperator_244237((&(*p).Tok));
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = isexprstart_246619((&(*p)));
		LA5: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = primary_246014(p, mode);
		addson_226287(result, LOC8);
	}
	LA6: ;
	{
		NIM_BOOL LOC11;
		NU8 nodekind;
		tnode225816* 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_244243(p);
		list = newnodep_244266(nodekind, (&(*p)));
		addson_226287(result, list);
		parsesymbollist_246629(p, list, NIM_TRUE);
	}
	LA13: ;
	return result;
}

N_NIMCALL(tnode225816*, parsetuple_246354)(tparser244205* p, NIM_BOOL indentallowed) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 134), (&(*p)));
	gettok_244243(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 94))) goto LA3;
		gettok_244243(p);
		optind_244344(p, result);
		{
			while (1) {
				tnode225816* a;
				if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA6;
				a = parseidentcolonequals_246262(p, 0);
				addson_226287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA9;
					goto LA5;
				}
				LA9: ;
				gettok_244243(p);
				skipcomment_244258(p, a);
			} LA6: ;
		} LA5: ;
		optpar_244337(p);
		eat_244322(p, ((NU8) 95));
	}
	goto LA1;
	LA3: ;
	{
		if (!indentallowed) goto LA12;
		skipcomment_244258(p, result);
		{
			NI oldind_246402;
			if (!((*p).Currind < (*p).Tok.Indent)) goto LA16;
			oldind_246402 = (*p).Currind;
			(*p).Currind = (*p).Tok.Indent;
			skipcomment_244258(p, result);
			{
				while (1) {
					switch ((*p).Tok.Toktype) {
					case ((NU8) 2):
					case ((NU8) 113):
					{
						tnode225816* a;
						a = parseidentcolonequals_246262(p, 0);
						skipcomment_244258(p, a);
						addson_226287(result, a);
					}
					break;
					case ((NU8) 1):
					{
						goto LA18;
					}
					break;
					default:
					{
						parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
						goto LA18;
					}
					break;
					}
					{
						if (!!(((*p).Tok.Indent == (*p).Currind))) goto LA25;
						goto LA18;
					}
					LA25: ;
				}
			} LA18: ;
			(*p).Currind = oldind_246402;
		}
		LA16: ;
	}
	goto LA1;
	LA12: ;
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parseprocexpr_246579)(tparser244205* p, NIM_BOOL isexpr) {
	tnode225816* result;
	tlineinfo195539 info;
	NIM_BOOL hassignature;
	NIM_BOOL LOC1;
	tnode225816* params;
	tnode225816* pragmas;
	result = 0;
	info = parlineinfo_244316((&(*p)));
	gettok_244243(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_244819(p, NIM_TRUE);
	pragmas = optpragmas_246507(p);
	{
		NIM_BOOL LOC5;
		tnode225816* LOC9;
		LOC5 = 0;
		LOC5 = ((*p).Tok.Toktype == ((NU8) 108));
		if (!(LOC5)) goto LA6;
		LOC5 = isexpr;
		LA6: ;
		if (!LOC5) goto LA7;
		gettok_244243(p);
		skipcomment_244258(p, result);
		LOC9 = 0;
		LOC9 = parsestmt_244797(p);
		result = newprocnode_228432(((NU8) 51), info, LOC9, params, emptynode_226738, emptynode_226738, emptynode_226738, pragmas, emptynode_226738);
	}
	goto LA3;
	LA7: ;
	{
		result = newnodei_226138(((NU8) 146), info);
		{
			if (!hassignature) goto LA13;
			addson_226287(result, params);
			addson_226287(result, pragmas);
		}
		LA13: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode225816*, parseenum_246725)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 149), (&(*p)));
	gettok_244243(p);
	addson_226287(result, emptynode_226738);
	optind_244344(p, result);
	{
		while (1) {
			tnode225816* a;
			a = parsesymbol_244367(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_226498(result, a);
				goto LA1;
			}
			LA7: ;
			{
				NIM_BOOL LOC11;
				tnode225816* b;
				tnode225816* LOC15;
				LOC11 = 0;
				LOC11 = ((*p).Tok.Toktype == ((NU8) 108));
				if (!(LOC11)) goto LA12;
				LOC11 = ((*p).Tok.Indent < 0);
				LA12: ;
				if (!LOC11) goto LA13;
				gettok_244243(p);
				optind_244344(p, a);
				b = a;
				a = newnodep_244266(((NU8) 150), (&(*p)));
				addson_226287(a, b);
				LOC15 = 0;
				LOC15 = parseexpr_244790(p);
				addson_226287(a, LOC15);
				skipcomment_244258(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_244243(p);
				rawskipcomment_244497(p, a);
			}
			goto LA16;
			LA20: ;
			{
				skipcomment_244258(p, a);
			}
			LA16: ;
			addson_226287(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_226364(result);
		if (!(LOC33 <= 1)) goto LA34;
		LOC36 = 0;
		LOC36 = prettytok_215434((&(*p).Tok));
		lexmessage_215289((&(*p).Lex), ((NU16) 19), LOC36);
	}
	LA34: ;
	return result;
}

N_NIMCALL(NIM_BOOL, validind_247724)(tparser244205* 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(tnode225816*, parseobjectwhen_247929)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 139), (&(*p)));
	{
		while (1) {
			tnode225816* branch;
			tnode225816* LOC3;
			tnode225816* LOC4;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA2;
			gettok_244243(p);
			branch = newnodep_244266(((NU8) 86), (&(*p)));
			optind_244344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_244790(p);
			addson_226287(branch, LOC3);
			colcom_245001(p, branch);
			LOC4 = 0;
			LOC4 = parseobjectpart_247922(p);
			addson_226287(branch, LOC4);
			skipcomment_244258(p, branch);
			addson_226287(result, branch);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 21)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		} LA2: ;
	} LA1: ;
	{
		NIM_BOOL LOC11;
		tnode225816* branch;
		tnode225816* 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_244266(((NU8) 88), (&(*p)));
		eat_244322(p, ((NU8) 22));
		colcom_245001(p, branch);
		LOC15 = 0;
		LOC15 = parseobjectpart_247922(p);
		addson_226287(branch, LOC15);
		skipcomment_244258(p, branch);
		addson_226287(result, branch);
	}
	LA13: ;
	return result;
}

N_NIMCALL(void, gettoknoind_244579)(tparser244205* p) {
	gettok_244243(p);
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
	}
	LA3: ;
}

N_NIMCALL(tnode225816*, parseobjectcase_247967)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	tnode225816* LOC1;
	tnode225816* LOC2;
	NIM_BOOL wasindented;
	NI oldind;
	result = 0;
	result = newnodep_244266(((NU8) 138), (&(*p)));
	gettoknoind_244579(p);
	a = newnodep_244266(((NU8) 35), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_246232(p);
	addson_226287(a, LOC1);
	eat_244322(p, ((NU8) 106));
	LOC2 = 0;
	LOC2 = parsetypedesc_244804(p);
	addson_226287(a, LOC2);
	addson_226287(a, emptynode_226738);
	addson_226287(result, a);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA5;
		gettok_244243(p);
	}
	LA5: ;
	skipcomment_244258(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) {
			tnode225816* b;
			tnode225816* fields;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA12;
			b = 0;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 49):
			{
				b = newnodep_244266(((NU8) 85), (&(*p)));
				exprlist_245160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 22):
			{
				b = newnodep_244266(((NU8) 88), (&(*p)));
				gettok_244243(p);
				eat_244322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA11;
			}
			break;
			}
			skipcomment_244258(p, b);
			fields = parseobjectpart_247922(p);
			{
				if (!((*fields).Kind == ((NU8) 1))) goto LA18;
				parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
				fields = newnodep_244266(((NU8) 23), (&(*p)));
			}
			LA18: ;
			addson_226287(b, fields);
			addson_226287(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(tnode225816*, parseobjectpart_247922)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	{
		NI oldind_248026;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		result = newnodep_244266(((NU8) 137), (&(*p)));
		oldind_248026 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		rawskipcomment_244497(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):
				{
					tnode225816* LOC8;
					LOC8 = 0;
					LOC8 = parseobjectpart_247922(p);
					addson_226287(result, LOC8);
				}
				break;
				default:
				{
					parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
					goto LA5;
				}
				break;
				}
			} LA6: ;
		} LA5: ;
		(*p).Currind = oldind_248026;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).Tok.Toktype) {
		case ((NU8) 66):
		{
			result = parseobjectwhen_247929(p);
		}
		break;
		case ((NU8) 11):
		{
			result = parseobjectcase_247967(p);
		}
		break;
		case ((NU8) 2):
		case ((NU8) 113):
		{
			result = parseidentcolonequals_246262(p, 1);
			skipcomment_244258(p, result);
		}
		break;
		case ((NU8) 45):
		{
			result = newnodep_244266(((NU8) 23), (&(*p)));
			gettok_244243(p);
		}
		break;
		default:
		{
			result = emptynode_226738;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parseobject_246732)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC25;
	result = 0;
	result = newnodep_244266(((NU8) 133), (&(*p)));
	gettok_244243(p);
	{
		NIM_BOOL LOC3;
		tnode225816* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC3)) goto LA4;
		LOC3 = validind_247724(p);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = parsepragma_246131(p);
		addson_226287(result, LOC7);
	}
	goto LA1;
	LA5: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA1: ;
	{
		NIM_BOOL LOC11;
		tnode225816* a;
		tnode225816* 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_244266(((NU8) 77), (&(*p)));
		gettok_244243(p);
		LOC15 = 0;
		LOC15 = parsetypedesc_244804(p);
		addson_226287(a, LOC15);
		addson_226287(result, a);
	}
	goto LA9;
	LA13: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA9: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA19;
		skipcomment_244258(p, result);
	}
	LA19: ;
	{
		if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA23;
		addson_226287(result, emptynode_226738);
		goto BeforeRet;
	}
	LA23: ;
	LOC25 = 0;
	LOC25 = parseobjectpart_247922(p);
	addson_226287(result, LOC25);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, parsetypeclassparam_248082)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	{
		tnode225816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 65))) goto LA3;
		gettok_244243(p);
		result = newnode_226090(((NU8) 142));
		LOC5 = 0;
		LOC5 = parsesymbol_244367(p, NIM_FALSE);
		addson_226287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = parsesymbol_244367(p, NIM_FALSE);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parsetypeclass_246739)(tparser244205* p) {
	tnode225816* result;
	tnode225816* args;
	tnode225816* LOC1;
	result = 0;
	result = newnodep_244266(((NU8) 135), (&(*p)));
	gettok_244243(p);
	args = newnode_226090(((NU8) 151));
	addson_226287(result, args);
	LOC1 = 0;
	LOC1 = parsetypeclassparam_248082(p);
	addson_226287(args, LOC1);
	{
		while (1) {
			tnode225816* LOC4;
			if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA3;
			gettok_244243(p);
			LOC4 = 0;
			LOC4 = parsetypeclassparam_248082(p);
			addson_226287(args, LOC4);
		} LA3: ;
	}
	{
		NIM_BOOL LOC7;
		tnode225816* LOC11;
		LOC7 = 0;
		LOC7 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC7)) goto LA8;
		LOC7 = validind_247724(p);
		LA8: ;
		if (!LOC7) goto LA9;
		LOC11 = 0;
		LOC11 = parsepragma_246131(p);
		addson_226287(result, LOC11);
	}
	goto LA5;
	LA9: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		tnode225816* 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_244266(((NU8) 77), (&(*p)));
		gettok_244243(p);
		{
			while (1) {
				tnode225816* LOC21;
				LOC21 = 0;
				LOC21 = parsetypedesc_244804(p);
				addson_226287(a, LOC21);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA24;
					goto LA19;
				}
				LA24: ;
				gettok_244243(p);
			}
		} LA19: ;
		addson_226287(result, a);
	}
	goto LA13;
	LA17: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA13: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA29;
		skipcomment_244258(p, result);
	}
	LA29: ;
	{
		if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA33;
		addson_226287(result, emptynode_226738);
	}
	goto LA31;
	LA33: ;
	{
		tnode225816* LOC36;
		LOC36 = 0;
		LOC36 = parsestmt_244797(p);
		addson_226287(result, LOC36);
	}
	LA31: ;
	return result;
}

static N_INLINE(NI, sonslen_226249)(tnode225816* 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(tnode225816*, newintnodep_244273)(NU8 kind, NI64 intval, tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, p);
	(*result).kindU.S1.Intval = intval;
	return result;
}

N_NIMCALL(void, setbaseflags_244360)(tnode225816* 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(tnode225816*, newfloatnodep_244281)(NU8 kind, NF floatval, tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, p);
	(*result).kindU.S2.Floatval = floatval;
	return result;
}

N_NIMCALL(tnode225816*, exprcoloneqexprlist_245442)(tparser244205* p, NU8 kind, NU8 endtok) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	exprcoloneqexprlistaux_245240(p, endtok, result);
	return result;
}

N_NIMCALL(void, semistmtlist_245620)(tparser244205* p, tnode225816* result) {
	tnode225816* LOC1;
	(*p).Insemistmtlist += 1;
	LOC1 = 0;
	LOC1 = complexorsimplestmt_245605(p);
	add_226498(result, LOC1);
	{
		while (1) {
			tnode225816* LOC4;
			if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA3;
			gettok_244243(p);
			optind_244344(p, result);
			LOC4 = 0;
			LOC4 = complexorsimplestmt_245605(p);
			add_226498(result, LOC4);
		} LA3: ;
	}
	(*p).Insemistmtlist -= 1;
	(*result).Kind = ((NU8) 126);
}

N_NIMCALL(tnode225816*, parsepar_245671)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 37), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		if (!((TMP1206[(*p).Tok.Toktype/8] &(1<<((*p).Tok.Toktype%8)))!=0)) goto LA3;
		semistmtlist_245620(p, result);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA6;
		gettok_244243(p);
		optind_244344(p, result);
		semistmtlist_245620(p, result);
	}
	goto LA1;
	LA6: ;
	{
		tnode225816* a_245708;
		if (!!(((*p).Tok.Toktype == ((NU8) 93)))) goto LA9;
		a_245708 = simpleexpr_245612(p, ((NU8) 0));
		{
			tnode225816* b;
			tnode225816* asgn;
			if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA13;
			gettok_244243(p);
			optind_244344(p, result);
			b = parseexpr_244790(p);
			asgn = newnodei_228007(((NU8) 73), (*a_245708).Info, 2);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.Sons->data[0]), a_245708);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.Sons->data[1]), b);
			add_226498(result, asgn);
			{
				if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA17;
				semistmtlist_245620(p, result);
			}
			LA17: ;
		}
		goto LA11;
		LA13: ;
		{
			if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA20;
			add_226498(result, a_245708);
			semistmtlist_245620(p, result);
		}
		goto LA11;
		LA20: ;
		{
			a_245708 = colonorequals_245118(p, a_245708);
			add_226498(result, a_245708);
			{
				if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA25;
				gettok_244243(p);
				skipcomment_244258(p, a_245708);
				{
					while (1) {
						NIM_BOOL LOC29;
						tnode225816* 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_245148(p);
						addson_226287(result, a);
						{
							if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA33;
							goto LA27;
						}
						LA33: ;
						gettok_244243(p);
						skipcomment_244258(p, a);
					} LA28: ;
				} LA27: ;
			}
			LA25: ;
		}
		LA11: ;
	}
	goto LA1;
	LA9: ;
	LA1: ;
	optpar_244337(p);
	eat_244322(p, ((NU8) 93));
	return result;
}

N_NIMCALL(tnode225816*, setortableconstr_245455)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 39), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		gettok_244243(p);
		(*result).Kind = ((NU8) 54);
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				tnode225816* a;
				if (!!(((*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 1)))) goto LA7;
				a = exprcoloneqexpr_245148(p);
				{
					if (!((*a).Kind == ((NU8) 34))) goto LA10;
					(*result).Kind = ((NU8) 54);
				}
				LA10: ;
				addson_226287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA14;
					goto LA6;
				}
				LA14: ;
				gettok_244243(p);
				skipcomment_244258(p, a);
			} LA7: ;
		} LA6: ;
	}
	LA1: ;
	optpar_244337(p);
	eat_244322(p, ((NU8) 97));
	return result;
}

N_NIMCALL(tnode225816*, parsecast_245515)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC1;
	tnode225816* LOC2;
	result = 0;
	result = newnodep_244266(((NU8) 61), (&(*p)));
	gettok_244243(p);
	eat_244322(p, ((NU8) 94));
	optind_244344(p, result);
	LOC1 = 0;
	LOC1 = parsetypedesc_244804(p);
	addson_226287(result, LOC1);
	optpar_244337(p);
	eat_244322(p, ((NU8) 95));
	eat_244322(p, ((NU8) 92));
	optind_244344(p, result);
	LOC2 = 0;
	LOC2 = parseexpr_244790(p);
	addson_226287(result, LOC2);
	optpar_244337(p);
	eat_244322(p, ((NU8) 93));
	return result;
}

N_NIMCALL(tnode225816*, identorliteral_245816)(tparser244205* p, NU8 mode) {
	tnode225816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	{
		result = newidentnodep_244297((*p).Tok.Ident, (&(*p)));
		gettok_244243(p);
		result = parsegstrlit_245584(p, result);
	}
	break;
	case ((NU8) 113):
	{
		result = parsesymbol_244367(p, NIM_FALSE);
	}
	break;
	case ((NU8) 72):
	{
		result = newintnodep_244273(((NU8) 6), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 73):
	{
		result = newintnodep_244273(((NU8) 7), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 74):
	{
		result = newintnodep_244273(((NU8) 8), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 75):
	{
		result = newintnodep_244273(((NU8) 9), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 76):
	{
		result = newintnodep_244273(((NU8) 10), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 77):
	{
		result = newintnodep_244273(((NU8) 11), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 78):
	{
		result = newintnodep_244273(((NU8) 12), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 79):
	{
		result = newintnodep_244273(((NU8) 13), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 80):
	{
		result = newintnodep_244273(((NU8) 14), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 81):
	{
		result = newintnodep_244273(((NU8) 15), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 82):
	{
		result = newfloatnodep_244281(((NU8) 16), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 83):
	{
		result = newfloatnodep_244281(((NU8) 17), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 84):
	{
		result = newfloatnodep_244281(((NU8) 18), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 85):
	{
		result = newfloatnodep_244281(((NU8) 19), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_244360(result, (*p).Tok.Base);
		gettok_244243(p);
	}
	break;
	case ((NU8) 86):
	{
		result = newstrnodep_244289(((NU8) 20), (*p).Tok.Literal, (&(*p)));
		gettok_244243(p);
	}
	break;
	case ((NU8) 87):
	{
		result = newstrnodep_244289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		gettok_244243(p);
	}
	break;
	case ((NU8) 88):
	{
		result = newstrnodep_244289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		gettok_244243(p);
	}
	break;
	case ((NU8) 91):
	{
		result = newintnodep_244273(((NU8) 5), ((NI64) (((NU8)((*p).Tok.Literal->data[0])))), (&(*p)));
		gettok_244243(p);
	}
	break;
	case ((NU8) 45):
	{
		result = newnodep_244266(((NU8) 23), (&(*p)));
		gettok_244243(p);
	}
	break;
	case ((NU8) 92):
	{
		{
			if (!((6 &(1<<((mode)&7)))!=0)) goto LA25;
			result = exprcoloneqexprlist_245442(p, ((NU8) 37), ((NU8) 93));
		}
		goto LA23;
		LA25: ;
		{
			result = parsepar_245671(p);
		}
		LA23: ;
	}
	break;
	case ((NU8) 96):
	{
		result = setortableconstr_245455(p);
	}
	break;
	case ((NU8) 94):
	{
		result = exprcoloneqexprlist_245442(p, ((NU8) 41), ((NU8) 95));
	}
	break;
	case ((NU8) 12):
	{
		result = parsecast_245515(p);
	}
	break;
	default:
	{
		parmessage_244452((&(*p)), ((NU16) 60), (&(*p).Tok));
		gettok_244243(p);
		result = emptynode_226738;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, primary_246014)(tparser244205* p, NU8 mode) {
	tnode225816* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL issigil;
		tnode225816* a;
		LOC3 = 0;
		LOC3 = isoperator_244237((&(*p).Tok));
		if (!LOC3) goto LA4;
		issigil = issigillike_244827((&(*p).Tok));
		result = newnodep_244266(((NU8) 30), (&(*p)));
		a = newidentnodep_244297((*p).Tok.Ident, (&(*p)));
		addson_226287(result, a);
		gettok_244243(p);
		optind_244344(p, a);
		{
			NI baseind;
			tnode225816* LOC10;
			if (!issigil) goto LA8;
			baseind = (*p).Lex.Currlineindent;
			LOC10 = 0;
			LOC10 = primary_246014(p, ((NU8) 3));
			addson_226287(result, LOC10);
			result = primarysuffix_245873(p, result, baseind);
		}
		goto LA6;
		LA8: ;
		{
			tnode225816* LOC12;
			LOC12 = 0;
			LOC12 = primary_246014(p, ((NU8) 0));
			addson_226287(result, LOC12);
		}
		LA6: ;
		goto BeforeRet;
	}
	LA4: ;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 65):
	{
		result = parsetypedesckaux_246667(p, ((NU8) 142), mode);
	}
	break;
	case ((NU8) 55):
	{
		result = parsetypedesckaux_246667(p, ((NU8) 140), mode);
	}
	break;
	case ((NU8) 53):
	{
		result = parsetypedesckaux_246667(p, ((NU8) 141), mode);
	}
	break;
	case ((NU8) 18):
	{
		result = parsetypedesckaux_246667(p, ((NU8) 145), mode);
	}
	break;
	case ((NU8) 63):
	{
		result = parsetypedesckaux_246667(p, ((NU8) 132), mode);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetuple_246354(p, (mode == ((NU8) 2)));
	}
	break;
	case ((NU8) 52):
	{
		result = parseprocexpr_246579(p, !(((6 &(1<<((mode)&7)))!=0)));
	}
	break;
	case ((NU8) 39):
	{
		result = parseprocexpr_246579(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_246725(p);
		}
		goto LA27;
		LA29: ;
		{
			result = newnodep_244266(((NU8) 149), (&(*p)));
			gettok_244243(p);
		}
		LA27: ;
	}
	break;
	case ((NU8) 48):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA35;
			result = parseobject_246732(p);
		}
		goto LA33;
		LA35: ;
		{
			result = newnodep_244266(((NU8) 133), (&(*p)));
			gettok_244243(p);
		}
		LA33: ;
	}
	break;
	case ((NU8) 31):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA41;
			result = parsetypeclass_246739(p);
		}
		goto LA39;
		LA41: ;
		{
			parmessage_244452((&(*p)), ((NU16) 12), (&(*p).Tok));
		}
		LA39: ;
	}
	break;
	case ((NU8) 3):
	{
		tnode225816* LOC45;
		result = newnodep_244266(((NU8) 63), (&(*p)));
		gettoknoind_244579(p);
		LOC45 = 0;
		LOC45 = primary_246014(p, ((NU8) 0));
		addson_226287(result, LOC45);
	}
	break;
	case ((NU8) 59):
	{
		tlineinfo195539 info;
		tnode225816* next;
		info = parlineinfo_244316((&(*p)));
		gettoknoind_244579(p);
		next = primary_246014(p, ((NU8) 0));
		{
			NIM_BOOL LOC49;
			NI LOC51;
			tnodeseq225810* LOC54;
			TY246892 LOC55;
			LOC49 = 0;
			LOC49 = ((*next).Kind == ((NU8) 41));
			if (!(LOC49)) goto LA50;
			LOC51 = 0;
			LOC51 = sonslen_226249(next);
			LOC49 = (LOC51 == 1);
			LA50: ;
			if (!LOC49) goto LA52;
			LOC54 = 0;
			LOC54 = (tnodeseq225810*) newSeq((&NTI225810), 1);
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = (*next).kindU.S6.Sons->data[0];
			asgnRefNoCycle((void**) (&LOC54->data[0]), LOC55[0]);
			result = newnode_228207(((NU8) 136), info, LOC54, NIM_NIL);
		}
		goto LA47;
		LA52: ;
		{
			tnodeseq225810* LOC57;
			TY246892 LOC58;
			LOC57 = 0;
			LOC57 = (tnodeseq225810*) newSeq((&NTI225810), 1);
			memset((void*)LOC58, 0, sizeof(LOC58));
			LOC58[0] = next;
			asgnRefNoCycle((void**) (&LOC57->data[0]), LOC58[0]);
			result = newnode_228207(((NU8) 62), info, LOC57, NIM_NIL);
		}
		LA47: ;
	}
	break;
	case ((NU8) 8):
	{
		tnode225816* LOC60;
		result = newnodep_244266(((NU8) 55), (&(*p)));
		gettok_244243(p);
		optind_244344(p, result);
		LOC60 = 0;
		LOC60 = primary_246014(p, ((NU8) 0));
		addson_226287(result, LOC60);
	}
	break;
	default:
	{
		NI baseind;
		baseind = (*p).Lex.Currlineindent;
		result = identorliteral_245816(p, mode);
		{
			if (!!((mode == ((NU8) 3)))) goto LA64;
			result = primarysuffix_245873(p, result, baseind);
		}
		LA64: ;
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(NI, getprecedence_244867)(ttoken215186* 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_244942)(tparser244205* 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_244967)(tparser244205* 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_215434((&(*p).Tok));
			LOC14 = 0;
			LOC14 = nsuFormatSingleElem(((NimStringDesc*) &TMP1207), LOC13);
			parmessage_244250(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_244250(p, ((NU16) 4), ((NimStringDesc*) &TMP1208));
		}
		goto LA7;
		LA16: ;
		LA7: ;
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isrightassociative_244846)(ttoken215186* 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(tnode225816*, parseoperators_246031)(tparser244205* p, tnode225816* headnode, NI limit, NU8 mode) {
	tnode225816* result;
	NI opprec;
	NU8 modeb;
	result = 0;
	result = headnode;
	opprec = getprecedence_244867((&(*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;
			tnode225816* a;
			tnode225816* opnode;
			tnode225816* 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_244942((&(*p)));
			LOC8 = !(LOC12);
			LA11: ;
			if (!LOC8) goto LA7;
			checkbinary_244967((&(*p)));
			LOC13 = 0;
			LOC13 = isrightassociative_244846((&(*p).Tok));
			leftassoc = (NI32)(1 - ((NI) (LOC13)));
			a = newnodep_244266(((NU8) 29), (&(*p)));
			opnode = newidentnodep_244297((*p).Tok.Ident, (&(*p)));
			gettok_244243(p);
			optind_244344(p, opnode);
			b = simpleexpraux_246022(p, (NI32)(opprec + leftassoc), modeb);
			addson_226287(a, opnode);
			addson_226287(a, result);
			addson_226287(a, b);
			result = a;
			opprec = getprecedence_244867((&(*p).Tok), (*p).Strongspaces);
		} LA7: ;
	}
	return result;
}

N_NIMCALL(tnode225816*, simpleexpraux_246022)(tparser244205* p, NI limit, NU8 mode) {
	tnode225816* result;
	result = 0;
	result = primary_246014(p, mode);
	result = parseoperators_246031(p, result, limit, mode);
	return result;
}

N_NIMCALL(tnode225816*, simpleexpr_245612)(tparser244205* p, NU8 mode) {
	tnode225816* result;
	result = 0;
	result = simpleexpraux_246022(p, -1, mode);
	return result;
}

N_NIMCALL(tnode225816*, makecall_246950)(tnode225816* n) {
	tnode225816* 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_226138(((NU8) 27), (*n).Info);
		add_226498(result, n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parsemacrocolon_245865)(tparser244205* p, tnode225816* x) {
	tnode225816* 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_246950(result);
		gettok_244243(p);
		skipcomment_244258(p, result);
		{
			tnode225816* body;
			tnode225816* 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_244797(p);
			LOC11 = 0;
			LOC11 = makestmtlist_233031(body);
			addson_226287(result, LOC11);
		}
		LA9: ;
		{
			while (1) {
				tnode225816* b;
				tnode225816* LOC20;
				if (!((*p).Tok.Indent == (*p).Currind)) goto LA13;
				b = 0;
				switch ((*p).Tok.Toktype) {
				case ((NU8) 49):
				{
					b = newnodep_244266(((NU8) 85), (&(*p)));
					exprlist_245160(p, ((NU8) 106), b);
				}
				break;
				case ((NU8) 21):
				{
					tnode225816* LOC16;
					b = newnodep_244266(((NU8) 86), (&(*p)));
					gettok_244243(p);
					optind_244344(p, b);
					LOC16 = 0;
					LOC16 = parseexpr_244790(p);
					addson_226287(b, LOC16);
					eat_244322(p, ((NU8) 106));
				}
				break;
				case ((NU8) 25):
				{
					b = newnodep_244266(((NU8) 87), (&(*p)));
					exprlist_245160(p, ((NU8) 106), b);
					skipcomment_244258(p, b);
				}
				break;
				case ((NU8) 22):
				{
					b = newnodep_244266(((NU8) 88), (&(*p)));
					gettok_244243(p);
					eat_244322(p, ((NU8) 106));
				}
				break;
				default:
				{
					goto LA12;
				}
				break;
				}
				LOC20 = 0;
				LOC20 = parsestmt_244797(p);
				addson_226287(b, LOC20);
				addson_226287(result, b);
				{
					if (!((*b).Kind == ((NU8) 88))) goto LA23;
					goto LA12;
				}
				LA23: ;
			} LA13: ;
		} LA12: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode225816*, parseexprstmt_247028)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	(*p).Inpragma += 1;
	a = simpleexpr_245612(p, ((NU8) 0));
	(*p).Inpragma -= 1;
	{
		tnode225816* b;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA3;
		gettok_244243(p);
		optind_244344(p, result);
		b = parseexpr_244790(p);
		result = newnodei_226138(((NU8) 73), (*a).Info);
		addson_226287(result, a);
		addson_226287(result, b);
	}
	goto LA1;
	LA3: ;
	{
		{
			NIM_BOOL LOC8;
			tnodeseq225810* LOC12;
			TY246892 LOC13;
			LOC8 = 0;
			LOC8 = ((*p).Tok.Indent < 0);
			if (!(LOC8)) goto LA9;
			LOC8 = isexprstart_246619((&(*p)));
			LA9: ;
			if (!LOC8) goto LA10;
			LOC12 = 0;
			LOC12 = (tnodeseq225810*) newSeq((&NTI225810), 1);
			memset((void*)LOC13, 0, sizeof(LOC13));
			LOC13[0] = a;
			asgnRefNoCycle((void**) (&LOC12->data[0]), LOC13[0]);
			result = newnode_228207(((NU8) 26), (*a).Info, LOC12, NIM_NIL);
			{
				while (1) {
					tnode225816* e;
					e = parseexpr_244790(p);
					addson_226287(result, e);
					{
						if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA18;
						goto LA14;
					}
					LA18: ;
					gettok_244243(p);
					optind_244344(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_246950(result);
			parsedoblocks_244811(p, result);
			goto BeforeRet;
		}
		LA25: ;
		result = parsemacrocolon_245865(p, result);
	}
	LA1: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, simplestmt_248319)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 56):
	{
		result = parsereturnorraise_247355(p, ((NU8) 109));
	}
	break;
	case ((NU8) 54):
	{
		result = parsereturnorraise_247355(p, ((NU8) 108));
	}
	break;
	case ((NU8) 71):
	{
		result = parsereturnorraise_247355(p, ((NU8) 104));
	}
	break;
	case ((NU8) 17):
	{
		result = parsereturnorraise_247355(p, ((NU8) 114));
	}
	break;
	case ((NU8) 10):
	{
		result = parsereturnorraise_247355(p, ((NU8) 110));
	}
	break;
	case ((NU8) 14):
	{
		result = parsereturnorraise_247355(p, ((NU8) 111));
	}
	break;
	case ((NU8) 100):
	{
		result = parsestmtpragma_248297(p);
	}
	break;
	case ((NU8) 33):
	{
		result = parseimport_247207(p, ((NU8) 116));
	}
	break;
	case ((NU8) 26):
	{
		result = parseimport_247207(p, ((NU8) 118));
	}
	break;
	case ((NU8) 29):
	{
		result = parsefromstmt_247318(p);
	}
	break;
	case ((NU8) 35):
	{
		result = parseincludestmt_247281(p);
	}
	break;
	case ((NU8) 112):
	{
		result = newcommentstmt_247785(p);
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = isexprstart_246619((&(*p)));
			if (!LOC16) goto LA17;
			result = parseexprstmt_247028(p);
		}
		goto LA14;
		LA17: ;
		{
			result = emptynode_226738;
		}
		LA14: ;
	}
	break;
	}
	{
		if (!!(((*result).Kind == ((NU8) 1) || (*result).Kind == ((NU8) 125)))) goto LA22;
		skipcomment_244258(p, result);
	}
	LA22: ;
	return result;
}

N_NIMCALL(tnode225816*, parsestmt_244797)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	{
		NI oldind_248371;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		result = newnodep_244266(((NU8) 115), (&(*p)));
		oldind_248371 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		{
			while (1) {
				tnode225816* a;
				{
					if (!((*p).Tok.Indent == (*p).Currind)) goto LA9;
				}
				goto LA7;
				LA9: ;
				{
					if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA12;
					gettok_244243(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_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
					}
					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_245605(p);
				{
					if (!!(((*a).Kind == ((NU8) 1)))) goto LA34;
					addson_226287(result, a);
				}
				goto LA32;
				LA34: ;
				{
					parmessage_244452((&(*p)), ((NU16) 60), (&(*p).Tok));
					gettok_244243(p);
				}
				LA32: ;
			}
		} LA5: ;
		(*p).Currind = oldind_248371;
	}
	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_244250((&(*p)), ((NU16) 153), ((NimStringDesc*) &TMP1080));
			result = emptynode_226738;
		}
		break;
		default:
		{
			{
				if (!(0 < (*p).Insemistmtlist)) goto LA42;
				result = simplestmt_248319(p);
				{
					if (!((*result).Kind == ((NU8) 1))) goto LA46;
					parmessage_244452((&(*p)), ((NU16) 60), (&(*p).Tok));
				}
				LA46: ;
			}
			goto LA40;
			LA42: ;
			{
				result = newnodep_244266(((NU8) 115), (&(*p)));
				{
					while (1) {
						tnode225816* a;
						{
							if (!(0 <= (*p).Tok.Indent)) goto LA53;
							parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
						}
						LA53: ;
						a = simplestmt_248319(p);
						{
							if (!((*a).Kind == ((NU8) 1))) goto LA57;
							parmessage_244452((&(*p)), ((NU16) 60), (&(*p).Tok));
						}
						LA57: ;
						add_226498(result, a);
						{
							if (!!(((*p).Tok.Toktype == ((NU8) 105)))) goto LA61;
							goto LA49;
						}
						LA61: ;
						gettok_244243(p);
					}
				} LA49: ;
			}
			LA40: ;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parsecase_244383)(tparser244205* p) {
	tnode225816* result;
	tnode225816* b;
	NIM_BOOL inelif;
	NIM_BOOL wasindented;
	tnode225816* LOC1;
	NI oldind;
	result = 0;
	b = 0;
	inelif = NIM_FALSE;
	wasindented = NIM_FALSE;
	result = newnodep_244266(((NU8) 97), (&(*p)));
	gettok_244243(p);
	LOC1 = 0;
	LOC1 = parseexpr_244790(p);
	addson_226287(result, LOC1);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA4;
		gettok_244243(p);
	}
	LA4: ;
	skipcomment_244258(p, result);
	oldind = (*p).Currind;
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA8;
		(*p).Currind = (*p).Tok.Indent;
		wasindented = NIM_TRUE;
	}
	LA8: ;
	{
		while (1) {
			tnode225816* 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_244266(((NU8) 85), (&(*p)));
				exprlist_245160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 21):
			{
				tnode225816* LOC18;
				inelif = NIM_TRUE;
				b = newnodep_244266(((NU8) 86), (&(*p)));
				gettok_244243(p);
				optind_244344(p, b);
				LOC18 = 0;
				LOC18 = parseexpr_244790(p);
				addson_226287(b, LOC18);
				eat_244322(p, ((NU8) 106));
			}
			break;
			case ((NU8) 22):
			{
				b = newnodep_244266(((NU8) 88), (&(*p)));
				gettok_244243(p);
				eat_244322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA10;
			}
			break;
			}
			skipcomment_244258(p, b);
			LOC21 = 0;
			LOC21 = parsestmt_244797(p);
			addson_226287(b, LOC21);
			addson_226287(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(tnode225816*, parsetry_244375)(tparser244205* p, NIM_BOOL isexpr) {
	tnode225816* result;
	tnode225816* LOC1;
	tnode225816* b;
	result = 0;
	result = newnodep_244266(((NU8) 106), (&(*p)));
	gettok_244243(p);
	eat_244322(p, ((NU8) 106));
	skipcomment_244258(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_244797(p);
	addson_226287(result, LOC1);
	b = NIM_NIL;
	{
		while (1) {
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			tnode225816* 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_244266(((NU8) 87), (&(*p)));
				exprlist_245160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 27):
			{
				b = newnodep_244266(((NU8) 107), (&(*p)));
				gettoknoind_244579(p);
				eat_244322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA2;
			}
			break;
			}
			skipcomment_244258(p, b);
			LOC11 = 0;
			LOC11 = parsestmt_244797(p);
			addson_226287(b, LOC11);
			addson_226287(result, b);
			{
				if (!((*b).Kind == ((NU8) 107))) goto LA14;
				goto LA2;
			}
			LA14: ;
		} LA3: ;
	} LA2: ;
	{
		if (!(b == NIM_NIL)) goto LA18;
		parmessage_244250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1209));
	}
	LA18: ;
	return result;
}

N_NIMCALL(tnode225816*, parseexpr_244790)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 32):
	{
		result = parseifexpr_246101(p, ((NU8) 48));
	}
	break;
	case ((NU8) 66):
	{
		result = parseifexpr_246101(p, ((NU8) 93));
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_244383(p);
	}
	break;
	case ((NU8) 61):
	{
		result = parsetry_244375(p, NIM_TRUE);
	}
	break;
	default:
	{
		result = simpleexpr_245612(p, ((NU8) 0));
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, parseiforwhen_247376)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	{
		while (1) {
			tnode225816* branch;
			tnode225816* LOC3;
			tnode225816* LOC4;
			gettok_244243(p);
			branch = newnodep_244266(((NU8) 86), (&(*p)));
			optind_244344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_244790(p);
			addson_226287(branch, LOC3);
			eat_244322(p, ((NU8) 106));
			skipcomment_244258(p, branch);
			LOC4 = 0;
			LOC4 = parsestmt_244797(p);
			addson_226287(branch, LOC4);
			skipcomment_244258(p, branch);
			addson_226287(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;
		tnode225816* branch;
		tnode225816* 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_244266(((NU8) 88), (&(*p)));
		eat_244322(p, ((NU8) 22));
		eat_244322(p, ((NU8) 106));
		skipcomment_244258(p, branch);
		LOC21 = 0;
		LOC21 = parsestmt_244797(p);
		addson_226287(branch, LOC21);
		addson_226287(result, branch);
	}
	LA19: ;
	return result;
}

N_NIMCALL(tnode225816*, parsewhile_247417)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC1;
	tnode225816* LOC2;
	result = 0;
	result = newnodep_244266(((NU8) 96), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	LOC1 = 0;
	LOC1 = parseexpr_244790(p);
	addson_226287(result, LOC1);
	colcom_245001(p, result);
	LOC2 = 0;
	LOC2 = parsestmt_244797(p);
	addson_226287(result, LOC2);
	return result;
}

N_NIMCALL(tnode225816*, parseexceptblock_247518)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	tnode225816* LOC1;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	gettoknoind_244579(p);
	colcom_245001(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_244797(p);
	addson_226287(result, LOC1);
	return result;
}

N_NIMCALL(tnode225816*, parsefor_247530)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	tnode225816* LOC3;
	tnode225816* LOC4;
	result = 0;
	result = newnodep_244266(((NU8) 94), (&(*p)));
	gettoknoind_244579(p);
	a = identwithpragma_246232(p);
	addson_226287(result, a);
	{
		while (1) {
			if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA2;
			gettok_244243(p);
			optind_244344(p, a);
			a = identwithpragma_246232(p);
			addson_226287(result, a);
		} LA2: ;
	}
	eat_244322(p, ((NU8) 34));
	LOC3 = 0;
	LOC3 = parseexpr_244790(p);
	addson_226287(result, LOC3);
	colcom_245001(p, result);
	LOC4 = 0;
	LOC4 = parsestmt_244797(p);
	addson_226287(result, LOC4);
	return result;
}

N_NIMCALL(tnode225816*, parseblock_247558)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC7;
	result = 0;
	result = newnodep_244266(((NU8) 112), (&(*p)));
	gettoknoind_244579(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		addson_226287(result, emptynode_226738);
	}
	goto LA1;
	LA3: ;
	{
		tnode225816* LOC6;
		LOC6 = 0;
		LOC6 = parsesymbol_244367(p, NIM_FALSE);
		addson_226287(result, LOC6);
	}
	LA1: ;
	colcom_245001(p, result);
	LOC7 = 0;
	LOC7 = parsestmt_244797(p);
	addson_226287(result, LOC7);
	return result;
}

N_NIMCALL(tnode225816*, parsestaticordefer_247578)(tparser244205* p, NU8 k) {
	tnode225816* result;
	tnode225816* LOC1;
	result = 0;
	result = newnodep_244266(k, (&(*p)));
	gettoknoind_244579(p);
	colcom_245001(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_244797(p);
	addson_226287(result, LOC1);
	return result;
}

N_NIMCALL(tnode225816*, parseasm_247590)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 89), (&(*p)));
	gettoknoind_244579(p);
	{
		tnode225816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 100))) goto LA3;
		LOC5 = 0;
		LOC5 = parsepragma_246131(p);
		addson_226287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA1: ;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 86):
	{
		tnode225816* LOC8;
		LOC8 = 0;
		LOC8 = newstrnodep_244289(((NU8) 20), (*p).Tok.Literal, (&(*p)));
		addson_226287(result, LOC8);
	}
	break;
	case ((NU8) 87):
	{
		tnode225816* LOC10;
		LOC10 = 0;
		LOC10 = newstrnodep_244289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		addson_226287(result, LOC10);
	}
	break;
	case ((NU8) 88):
	{
		tnode225816* LOC12;
		LOC12 = 0;
		LOC12 = newstrnodep_244289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		addson_226287(result, LOC12);
	}
	break;
	default:
	{
		parmessage_244250((&(*p)), ((NU16) 6), ((NimStringDesc*) &TMP1080));
		addson_226287(result, emptynode_226738);
		goto BeforeRet;
	}
	break;
	}
	gettok_244243(p);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, parsepattern_247713)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	eat_244322(p, ((NU8) 96));
	result = parsestmt_244797(p);
	eat_244322(p, ((NU8) 97));
	return result;
}

N_NIMCALL(tnode225816*, parsegenericparam_247610)(tparser244205* p) {
	tnode225816* result;
	tnode225816* a;
	result = 0;
	a = 0;
	result = newnodep_244266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).Tok.Toktype) {
			case ((NU8) 2):
			case ((NU8) 113):
			{
				a = parsesymbol_244367(p, NIM_FALSE);
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA11;
				goto LA1;
			}
			LA11: ;
			gettok_244243(p);
			optind_244344(p, a);
		}
	} LA1: ;
	{
		tnode225816* LOC17;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA15;
		gettok_244243(p);
		optind_244344(p, result);
		LOC17 = 0;
		LOC17 = parseexpr_244790(p);
		addson_226287(result, LOC17);
	}
	goto LA13;
	LA15: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA13: ;
	{
		tnode225816* LOC23;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA21;
		gettok_244243(p);
		optind_244344(p, result);
		LOC23 = 0;
		LOC23 = parseexpr_244790(p);
		addson_226287(result, LOC23);
	}
	goto LA19;
	LA21: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA19: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, parsegenericparamlist_247666)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 75), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			tnode225816* a;
			if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA2;
			a = parsegenericparam_247610(p);
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_244243(p);
			skipcomment_244258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_244337(p);
	eat_244322(p, ((NU8) 95));
	return result;
}

N_NIMCALL(void, indandcomment_244352)(tparser244205* p, tnode225816* n) {
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		{
			if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA7;
			rawskipcomment_244497(p, n);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		skipcomment_244258(p, n);
	}
	LA1: ;
}

N_NIMCALL(tnode225816*, parseroutine_247737)(tparser244205* p, NU8 kind) {
	tnode225816* result;
	tnode225816* LOC1;
	tnode225816* LOC18;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	LOC1 = 0;
	LOC1 = identvis_246211(p);
	addson_226287(result, LOC1);
	{
		NIM_BOOL LOC4;
		tnode225816* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).Tok.Toktype == ((NU8) 96));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_247724(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsepattern_247713(p);
		addson_226287(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA2: ;
	{
		NIM_BOOL LOC12;
		tnode225816* LOC16;
		LOC12 = 0;
		LOC12 = ((*p).Tok.Toktype == ((NU8) 94));
		if (!(LOC12)) goto LA13;
		LOC12 = validind_247724(p);
		LA13: ;
		if (!LOC12) goto LA14;
		LOC16 = 0;
		LOC16 = parsegenericparamlist_247666(p);
		add_226498(result, LOC16);
	}
	goto LA10;
	LA14: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA10: ;
	LOC18 = 0;
	LOC18 = parseparamlist_244819(p, NIM_TRUE);
	addson_226287(result, LOC18);
	{
		NIM_BOOL LOC21;
		tnode225816* LOC25;
		LOC21 = 0;
		LOC21 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC21)) goto LA22;
		LOC21 = validind_247724(p);
		LA22: ;
		if (!LOC21) goto LA23;
		LOC25 = 0;
		LOC25 = parsepragma_246131(p);
		addson_226287(result, LOC25);
	}
	goto LA19;
	LA23: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA19: ;
	addson_226287(result, emptynode_226738);
	{
		NIM_BOOL LOC29;
		tnode225816* LOC33;
		LOC29 = 0;
		LOC29 = ((*p).Tok.Toktype == ((NU8) 108));
		if (!(LOC29)) goto LA30;
		LOC29 = validind_247724(p);
		LA30: ;
		if (!LOC29) goto LA31;
		gettok_244243(p);
		skipcomment_244258(p, result);
		LOC33 = 0;
		LOC33 = parsestmt_244797(p);
		addson_226287(result, LOC33);
	}
	goto LA27;
	LA31: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA27: ;
	indandcomment_244352(p, result);
	return result;
}

N_NIMCALL(tnode225816*, parsesection_247804)(tparser244205* p, NU8 kind, tdefparser247797 defparser) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(kind, (&(*p)));
	{
		if (!!((kind == ((NU8) 98)))) goto LA3;
		gettok_244243(p);
	}
	LA3: ;
	skipcomment_244258(p, result);
	{
		NI oldind_247822;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA7;
		oldind_247822 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		skipcomment_244258(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):
				{
					tnode225816* a;
					a = defparser(p);
					skipcomment_244258(p, a);
					addson_226287(result, a);
				}
				break;
				case ((NU8) 112):
				{
					tnode225816* a;
					a = newcommentstmt_247785(p);
					addson_226287(result, a);
				}
				break;
				default:
				{
					parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
					goto LA9;
				}
				break;
				}
			} LA10: ;
		} LA9: ;
		(*p).Currind = oldind_247822;
		{
			NI LOC16;
			LOC16 = 0;
			LOC16 = len_226364(result);
			if (!(LOC16 == 0)) goto LA17;
			parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
		}
		LA17: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		tnode225816* 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_226287(result, LOC24);
	}
	goto LA5;
	LA22: ;
	{
		parmessage_244452((&(*p)), ((NU16) 19), (&(*p).Tok));
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode225816*, parsetypedefaux_246939)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = simpleexpr_245612(p, ((NU8) 2));
	return result;
}

N_NIMCALL(tnode225816*, parsetypedef_248176)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC1;
	result = 0;
	result = newnodep_244266(((NU8) 103), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_246232(p);
	addson_226287(result, LOC1);
	{
		NIM_BOOL LOC4;
		tnode225816* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).Tok.Toktype == ((NU8) 94));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_247724(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsegenericparamlist_247666(p);
		addson_226287(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA2: ;
	{
		tnode225816* LOC14;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA12;
		gettok_244243(p);
		optind_244344(p, result);
		LOC14 = 0;
		LOC14 = parsetypedefaux_246939(p);
		addson_226287(result, LOC14);
	}
	goto LA10;
	LA12: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA10: ;
	indandcomment_244352(p, result);
	return result;
}

N_NIMCALL(tnode225816*, parseconstant_247853)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC1;
	tnode225816* LOC8;
	result = 0;
	result = newnodep_244266(((NU8) 102), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_246232(p);
	addson_226287(result, LOC1);
	{
		tnode225816* LOC6;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA4;
		gettok_244243(p);
		optind_244344(p, result);
		LOC6 = 0;
		LOC6 = parsetypedesc_244804(p);
		addson_226287(result, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		addson_226287(result, emptynode_226738);
	}
	LA2: ;
	eat_244322(p, ((NU8) 108));
	optind_244344(p, result);
	LOC8 = 0;
	LOC8 = parseexpr_244790(p);
	addson_226287(result, LOC8);
	indandcomment_244352(p, result);
	return result;
}

N_NIMCALL(tnode225816*, parsevartuple_248205)(tparser244205* p) {
	tnode225816* result;
	tnode225816* LOC7;
	result = 0;
	result = newnodep_244266(((NU8) 36), (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			tnode225816* a;
			if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA2;
			a = identwithpragma_246232(p);
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_244243(p);
			skipcomment_244258(p, a);
		} LA2: ;
	} LA1: ;
	addson_226287(result, emptynode_226738);
	optpar_244337(p);
	eat_244322(p, ((NU8) 93));
	eat_244322(p, ((NU8) 108));
	optind_244344(p, result);
	LOC7 = 0;
	LOC7 = parseexpr_244790(p);
	addson_226287(result, LOC7);
	return result;
}

N_NIMCALL(tnode225816*, parsevariable_248247)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	{
		if (!((*p).Tok.Toktype == ((NU8) 92))) goto LA3;
		result = parsevartuple_248205(p);
	}
	goto LA1;
	LA3: ;
	{
		result = parseidentcolonequals_246262(p, 1);
	}
	LA1: ;
	indandcomment_244352(p, result);
	return result;
}

N_NIMCALL(tnode225816*, qualifiedident_245220)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = parsesymbol_244367(p, NIM_FALSE);
	{
		if (!((*p).Tok.Toktype == ((NU8) 109))) goto LA3;
		result = dotexpr_245207(p, result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode225816*, parsebind_248268)(tparser244205* p, NU8 k) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(k, (&(*p)));
	gettok_244243(p);
	optind_244344(p, result);
	{
		while (1) {
			tnode225816* a;
			a = qualifiedident_245220(p);
			addson_226287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_244243(p);
			optind_244344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, complexorsimplestmt_245605)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 32):
	{
		result = parseiforwhen_247376(p, ((NU8) 92));
	}
	break;
	case ((NU8) 67):
	{
		result = parsewhile_247417(p);
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_244383(p);
	}
	break;
	case ((NU8) 61):
	{
		result = parsetry_244375(p, NIM_FALSE);
	}
	break;
	case ((NU8) 27):
	{
		result = parseexceptblock_247518(p, ((NU8) 107));
	}
	break;
	case ((NU8) 25):
	{
		result = parseexceptblock_247518(p, ((NU8) 87));
	}
	break;
	case ((NU8) 28):
	{
		result = parsefor_247530(p);
	}
	break;
	case ((NU8) 9):
	{
		result = parseblock_247558(p);
	}
	break;
	case ((NU8) 59):
	{
		result = parsestaticordefer_247578(p, ((NU8) 113));
	}
	break;
	case ((NU8) 16):
	{
		result = parsestaticordefer_247578(p, ((NU8) 105));
	}
	break;
	case ((NU8) 6):
	{
		result = parseasm_247590(p);
	}
	break;
	case ((NU8) 52):
	{
		result = parseroutine_247737(p, ((NU8) 79));
	}
	break;
	case ((NU8) 42):
	{
		result = parseroutine_247737(p, ((NU8) 80));
	}
	break;
	case ((NU8) 39):
	{
		result = parseroutine_247737(p, ((NU8) 84));
	}
	break;
	case ((NU8) 41):
	{
		result = parseroutine_247737(p, ((NU8) 82));
	}
	break;
	case ((NU8) 60):
	{
		result = parseroutine_247737(p, ((NU8) 83));
	}
	break;
	case ((NU8) 15):
	{
		result = parseroutine_247737(p, ((NU8) 81));
	}
	break;
	case ((NU8) 63):
	{
		gettok_244243(p);
		{
			tnode225816* LOC23;
			if (!((*p).Tok.Toktype == ((NU8) 92))) goto LA21;
			gettok_244243(p);
			result = newnodep_244266(((NU8) 132), (&(*p)));
			LOC23 = 0;
			LOC23 = primary_246014(p, ((NU8) 1));
			addson_226287(result, LOC23);
			eat_244322(p, ((NU8) 93));
			result = parseoperators_246031(p, result, -1, ((NU8) 0));
		}
		goto LA19;
		LA21: ;
		{
			result = parsesection_247804(p, ((NU8) 98), parsetypedef_248176);
		}
		LA19: ;
	}
	break;
	case ((NU8) 13):
	{
		result = parsesection_247804(p, ((NU8) 101), parseconstant_247853);
	}
	break;
	case ((NU8) 40):
	{
		result = parsesection_247804(p, ((NU8) 100), parsevariable_248247);
	}
	break;
	case ((NU8) 66):
	{
		result = parseiforwhen_247376(p, ((NU8) 93));
	}
	break;
	case ((NU8) 65):
	{
		result = parsesection_247804(p, ((NU8) 99), parsevariable_248247);
	}
	break;
	case ((NU8) 8):
	{
		result = parsebind_248268(p, ((NU8) 122));
	}
	break;
	case ((NU8) 43):
	{
		result = parsebind_248268(p, ((NU8) 123));
	}
	break;
	case ((NU8) 64):
	{
		result = parsebind_248268(p, ((NU8) 124));
	}
	break;
	default:
	{
		result = simplestmt_248319(p);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, parseall_244216)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = newnodep_244266(((NU8) 115), (&(*p)));
	{
		while (1) {
			tnode225816* a;
			if (!!(((*p).Tok.Toktype == ((NU8) 1)))) goto LA2;
			a = complexorsimplestmt_245605(p);
			{
				if (!!(((*a).Kind == ((NU8) 1)))) goto LA5;
				addson_226287(result, a);
			}
			goto LA3;
			LA5: ;
			{
				parmessage_244452((&(*p)), ((NU16) 60), (&(*p).Tok));
				gettok_244243(p);
			}
			LA3: ;
			{
				if (!!(((*p).Tok.Indent == 0))) goto LA10;
				parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
			}
			LA10: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, closeparser_244223)(tparser244205* p) {
	closelexer_215258((&(*p).Lex));
}

N_NIMCALL(tnode225816*, parsetoplevelstmt_244230)(tparser244205* p) {
	tnode225816* result;
	result = 0;
	result = emptynode_226738;
	{
		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_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
				}
				goto LA7;
				LA14: ;
				LA7: ;
			}
			LA5: ;
			(*p).Firsttok = NIM_FALSE;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 105):
			{
				gettok_244243(p);
				{
					if (!((*p).Tok.Indent <= 0)) goto LA19;
				}
				goto LA17;
				LA19: ;
				{
					parmessage_244250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1080));
				}
				LA17: ;
				(*p).Firsttok = NIM_TRUE;
			}
			break;
			case ((NU8) 1):
			{
				goto LA1;
			}
			break;
			default:
			{
				result = complexorsimplestmt_245605(p);
				{
					if (!((*result).Kind == ((NU8) 1))) goto LA26;
					parmessage_244452((&(*p)), ((NU16) 60), (&(*p).Tok));
				}
				LA26: ;
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, parsestring_248539)(NimStringDesc* s, NimStringDesc* filename, NI line, terrorhandler215188 errorhandler) {
	tnode225816* result;
	tllstream211204* stream;
	tparser244205 parser;
	result = 0;
	stream = llstreamopen_211220(s);
	(*stream).Lineoffset = line;
	memset((void*)(&parser), 0, sizeof(parser));
	objectInit((&parser), (&NTI244205));
	openparser_244417((&parser), filename, stream, NIM_FALSE);
	parser.Lex.Errorhandler.ClEnv = errorhandler.ClEnv;
	parser.Lex.Errorhandler.ClPrc = errorhandler.ClPrc;
	result = parseall_244216((&parser));
	closeparser_244223((&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];
NTI244205.size = sizeof(tparser244205);
NTI244205.kind = 18;
NTI244205.base = 0;
TMP1006[0] = &TMP797[1];
TMP797[1].kind = 1;
TMP797[1].offset = offsetof(tparser244205, Currind);
TMP797[1].typ = (&NTI108);
TMP797[1].name = "currInd";
TMP1006[1] = &TMP797[2];
TMP797[2].kind = 1;
TMP797[2].offset = offsetof(tparser244205, Firsttok);
TMP797[2].typ = (&NTI138);
TMP797[2].name = "firstTok";
TMP1006[2] = &TMP797[3];
TMP797[3].kind = 1;
TMP797[3].offset = offsetof(tparser244205, Strongspaces);
TMP797[3].typ = (&NTI138);
TMP797[3].name = "strongSpaces";
TMP1006[3] = &TMP797[4];
TMP797[4].kind = 1;
TMP797[4].offset = offsetof(tparser244205, Lex);
TMP797[4].typ = (&NTI215190);
TMP797[4].name = "lex";
TMP1006[4] = &TMP797[5];
TMP797[5].kind = 1;
TMP797[5].offset = offsetof(tparser244205, Tok);
TMP797[5].typ = (&NTI215186);
TMP797[5].name = "tok";
TMP1006[5] = &TMP797[6];
TMP797[6].kind = 1;
TMP797[6].offset = offsetof(tparser244205, Inpragma);
TMP797[6].typ = (&NTI108);
TMP797[6].name = "inPragma";
TMP1006[6] = &TMP797[7];
TMP797[7].kind = 1;
TMP797[7].offset = offsetof(tparser244205, Insemistmtlist);
TMP797[7].typ = (&NTI108);
TMP797[7].name = "inSemiStmtList";
TMP797[0].len = 7; TMP797[0].kind = 2; TMP797[0].sons = &TMP1006[0];
NTI244205.node = &TMP797[0];
}

