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

#include <string.h>

#include <stdio.h>
typedef struct tparser245205 tparser245205;
typedef struct tlexer216190 tlexer216190;
typedef struct tbaselexer214024 tbaselexer214024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tllstream212204 tllstream212204;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct ttoken216186 ttoken216186;
typedef struct tident201021 tident201021;
typedef struct tnode226816 tnode226816;
typedef struct ttype226852 ttype226852;
typedef struct tsym226846 tsym226846;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct tcell44935 tcell44935;
typedef struct tcellseq44951 tcellseq44951;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44947 tcellset44947;
typedef struct tpagedesc44943 tpagedesc44943;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct tidobj201015 tidobj201015;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct tscope226840 tscope226840;
typedef struct TY226947 TY226947;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct tstrtable226820 tstrtable226820;
typedef struct tsymseq226818 tsymseq226818;
typedef struct tlib226834 tlib226834;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY226936 TY226936;
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  tbaselexer214024  {
  TNimObject Sup;
NI Bufpos;
NCSTRING Buf;
NI Buflen;
tllstream212204* Stream;
NI Linenumber;
NI Sentinel;
NI Linestart;
};
struct  tlineinfo196539  {
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) (tlineinfo196539 info, NU16 msg, NimStringDesc* arg, void* ClEnv);
void* ClEnv;
} terrorhandler216188;
struct  tlexer216190  {
  tbaselexer214024 Sup;
NI32 Fileidx;
NI Indentahead;
NI Currlineindent;
NIM_BOOL Strongspaces;
terrorhandler216188 Errorhandler;
};
struct  ttoken216186  {
NU8 Toktype;
NI Indent;
tident201021* Ident;
NI64 Inumber;
NF Fnumber;
NU8 Base;
NI8 Strongspacea;
NI8 Strongspaceb;
NimStringDesc* Literal;
NI Line;
NI Col;
};
struct  tparser245205  {
NI Currind;
NIM_BOOL Firsttok;
NIM_BOOL Strongspaces;
tlexer216190 Lex;
ttoken216186 Tok;
NI Inpragma;
NI Insemistmtlist;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tcell44935  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44951  {
NI Len;
NI Cap;
tcell44935** D;
};
struct  tcellset44947  {
NI Counter;
NI Max;
tpagedesc44943* Head;
tpagedesc44943** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44951 Zct;
tcellseq44951 Decstack;
tcellset44947 Cycleroots;
tcellseq44951 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
typedef NimStringDesc* TY216175[118];
typedef NU8 TY245923[15];
struct  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
typedef tnode226816* TY247892[1];
typedef N_NIMCALL_PTR(tnode226816*, tdefparser248797) (tparser245205* p);
struct  tllstream212204  {
  TNimObject Sup;
NU8 Kind;
FILE* F;
NimStringDesc* S;
NI Rd;
NI Wr;
NI Lineoffset;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
typedef NI TY26420[8];
struct  tpagedesc44943  {
tpagedesc44943* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
struct ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, openparser_245402)(tparser245205* p, NI32 fileidx, tllstream212204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(void, inittoken_216482)(ttoken216186* l);
N_NIMCALL(void, openlexer_216229)(tlexer216190* lex, NI32 fileidx, tllstream212204* inputstream);
N_NIMCALL(void, gettok_245243)(tparser245205* p);
N_NIMCALL(void, rawgettok_216238)(tlexer216190* l, ttoken216186* tok);
N_NIMCALL(NI32, fileinfoidx_196747)(NimStringDesc* filename);
N_NIMCALL(tnode226816*, newnodep_245266)(NU8 kind, tparser245205* p);
N_NIMCALL(tnode226816*, newnodei_227138)(NU8 kind, tlineinfo196539 info);
N_NIMCALL(tlineinfo196539, parlineinfo_245316)(tparser245205* p);
static N_INLINE(tlineinfo196539, getlineinfo_216247)(tlexer216190* l, ttoken216186* tok);
N_NIMCALL(tlineinfo196539, newlineinfo_197128)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(tnode226816*, complexorsimplestmt_246605)(tparser245205* p);
N_NIMCALL(tnode226816*, parseiforwhen_248376)(tparser245205* p, NU8 kind);
N_NIMCALL(void, optind_245344)(tparser245205* p, tnode226816* n);
N_NIMCALL(void, skipcomment_245258)(tparser245205* p, tnode226816* node);
N_NIMCALL(void, rawskipcomment_245497)(tparser245205* p, tnode226816* node);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44935*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44935* c);
N_NOINLINE(void, addzct_48617)(tcellseq44951* s, tcell44935* c);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, parmessage_245250)(tparser245205* p, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, lexmessage_216289)(tlexer216190* l, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, skipind_245330)(tparser245205* p);
N_NIMCALL(void, addson_227287)(tnode226816* father, tnode226816* son);
N_NIMCALL(tnode226816*, parseexpr_245790)(tparser245205* p);
N_NIMCALL(tnode226816*, parseifexpr_247101)(tparser245205* p, NU8 kind);
N_NIMCALL(void, colcom_246001)(tparser245205* p, tnode226816* n);
N_NIMCALL(void, eat_245322)(tparser245205* p, NU8 toktype);
N_NIMCALL(tnode226816*, parsecase_245383)(tparser245205* p);
N_NIMCALL(void, exprlist_246160)(tparser245205* p, NU8 endtok, tnode226816* result);
N_NIMCALL(tnode226816*, parsestmt_245797)(tparser245205* p);
N_NIMCALL(void, parmessage_245452)(tparser245205* p, NU16 msg, ttoken216186* tok);
N_NIMCALL(NimStringDesc*, prettytok_216434)(ttoken216186* tok);
N_NIMCALL(tnode226816*, simplestmt_249319)(tparser245205* p);
N_NIMCALL(tnode226816*, parsereturnorraise_248355)(tparser245205* p, NU8 kind);
N_NIMCALL(NIM_BOOL, isexprstart_247619)(tparser245205* p);
N_NIMCALL(tnode226816*, parsestmtpragma_249297)(tparser245205* p);
N_NIMCALL(tnode226816*, parsepragma_247131)(tparser245205* p);
N_NIMCALL(tnode226816*, exprcoloneqexpr_246148)(tparser245205* p);
N_NIMCALL(tnode226816*, colonorequals_246118)(tparser245205* p, tnode226816* a);
N_NIMCALL(void, optpar_245337)(tparser245205* p);
N_NIMCALL(void, add_227498)(tnode226816* father, tnode226816* son);
N_NIMCALL(tnode226816*, parseimport_248207)(tparser245205* p, NU8 kind);
N_NIMCALL(tnode226816*, parsemodulename_248120)(tparser245205* p, NU8 kind);
N_NIMCALL(tnode226816*, parsefromstmt_248318)(tparser245205* p);
N_NIMCALL(tnode226816*, parseincludestmt_248281)(tparser245205* p);
N_NIMCALL(tnode226816*, newcommentstmt_248785)(tparser245205* p);
N_NIMCALL(tnode226816*, parseexprstmt_248028)(tparser245205* p);
N_NIMCALL(tnode226816*, simpleexpr_246612)(tparser245205* p, NU8 mode);
N_NIMCALL(tnode226816*, simpleexpraux_247022)(tparser245205* p, NI limit, NU8 mode);
N_NIMCALL(tnode226816*, primary_247014)(tparser245205* p, NU8 mode);
N_NIMCALL(NIM_BOOL, isoperator_245237)(ttoken216186* tok);
static N_INLINE(NIM_BOOL, issigillike_245827)(ttoken216186* tok);
N_NIMCALL(tnode226816*, newidentnodep_245297)(tident201021* ident, tparser245205* p);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(tnode226816*, primarysuffix_246873)(tparser245205* p, tnode226816* r, NI baseindent);
N_NIMCALL(tnode226816*, namedparams_246850)(tparser245205* p, tnode226816* callee, NU8 kind, NU8 endtok);
N_NIMCALL(void, exprcoloneqexprlistaux_246240)(tparser245205* p, NU8 endtok, tnode226816* result);
static N_INLINE(NI, len_227364)(tnode226816* n);
N_NIMCALL(void, parsedoblocks_245811)(tparser245205* p, tnode226816* call);
N_NIMCALL(tnode226816*, parsedoblock_247529)(tparser245205* p);
N_NIMCALL(tnode226816*, parseparamlist_245819)(tparser245205* p, NIM_BOOL retcolon);
N_NIMCALL(tnode226816*, parseidentcolonequals_247262)(tparser245205* p, NU8 flags);
N_NIMCALL(tnode226816*, identwithpragma_247232)(tparser245205* p);
N_NIMCALL(tnode226816*, identvis_247211)(tparser245205* p);
N_NIMCALL(tnode226816*, parsesymbol_245367)(tparser245205* p, NIM_BOOL allownil);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, toktostr_216271)(ttoken216186* tok);
N_NIMCALL(tident201021*, getident_201472)(NimStringDesc* identifier);
N_NIMCALL(tnode226816*, parsetypedesc_245804)(tparser245205* p);
N_NIMCALL(NIM_BOOL, identeq_201493)(tident201021* id, NimStringDesc* name);
N_NIMCALL(tnode226816*, optpragmas_247507)(tparser245205* p);
N_NIMCALL(tnode226816*, newprocnode_229432)(NU8 kind, tlineinfo196539 info, tnode226816* body, tnode226816* params, tnode226816* name, tnode226816* pattern, tnode226816* genericparams, tnode226816* pragmas, tnode226816* exceptions);
N_NIMCALL(tnode226816*, dotexpr_246207)(tparser245205* p, tnode226816* a);
N_NIMCALL(tnode226816*, parsegstrlit_246584)(tparser245205* p, tnode226816* a);
N_NIMCALL(tnode226816*, newstrnodep_245289)(NU8 kind, NimStringDesc* strval, tparser245205* p);
N_NIMCALL(tnode226816*, parsetypedesckaux_247667)(tparser245205* p, NU8 kind, NU8 mode);
N_NIMCALL(void, parsesymbollist_247629)(tparser245205* p, tnode226816* result, NIM_BOOL allownil);
N_NIMCALL(tnode226816*, parsetuple_247354)(tparser245205* p, NIM_BOOL indentallowed);
N_NIMCALL(tnode226816*, parseprocexpr_247579)(tparser245205* p, NIM_BOOL isexpr);
N_NIMCALL(tnode226816*, parseenum_247725)(tparser245205* p);
N_NIMCALL(tnode226816*, parseobject_247732)(tparser245205* p);
N_NIMCALL(NIM_BOOL, validind_248724)(tparser245205* p);
N_NIMCALL(tnode226816*, parseobjectpart_248922)(tparser245205* p);
N_NIMCALL(tnode226816*, parseobjectwhen_248929)(tparser245205* p);
N_NIMCALL(tnode226816*, parseobjectcase_248967)(tparser245205* p);
N_NIMCALL(void, gettoknoind_245579)(tparser245205* p);
N_NIMCALL(tnode226816*, parsetypeclass_247739)(tparser245205* p);
N_NIMCALL(tnode226816*, newnode_227090)(NU8 kind);
N_NIMCALL(tnode226816*, parsetypeclassparam_249082)(tparser245205* p);
static N_INLINE(NI, sonslen_227249)(tnode226816* n);
N_NIMCALL(tnode226816*, newnode_229207)(NU8 kind, tlineinfo196539 info, tnodeseq226810* sons, ttype226852* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(tnode226816*, identorliteral_246816)(tparser245205* p, NU8 mode);
N_NIMCALL(tnode226816*, newintnodep_245273)(NU8 kind, NI64 intval, tparser245205* p);
N_NIMCALL(void, setbaseflags_245360)(tnode226816* n, NU8 base);
N_NIMCALL(tnode226816*, newfloatnodep_245281)(NU8 kind, NF floatval, tparser245205* p);
N_NIMCALL(tnode226816*, exprcoloneqexprlist_246442)(tparser245205* p, NU8 kind, NU8 endtok);
N_NIMCALL(tnode226816*, parsepar_246671)(tparser245205* p);
N_NIMCALL(void, semistmtlist_246620)(tparser245205* p, tnode226816* result);
N_NIMCALL(tnode226816*, newnodei_229007)(NU8 kind, tlineinfo196539 info, NI children);
N_NIMCALL(tnode226816*, setortableconstr_246455)(tparser245205* p);
N_NIMCALL(tnode226816*, parsecast_246515)(tparser245205* p);
N_NIMCALL(tnode226816*, parseoperators_247031)(tparser245205* p, tnode226816* headnode, NI limit, NU8 mode);
N_NIMCALL(NI, getprecedence_245867)(ttoken216186* tok, NIM_BOOL strongspaces);
N_NIMCALL(NIM_BOOL, isunary_245942)(tparser245205* p);
static N_INLINE(void, checkbinary_245967)(tparser245205* p);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
static N_INLINE(NIM_BOOL, isrightassociative_245846)(ttoken216186* tok);
N_NIMCALL(tnode226816*, makecall_247950)(tnode226816* n);
N_NIMCALL(tnode226816*, parsemacrocolon_246865)(tparser245205* p, tnode226816* x);
N_NIMCALL(tnode226816*, makestmtlist_234032)(tnode226816* n);
N_NIMCALL(tnode226816*, parsetry_245375)(tparser245205* p, NIM_BOOL isexpr);
N_NIMCALL(tnode226816*, parsewhile_248417)(tparser245205* p);
N_NIMCALL(tnode226816*, parseexceptblock_248518)(tparser245205* p, NU8 kind);
N_NIMCALL(tnode226816*, parsefor_248530)(tparser245205* p);
N_NIMCALL(tnode226816*, parseblock_248558)(tparser245205* p);
N_NIMCALL(tnode226816*, parsestaticordefer_248578)(tparser245205* p, NU8 k);
N_NIMCALL(tnode226816*, parseasm_248590)(tparser245205* p);
N_NIMCALL(tnode226816*, parseroutine_248737)(tparser245205* p, NU8 kind);
N_NIMCALL(tnode226816*, parsepattern_248713)(tparser245205* p);
N_NIMCALL(tnode226816*, parsegenericparamlist_248666)(tparser245205* p);
N_NIMCALL(tnode226816*, parsegenericparam_248610)(tparser245205* p);
N_NIMCALL(void, indandcomment_245352)(tparser245205* p, tnode226816* n);
N_NIMCALL(tnode226816*, parsesection_248804)(tparser245205* p, NU8 kind, tdefparser248797 defparser);
N_NIMCALL(tnode226816*, parsetypedef_249176)(tparser245205* p);
N_NIMCALL(tnode226816*, parsetypedefaux_247939)(tparser245205* p);
N_NIMCALL(tnode226816*, parseconstant_248853)(tparser245205* p);
N_NIMCALL(tnode226816*, parsevariable_249247)(tparser245205* p);
N_NIMCALL(tnode226816*, parsevartuple_249205)(tparser245205* p);
N_NIMCALL(tnode226816*, parsebind_249268)(tparser245205* p, NU8 k);
N_NIMCALL(tnode226816*, qualifiedident_246220)(tparser245205* p);
N_NIMCALL(void, closelexer_216258)(tlexer216190* lex);
N_NIMCALL(tllstream212204*, llstreamopen_212220)(NimStringDesc* data);
N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_NIMCALL(void, openparser_245417)(tparser245205* p, NimStringDesc* filename, tllstream212204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(tnode226816*, parseall_245216)(tparser245205* p);
N_NIMCALL(void, closeparser_245223)(tparser245205* p);
STRING_LITERAL(TMP1081, "", 0);
STRING_LITERAL(TMP1082, "skipComment", 11);
extern NIM_CONST TY216175 toktypetostr_216174;
STRING_LITERAL(TMP1203, ".}", 2);
static NIM_CONST TY245923 TMP1204 = {
0x30, 0x00, 0x08, 0x00, 0x64, 0xD0, 0x06, 0x06,
0x40, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00}
;
STRING_LITERAL(TMP1205, ")", 1);
STRING_LITERAL(TMP1206, "->", 2);
static NIM_CONST TY245923 TMP1207 = {
0x00, 0x2A, 0x03, 0x1A, 0x09, 0x09, 0x00, 0x20,
0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP1208, "Number of spaces around \'$#\' not consistent", 43);
STRING_LITERAL(TMP1209, "Number of spaces must be 0,1,2,4 or 8", 37);
STRING_LITERAL(TMP1210, "except", 6);
TNimType NTI245205; /* TParser */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI216190; /* TLexer */
extern TNimType NTI216186; /* TToken */
extern tgcheap47016 gch_47044;
extern tnode226816* emptynode_227738;
extern TNimType NTI226810; /* TNodeSeq */

N_NIMCALL(void, gettok_245243)(tparser245205* p) {
	rawgettok_216238((&(*p).Lex), (&(*p).Tok));
}

N_NIMCALL(void, openparser_245402)(tparser245205* p, NI32 fileidx, tllstream212204* inputstream, NIM_BOOL strongspaces) {
	inittoken_216482((&(*p).Tok));
	openlexer_216229((&(*p).Lex), fileidx, inputstream);
	gettok_245243(p);
	(*p).Firsttok = NIM_TRUE;
	(*p).Strongspaces = strongspaces;
}

N_NIMCALL(void, openparser_245417)(tparser245205* p, NimStringDesc* filename, tllstream212204* inputstream, NIM_BOOL strongspaces) {
	NI32 LOC1;
	LOC1 = 0;
	LOC1 = fileinfoidx_196747(filename);
	openparser_245402(p, LOC1, inputstream, strongspaces);
}

static N_INLINE(tlineinfo196539, getlineinfo_216247)(tlexer216190* l, ttoken216186* tok) {
	tlineinfo196539 result;
	memset((void*)(&result), 0, sizeof(result));
	result = newlineinfo_197128((*l).Fileidx, (*tok).Line, (*tok).Col);
	return result;
}

N_NIMCALL(tlineinfo196539, parlineinfo_245316)(tparser245205* p) {
	tlineinfo196539 result;
	memset((void*)(&result), 0, sizeof(result));
	result = getlineinfo_216247((&(*p).Lex), (&(*p).Tok));
	return result;
}

N_NIMCALL(tnode226816*, newnodep_245266)(NU8 kind, tparser245205* p) {
	tnode226816* result;
	tlineinfo196539 LOC1;
	result = 0;
	LOC1 = parlineinfo_245316(p);
	result = newnodei_227138(kind, LOC1);
	return result;
}

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

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell44935* c;
	c = usrtocell_48646(p);
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(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)), (NI64)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, parmessage_245250)(tparser245205* p, NU16 msg, NimStringDesc* arg) {
	lexmessage_216289((&(*p).Lex), msg, arg);
}

N_NIMCALL(void, rawskipcomment_245497)(tparser245205* p, tnode226816* 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*) &TMP1081));
				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_245250((&(*p)), ((NU16) 2), ((NimStringDesc*) &TMP1082));
		}
		LA5: ;
		gettok_245243(p);
	}
	LA3: ;
}

N_NIMCALL(void, skipcomment_245258)(tparser245205* p, tnode226816* node) {
	{
		if (!((*p).Tok.Indent < 0)) goto LA3;
		rawskipcomment_245497(p, node);
	}
	LA3: ;
}

N_NIMCALL(void, skipind_245330)(tparser245205* p) {
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		{
			if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA7;
			parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, optind_245344)(tparser245205* p, tnode226816* n) {
	skipcomment_245258(p, n);
	skipind_245330(p);
}

N_NIMCALL(void, eat_245322)(tparser245205* p, NU8 toktype) {
	{
		if (!((*p).Tok.Toktype == toktype)) goto LA3;
		gettok_245243(p);
	}
	goto LA1;
	LA3: ;
	{
		lexmessage_216289((&(*p).Lex), ((NU16) 23), toktypetostr_216174[(toktype)- 0]);
	}
	LA1: ;
}

N_NIMCALL(void, colcom_246001)(tparser245205* p, tnode226816* n) {
	eat_245322(p, ((NU8) 106));
	skipcomment_245258(p, n);
}

N_NIMCALL(tnode226816*, parseifexpr_247101)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	tnode226816* branch;
	tnode226816* LOC9;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	{
		while (1) {
			tnode226816* branch;
			tnode226816* LOC3;
			tnode226816* LOC4;
			gettok_245243(p);
			branch = newnodep_245266(((NU8) 49), (&(*p)));
			LOC3 = 0;
			LOC3 = parseexpr_245790(p);
			addson_227287(branch, LOC3);
			colcom_246001(p, branch);
			LOC4 = 0;
			LOC4 = parseexpr_245790(p);
			addson_227287(branch, LOC4);
			optind_245344(p, branch);
			addson_227287(result, branch);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 21)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		}
	} LA1: ;
	branch = newnodep_245266(((NU8) 50), (&(*p)));
	eat_245322(p, ((NU8) 22));
	colcom_246001(p, branch);
	LOC9 = 0;
	LOC9 = parseexpr_245790(p);
	addson_227287(branch, LOC9);
	addson_227287(result, branch);
	return result;
}

N_NIMCALL(void, exprlist_246160)(tparser245205* p, NU8 endtok, tnode226816* result) {
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			tnode226816* 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_245790(p);
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_245243(p);
			optind_245344(p, a);
		} LA2: ;
	} LA1: ;
	eat_245322(p, endtok);
}

N_NIMCALL(void, parmessage_245452)(tparser245205* p, NU16 msg, ttoken216186* tok) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = prettytok_216434(tok);
	parmessage_245250(p, msg, LOC1);
}

N_NIMCALL(NIM_BOOL, isexprstart_247619)(tparser245205* 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(tnode226816*, parsereturnorraise_248355)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	gettok_245243(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA3;
		skipcomment_245258(p, result);
		addson_227287(result, emptynode_227738);
	}
	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_247619((&(*p)));
		LOC6 = !(LOC10);
		LA9: ;
		if (!LOC6) goto LA11;
		addson_227287(result, emptynode_227738);
	}
	goto LA1;
	LA11: ;
	{
		tnode226816* LOC14;
		LOC14 = 0;
		LOC14 = parseexpr_245790(p);
		addson_227287(result, LOC14);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, colonorequals_246118)(tparser245205* p, tnode226816* a) {
	tnode226816* result;
	result = 0;
	{
		tnode226816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		result = newnodep_245266(((NU8) 34), (&(*p)));
		gettok_245243(p);
		addson_227287(result, a);
		LOC5 = 0;
		LOC5 = parseexpr_245790(p);
		addson_227287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		tnode226816* LOC9;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA7;
		result = newnodep_245266(((NU8) 33), (&(*p)));
		gettok_245243(p);
		addson_227287(result, a);
		LOC9 = 0;
		LOC9 = parseexpr_245790(p);
		addson_227287(result, LOC9);
	}
	goto LA1;
	LA7: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, exprcoloneqexpr_246148)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	a = parseexpr_245790(p);
	result = colonorequals_246118(p, a);
	return result;
}

N_NIMCALL(void, optpar_245337)(tparser245205* p) {
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		{
			if (!((*p).Tok.Indent < (*p).Currind)) goto LA7;
			parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(tnode226816*, parsepragma_247131)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 90), (&(*p)));
	(*p).Inpragma += 1;
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			tnode226816* a;
			if (!!(((*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 1)))) goto LA2;
			a = exprcoloneqexpr_246148(p);
			addson_227287(result, a);
			{
				if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA5;
				gettok_245243(p);
				skipcomment_245258(p, a);
			}
			LA5: ;
		} LA2: ;
	}
	optpar_245337(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 101) || (*p).Tok.Toktype == ((NU8) 97))) goto LA9;
		gettok_245243(p);
	}
	goto LA7;
	LA9: ;
	{
		parmessage_245250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1203));
	}
	LA7: ;
	(*p).Inpragma -= 1;
	return result;
}

N_NIMCALL(tnode226816*, parsestmtpragma_249297)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = parsepragma_247131(p);
	{
		NIM_BOOL LOC3;
		tnode226816* a;
		tnode226816* 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_227138(((NU8) 91), (*a).Info);
		gettok_245243(p);
		skipcomment_245258(p, result);
		add_227498(result, a);
		LOC7 = 0;
		LOC7 = parsestmt_245797(p);
		add_227498(result, LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode226816*, parsemodulename_248120)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	result = 0;
	result = parseexpr_245790(p);
	return result;
}

N_NIMCALL(tnode226816*, parseimport_248207)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	a = parsemodulename_248120(p, kind);
	addson_227287(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_245243(p);
		optind_245344(p, result);
		{
			while (1) {
				a = parsemodulename_248120(p, kind);
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA13;
					goto LA9;
				}
				LA13: ;
				addson_227287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA17;
					goto LA9;
				}
				LA17: ;
				gettok_245243(p);
				optind_245344(p, a);
			}
		} LA9: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode226816*, parsefromstmt_248318)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	result = newnodep_245266(((NU8) 120), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	a = parsemodulename_248120(p, ((NU8) 116));
	addson_227287(result, a);
	eat_245322(p, ((NU8) 33));
	optind_245344(p, result);
	{
		while (1) {
			a = parseexpr_245790(p);
			{
				if (!((*a).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_245243(p);
			optind_245344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parseincludestmt_248281)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 121), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			tnode226816* a;
			a = parseexpr_245790(p);
			{
				if (!((*a).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_245243(p);
			optind_245344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, newcommentstmt_248785)(tparser245205* p) {
	tnode226816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_245266(((NU8) 125), (&(*p)));
	LOC1 = 0;
	LOC1 = (*result).Comment; (*result).Comment = copyStringRC1((*p).Tok.Literal);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	gettok_245243(p);
	return result;
}

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

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

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

N_NIMCALL(tnode226816*, newidentnodep_245297)(tident201021* ident, tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 2), p);
	asgnRefNoCycle((void**) (&(*result).kindU.S5.Ident), ident);
	return result;
}

N_NIMCALL(void, exprcoloneqexprlistaux_246240)(tparser245205* p, NU8 endtok, tnode226816* result) {
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			tnode226816* 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_246148(p);
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_245243(p);
			skipcomment_245258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_245337(p);
	eat_245322(p, endtok);
}

N_NIMCALL(tnode226816*, namedparams_246850)(tparser245205* p, tnode226816* callee, NU8 kind, NU8 endtok) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	a = callee;
	result = newnodep_245266(kind, (&(*p)));
	addson_227287(result, a);
	exprcoloneqexprlistaux_246240(p, endtok, result);
	return result;
}

static N_INLINE(NI, len_227364)(tnode226816* 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(tnode226816*, parsesymbol_245367)(tparser245205* p, NIM_BOOL allownil) {
	tnode226816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	{
		result = newidentnodep_245297((*p).Tok.Ident, (&(*p)));
		gettok_245243(p);
	}
	break;
	case ((NU8) 113):
	{
		result = newnodep_245266(((NU8) 53), (&(*p)));
		gettok_245243(p);
		{
			while (1) {
				switch ((*p).Tok.Toktype) {
				case ((NU8) 113):
				{
					{
						NI LOC8;
						LOC8 = 0;
						LOC8 = len_227364(result);
						if (!(LOC8 == 0)) goto LA9;
						parmessage_245452((&(*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;
					tident201021* LOC15;
					tnode226816* LOC16;
					accm = copyString(((NimStringDesc*) &TMP1081));
					{
						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_216271((&(*p).Tok));
							accm = resizeString(accm, LOC14->Sup.len + 0);
appendString(accm, LOC14);
							gettok_245243(p);
						} LA13: ;
					}
					LOC15 = 0;
					LOC15 = getident_201472(accm);
					LOC16 = 0;
					LOC16 = newidentnodep_245297(LOC15, (&(*p)));
					add_227498(result, LOC16);
				}
				break;
				case ((NU8) 3) ... ((NU8) 71):
				case ((NU8) 2):
				case ((NU8) 72) ... ((NU8) 91):
				{
					NimStringDesc* LOC18;
					tident201021* LOC19;
					tnode226816* LOC20;
					LOC18 = 0;
					LOC18 = toktostr_216271((&(*p).Tok));
					LOC19 = 0;
					LOC19 = getident_201472(LOC18);
					LOC20 = 0;
					LOC20 = newidentnodep_245297(LOC19, (&(*p)));
					add_227498(result, LOC20);
					gettok_245243(p);
				}
				break;
				default:
				{
					parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
				}
				break;
				}
			}
		} LA3: ;
		eat_245322(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_245266(((NU8) 23), (&(*p)));
			gettok_245243(p);
		}
		goto LA23;
		LA27: ;
		{
			parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
			gettok_245243(p);
			result = emptynode_227738;
		}
		LA23: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, identvis_247211)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	a = parsesymbol_245367(p, NIM_FALSE);
	{
		tnode226816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 111))) goto LA3;
		result = newnodep_245266(((NU8) 31), (&(*p)));
		LOC5 = 0;
		LOC5 = newidentnodep_245297((*p).Tok.Ident, (&(*p)));
		addson_227287(result, LOC5);
		addson_227287(result, a);
		gettok_245243(p);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, identwithpragma_247232)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	a = identvis_247211(p);
	{
		tnode226816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 100))) goto LA3;
		result = newnodep_245266(((NU8) 43), (&(*p)));
		addson_227287(result, a);
		LOC5 = 0;
		LOC5 = parsepragma_247131(p);
		addson_227287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parsetypedesc_245804)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = simpleexpr_246612(p, ((NU8) 1));
	return result;
}

N_NIMCALL(tnode226816*, parseidentcolonequals_247262)(tparser245205* p, NU8 flags) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	a = 0;
	result = newnodep_245266(((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_247232(p);
				}
				goto LA4;
				LA6: ;
				{
					a = parsesymbol_245367(p, NIM_FALSE);
				}
				LA4: ;
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA11;
					goto BeforeRet;
				}
				LA11: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA16;
				goto LA1;
			}
			LA16: ;
			gettok_245243(p);
			optind_245344(p, a);
		}
	} LA1: ;
	{
		tnode226816* LOC22;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA20;
		gettok_245243(p);
		optind_245344(p, result);
		LOC22 = 0;
		LOC22 = parsetypedesc_245804(p);
		addson_227287(result, LOC22);
	}
	goto LA18;
	LA20: ;
	{
		addson_227287(result, emptynode_227738);
		{
			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_245452((&(*p)), ((NU16) 59), (&(*p).Tok));
		}
		LA28: ;
	}
	LA18: ;
	{
		tnode226816* LOC34;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA32;
		gettok_245243(p);
		optind_245344(p, result);
		LOC34 = 0;
		LOC34 = parseexpr_245790(p);
		addson_227287(result, LOC34);
	}
	goto LA30;
	LA32: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA30: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, parseparamlist_245819)(tparser245205* p, NIM_BOOL retcolon) {
	tnode226816* result;
	tnode226816* a;
	NIM_BOOL hasparle;
	NIM_BOOL LOC1;
	NIM_BOOL hasret;
	result = 0;
	a = 0;
	result = newnodep_245266(((NU8) 76), (&(*p)));
	addson_227287(result, emptynode_227738);
	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_245243(p);
		optind_245344(p, result);
		{
			while (1) {
				switch ((*p).Tok.Toktype) {
				case ((NU8) 2):
				case ((NU8) 113):
				{
					a = parseidentcolonequals_247262(p, 3);
				}
				break;
				case ((NU8) 93):
				{
					goto LA7;
				}
				break;
				default:
				{
					parmessage_245250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1205));
					goto LA7;
				}
				break;
				}
				addson_227287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA14;
					goto LA7;
				}
				LA14: ;
				gettok_245243(p);
				skipcomment_245258(p, a);
			}
		} LA7: ;
		optpar_245337(p);
		eat_245322(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_201493((*p).Tok.Ident, ((NimStringDesc*) &TMP1206));
		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_245243(p);
		optind_245344(p, result);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[0]), parsetypedesc_245804(p));
	}
	goto LA23;
	LA27: ;
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = !(retcolon);
		if (!(LOC30)) goto LA31;
		LOC30 = !(hasparle);
		LA31: ;
		if (!LOC30) goto LA32;
		result = emptynode_227738;
	}
	goto LA23;
	LA32: ;
	LA23: ;
	return result;
}

N_NIMCALL(tnode226816*, optpragmas_247507)(tparser245205* p) {
	tnode226816* 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_247131(p);
	}
	goto LA1;
	LA7: ;
	{
		result = emptynode_227738;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parsedoblock_247529)(tparser245205* p) {
	tnode226816* result;
	tlineinfo196539 info;
	tnode226816* params;
	tnode226816* pragmas;
	tnode226816* LOC1;
	result = 0;
	info = parlineinfo_245316((&(*p)));
	gettok_245243(p);
	params = parseparamlist_245819(p, NIM_FALSE);
	pragmas = optpragmas_247507(p);
	eat_245322(p, ((NU8) 106));
	skipcomment_245258(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_245797(p);
	result = newprocnode_229432(((NU8) 52), info, LOC1, params, emptynode_227738, emptynode_227738, emptynode_227738, pragmas, emptynode_227738);
	return result;
}

N_NIMCALL(void, parsedoblocks_245811)(tparser245205* p, tnode226816* call) {
	{
		tnode226816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 20))) goto LA3;
		LOC5 = 0;
		LOC5 = parsedoblock_247529(p);
		addson_227287(call, LOC5);
		{
			while (1) {
				NIM_BOOL LOC8;
				tnode226816* 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_247529(p);
				addson_227287(call, LOC10);
			} LA7: ;
		}
	}
	LA3: ;
}

N_NIMCALL(tnode226816*, dotexpr_246207)(tparser245205* p, tnode226816* a) {
	tnode226816* result;
	tlineinfo196539 info;
	result = 0;
	info = parlineinfo_245316((&(*p)));
	gettok_245243(p);
	optind_245344(p, a);
	switch ((*p).Tok.Toktype) {
	case ((NU8) 63):
	{
		result = newnodep_245266(((NU8) 132), (&(*p)));
		gettok_245243(p);
		addson_227287(result, a);
	}
	break;
	case ((NU8) 3):
	{
		result = newnodep_245266(((NU8) 63), (&(*p)));
		gettok_245243(p);
		addson_227287(result, a);
	}
	break;
	default:
	{
		tnode226816* LOC4;
		result = newnodei_227138(((NU8) 45), info);
		addson_227287(result, a);
		LOC4 = 0;
		LOC4 = parsesymbol_245367(p, NIM_FALSE);
		addson_227287(result, LOC4);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, newstrnodep_245289)(NU8 kind, NimStringDesc* strval, tparser245205* p) {
	tnode226816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_245266(kind, p);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(strval);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	return result;
}

N_NIMCALL(tnode226816*, parsegstrlit_246584)(tparser245205* p, tnode226816* a) {
	tnode226816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 89):
	{
		tnode226816* LOC2;
		result = newnodep_245266(((NU8) 28), (&(*p)));
		addson_227287(result, a);
		LOC2 = 0;
		LOC2 = newstrnodep_245289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		addson_227287(result, LOC2);
		gettok_245243(p);
	}
	break;
	case ((NU8) 90):
	{
		tnode226816* LOC4;
		result = newnodep_245266(((NU8) 28), (&(*p)));
		addson_227287(result, a);
		LOC4 = 0;
		LOC4 = newstrnodep_245289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		addson_227287(result, LOC4);
		gettok_245243(p);
	}
	break;
	default:
	{
		result = a;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, primarysuffix_246873)(tparser245205* p, tnode226816* r, NI baseindent) {
	tnode226816* 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_246850(p, result, ((NU8) 27), ((NU8) 93));
				{
					NIM_BOOL LOC16;
					NI LOC17;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = len_227364(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_245811(p, result);
				}
				LA14: ;
			}
			break;
			case ((NU8) 20):
			{
				tnode226816* a;
				a = result;
				result = newnodep_245266(((NU8) 27), (&(*p)));
				addson_227287(result, a);
				parsedoblocks_245811(p, result);
			}
			break;
			case ((NU8) 109):
			{
				result = dotexpr_246207(p, result);
				result = parsegstrlit_246584(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_246850(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_246850(p, result, ((NU8) 40), ((NU8) 97));
			}
			break;
			case ((NU8) 2):
			case ((NU8) 113):
			case ((NU8) 72) ... ((NU8) 91):
			case ((NU8) 45):
			case ((NU8) 12):
			{
				{
					tnode226816* a;
					tnode226816* LOC43;
					if (!((*p).Inpragma == 0)) goto LA41;
					a = result;
					result = newnodep_245266(((NU8) 26), (&(*p)));
					addson_227287(result, a);
					LOC43 = 0;
					LOC43 = parseexpr_245790(p);
					addson_227287(result, LOC43);
				}
				LA41: ;
				goto LA1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		} LA2: ;
	} LA1: ;
	return result;
}

N_NIMCALL(void, parsesymbollist_247629)(tparser245205* p, tnode226816* result, NIM_BOOL allownil) {
	{
		while (1) {
			tnode226816* s;
			s = parsesymbol_245367(p, allownil);
			{
				if (!((*s).Kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_227287(result, s);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_245243(p);
			optind_245344(p, s);
		}
	} LA1: ;
}

N_NIMCALL(tnode226816*, parsetypedesckaux_247667)(tparser245205* p, NU8 kind, NU8 mode) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode226816* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isoperator_245237((&(*p).Tok));
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = isexprstart_247619((&(*p)));
		LA5: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = primary_247014(p, mode);
		addson_227287(result, LOC8);
	}
	LA6: ;
	{
		NIM_BOOL LOC11;
		NU8 nodekind;
		tnode226816* 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_245243(p);
		list = newnodep_245266(nodekind, (&(*p)));
		addson_227287(result, list);
		parsesymbollist_247629(p, list, NIM_TRUE);
	}
	LA13: ;
	return result;
}

N_NIMCALL(tnode226816*, parsetuple_247354)(tparser245205* p, NIM_BOOL indentallowed) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 134), (&(*p)));
	gettok_245243(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 94))) goto LA3;
		gettok_245243(p);
		optind_245344(p, result);
		{
			while (1) {
				tnode226816* a;
				if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA6;
				a = parseidentcolonequals_247262(p, 0);
				addson_227287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA9;
					goto LA5;
				}
				LA9: ;
				gettok_245243(p);
				skipcomment_245258(p, a);
			} LA6: ;
		} LA5: ;
		optpar_245337(p);
		eat_245322(p, ((NU8) 95));
	}
	goto LA1;
	LA3: ;
	{
		if (!indentallowed) goto LA12;
		skipcomment_245258(p, result);
		{
			NI oldind_247402;
			if (!((*p).Currind < (*p).Tok.Indent)) goto LA16;
			oldind_247402 = (*p).Currind;
			(*p).Currind = (*p).Tok.Indent;
			skipcomment_245258(p, result);
			{
				while (1) {
					switch ((*p).Tok.Toktype) {
					case ((NU8) 2):
					case ((NU8) 113):
					{
						tnode226816* a;
						a = parseidentcolonequals_247262(p, 0);
						skipcomment_245258(p, a);
						addson_227287(result, a);
					}
					break;
					case ((NU8) 1):
					{
						goto LA18;
					}
					break;
					default:
					{
						parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
						goto LA18;
					}
					break;
					}
					{
						if (!!(((*p).Tok.Indent == (*p).Currind))) goto LA25;
						goto LA18;
					}
					LA25: ;
				}
			} LA18: ;
			(*p).Currind = oldind_247402;
		}
		LA16: ;
	}
	goto LA1;
	LA12: ;
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parseprocexpr_247579)(tparser245205* p, NIM_BOOL isexpr) {
	tnode226816* result;
	tlineinfo196539 info;
	NIM_BOOL hassignature;
	NIM_BOOL LOC1;
	tnode226816* params;
	tnode226816* pragmas;
	result = 0;
	info = parlineinfo_245316((&(*p)));
	gettok_245243(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_245819(p, NIM_TRUE);
	pragmas = optpragmas_247507(p);
	{
		NIM_BOOL LOC5;
		tnode226816* LOC9;
		LOC5 = 0;
		LOC5 = ((*p).Tok.Toktype == ((NU8) 108));
		if (!(LOC5)) goto LA6;
		LOC5 = isexpr;
		LA6: ;
		if (!LOC5) goto LA7;
		gettok_245243(p);
		skipcomment_245258(p, result);
		LOC9 = 0;
		LOC9 = parsestmt_245797(p);
		result = newprocnode_229432(((NU8) 51), info, LOC9, params, emptynode_227738, emptynode_227738, emptynode_227738, pragmas, emptynode_227738);
	}
	goto LA3;
	LA7: ;
	{
		result = newnodei_227138(((NU8) 146), info);
		{
			if (!hassignature) goto LA13;
			addson_227287(result, params);
			addson_227287(result, pragmas);
		}
		LA13: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode226816*, parseenum_247725)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 149), (&(*p)));
	gettok_245243(p);
	addson_227287(result, emptynode_227738);
	optind_245344(p, result);
	{
		while (1) {
			tnode226816* a;
			a = parsesymbol_245367(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_227498(result, a);
				goto LA1;
			}
			LA7: ;
			{
				NIM_BOOL LOC11;
				tnode226816* b;
				tnode226816* LOC15;
				LOC11 = 0;
				LOC11 = ((*p).Tok.Toktype == ((NU8) 108));
				if (!(LOC11)) goto LA12;
				LOC11 = ((*p).Tok.Indent < 0);
				LA12: ;
				if (!LOC11) goto LA13;
				gettok_245243(p);
				optind_245344(p, a);
				b = a;
				a = newnodep_245266(((NU8) 150), (&(*p)));
				addson_227287(a, b);
				LOC15 = 0;
				LOC15 = parseexpr_245790(p);
				addson_227287(a, LOC15);
				skipcomment_245258(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_245243(p);
				rawskipcomment_245497(p, a);
			}
			goto LA16;
			LA20: ;
			{
				skipcomment_245258(p, a);
			}
			LA16: ;
			addson_227287(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_227364(result);
		if (!(LOC33 <= 1)) goto LA34;
		LOC36 = 0;
		LOC36 = prettytok_216434((&(*p).Tok));
		lexmessage_216289((&(*p).Lex), ((NU16) 19), LOC36);
	}
	LA34: ;
	return result;
}

N_NIMCALL(NIM_BOOL, validind_248724)(tparser245205* 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(tnode226816*, parseobjectwhen_248929)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 139), (&(*p)));
	{
		while (1) {
			tnode226816* branch;
			tnode226816* LOC3;
			tnode226816* LOC4;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA2;
			gettok_245243(p);
			branch = newnodep_245266(((NU8) 86), (&(*p)));
			optind_245344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_245790(p);
			addson_227287(branch, LOC3);
			colcom_246001(p, branch);
			LOC4 = 0;
			LOC4 = parseobjectpart_248922(p);
			addson_227287(branch, LOC4);
			skipcomment_245258(p, branch);
			addson_227287(result, branch);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 21)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		} LA2: ;
	} LA1: ;
	{
		NIM_BOOL LOC11;
		tnode226816* branch;
		tnode226816* 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_245266(((NU8) 88), (&(*p)));
		eat_245322(p, ((NU8) 22));
		colcom_246001(p, branch);
		LOC15 = 0;
		LOC15 = parseobjectpart_248922(p);
		addson_227287(branch, LOC15);
		skipcomment_245258(p, branch);
		addson_227287(result, branch);
	}
	LA13: ;
	return result;
}

N_NIMCALL(void, gettoknoind_245579)(tparser245205* p) {
	gettok_245243(p);
	{
		if (!(0 <= (*p).Tok.Indent)) goto LA3;
		parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
	}
	LA3: ;
}

N_NIMCALL(tnode226816*, parseobjectcase_248967)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	tnode226816* LOC1;
	tnode226816* LOC2;
	NIM_BOOL wasindented;
	NI oldind;
	result = 0;
	result = newnodep_245266(((NU8) 138), (&(*p)));
	gettoknoind_245579(p);
	a = newnodep_245266(((NU8) 35), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_247232(p);
	addson_227287(a, LOC1);
	eat_245322(p, ((NU8) 106));
	LOC2 = 0;
	LOC2 = parsetypedesc_245804(p);
	addson_227287(a, LOC2);
	addson_227287(a, emptynode_227738);
	addson_227287(result, a);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA5;
		gettok_245243(p);
	}
	LA5: ;
	skipcomment_245258(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) {
			tnode226816* b;
			tnode226816* fields;
			if (!((*p).Tok.Indent == (*p).Currind)) goto LA12;
			b = 0;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 49):
			{
				b = newnodep_245266(((NU8) 85), (&(*p)));
				exprlist_246160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 22):
			{
				b = newnodep_245266(((NU8) 88), (&(*p)));
				gettok_245243(p);
				eat_245322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA11;
			}
			break;
			}
			skipcomment_245258(p, b);
			fields = parseobjectpart_248922(p);
			{
				if (!((*fields).Kind == ((NU8) 1))) goto LA18;
				parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
				fields = newnodep_245266(((NU8) 23), (&(*p)));
			}
			LA18: ;
			addson_227287(b, fields);
			addson_227287(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(tnode226816*, parseobjectpart_248922)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	{
		NI oldind_249026;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		result = newnodep_245266(((NU8) 137), (&(*p)));
		oldind_249026 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		rawskipcomment_245497(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):
				{
					tnode226816* LOC8;
					LOC8 = 0;
					LOC8 = parseobjectpart_248922(p);
					addson_227287(result, LOC8);
				}
				break;
				default:
				{
					parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
					goto LA5;
				}
				break;
				}
			} LA6: ;
		} LA5: ;
		(*p).Currind = oldind_249026;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).Tok.Toktype) {
		case ((NU8) 66):
		{
			result = parseobjectwhen_248929(p);
		}
		break;
		case ((NU8) 11):
		{
			result = parseobjectcase_248967(p);
		}
		break;
		case ((NU8) 2):
		case ((NU8) 113):
		{
			result = parseidentcolonequals_247262(p, 1);
			skipcomment_245258(p, result);
		}
		break;
		case ((NU8) 45):
		{
			result = newnodep_245266(((NU8) 23), (&(*p)));
			gettok_245243(p);
		}
		break;
		default:
		{
			result = emptynode_227738;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parseobject_247732)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC25;
	result = 0;
	result = newnodep_245266(((NU8) 133), (&(*p)));
	gettok_245243(p);
	{
		NIM_BOOL LOC3;
		tnode226816* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC3)) goto LA4;
		LOC3 = validind_248724(p);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = parsepragma_247131(p);
		addson_227287(result, LOC7);
	}
	goto LA1;
	LA5: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA1: ;
	{
		NIM_BOOL LOC11;
		tnode226816* a;
		tnode226816* 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_245266(((NU8) 77), (&(*p)));
		gettok_245243(p);
		LOC15 = 0;
		LOC15 = parsetypedesc_245804(p);
		addson_227287(a, LOC15);
		addson_227287(result, a);
	}
	goto LA9;
	LA13: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA9: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA19;
		skipcomment_245258(p, result);
	}
	LA19: ;
	{
		if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA23;
		addson_227287(result, emptynode_227738);
		goto BeforeRet;
	}
	LA23: ;
	LOC25 = 0;
	LOC25 = parseobjectpart_248922(p);
	addson_227287(result, LOC25);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, parsetypeclassparam_249082)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	{
		tnode226816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 65))) goto LA3;
		gettok_245243(p);
		result = newnode_227090(((NU8) 142));
		LOC5 = 0;
		LOC5 = parsesymbol_245367(p, NIM_FALSE);
		addson_227287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = parsesymbol_245367(p, NIM_FALSE);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parsetypeclass_247739)(tparser245205* p) {
	tnode226816* result;
	tnode226816* args;
	tnode226816* LOC1;
	result = 0;
	result = newnodep_245266(((NU8) 135), (&(*p)));
	gettok_245243(p);
	args = newnode_227090(((NU8) 151));
	addson_227287(result, args);
	LOC1 = 0;
	LOC1 = parsetypeclassparam_249082(p);
	addson_227287(args, LOC1);
	{
		while (1) {
			tnode226816* LOC4;
			if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA3;
			gettok_245243(p);
			LOC4 = 0;
			LOC4 = parsetypeclassparam_249082(p);
			addson_227287(args, LOC4);
		} LA3: ;
	}
	{
		NIM_BOOL LOC7;
		tnode226816* LOC11;
		LOC7 = 0;
		LOC7 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC7)) goto LA8;
		LOC7 = validind_248724(p);
		LA8: ;
		if (!LOC7) goto LA9;
		LOC11 = 0;
		LOC11 = parsepragma_247131(p);
		addson_227287(result, LOC11);
	}
	goto LA5;
	LA9: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		tnode226816* 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_245266(((NU8) 77), (&(*p)));
		gettok_245243(p);
		{
			while (1) {
				tnode226816* LOC21;
				LOC21 = 0;
				LOC21 = parsetypedesc_245804(p);
				addson_227287(a, LOC21);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA24;
					goto LA19;
				}
				LA24: ;
				gettok_245243(p);
			}
		} LA19: ;
		addson_227287(result, a);
	}
	goto LA13;
	LA17: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA13: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA29;
		skipcomment_245258(p, result);
	}
	LA29: ;
	{
		if (!!(((*p).Currind < (*p).Tok.Indent))) goto LA33;
		addson_227287(result, emptynode_227738);
	}
	goto LA31;
	LA33: ;
	{
		tnode226816* LOC36;
		LOC36 = 0;
		LOC36 = parsestmt_245797(p);
		addson_227287(result, LOC36);
	}
	LA31: ;
	return result;
}

static N_INLINE(NI, sonslen_227249)(tnode226816* 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(tnode226816*, newintnodep_245273)(NU8 kind, NI64 intval, tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, p);
	(*result).kindU.S1.Intval = intval;
	return result;
}

N_NIMCALL(void, setbaseflags_245360)(tnode226816* 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(tnode226816*, newfloatnodep_245281)(NU8 kind, NF floatval, tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, p);
	(*result).kindU.S2.Floatval = floatval;
	return result;
}

N_NIMCALL(tnode226816*, exprcoloneqexprlist_246442)(tparser245205* p, NU8 kind, NU8 endtok) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	exprcoloneqexprlistaux_246240(p, endtok, result);
	return result;
}

N_NIMCALL(void, semistmtlist_246620)(tparser245205* p, tnode226816* result) {
	tnode226816* LOC1;
	(*p).Insemistmtlist += 1;
	LOC1 = 0;
	LOC1 = complexorsimplestmt_246605(p);
	add_227498(result, LOC1);
	{
		while (1) {
			tnode226816* LOC4;
			if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA3;
			gettok_245243(p);
			optind_245344(p, result);
			LOC4 = 0;
			LOC4 = complexorsimplestmt_246605(p);
			add_227498(result, LOC4);
		} LA3: ;
	}
	(*p).Insemistmtlist -= 1;
	(*result).Kind = ((NU8) 126);
}

N_NIMCALL(tnode226816*, parsepar_246671)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 37), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		if (!((TMP1207[(*p).Tok.Toktype/8] &(1<<((*p).Tok.Toktype%8)))!=0)) goto LA3;
		semistmtlist_246620(p, result);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA6;
		gettok_245243(p);
		optind_245344(p, result);
		semistmtlist_246620(p, result);
	}
	goto LA1;
	LA6: ;
	{
		tnode226816* a_246708;
		if (!!(((*p).Tok.Toktype == ((NU8) 93)))) goto LA9;
		a_246708 = simpleexpr_246612(p, ((NU8) 0));
		{
			tnode226816* b;
			tnode226816* asgn;
			if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA13;
			gettok_245243(p);
			optind_245344(p, result);
			b = parseexpr_245790(p);
			asgn = newnodei_229007(((NU8) 73), (*a_246708).Info, 2);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.Sons->data[0]), a_246708);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.Sons->data[1]), b);
			add_227498(result, asgn);
			{
				if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA17;
				semistmtlist_246620(p, result);
			}
			LA17: ;
		}
		goto LA11;
		LA13: ;
		{
			if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA20;
			add_227498(result, a_246708);
			semistmtlist_246620(p, result);
		}
		goto LA11;
		LA20: ;
		{
			a_246708 = colonorequals_246118(p, a_246708);
			add_227498(result, a_246708);
			{
				if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA25;
				gettok_245243(p);
				skipcomment_245258(p, a_246708);
				{
					while (1) {
						NIM_BOOL LOC29;
						tnode226816* 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_246148(p);
						addson_227287(result, a);
						{
							if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA33;
							goto LA27;
						}
						LA33: ;
						gettok_245243(p);
						skipcomment_245258(p, a);
					} LA28: ;
				} LA27: ;
			}
			LA25: ;
		}
		LA11: ;
	}
	goto LA1;
	LA9: ;
	LA1: ;
	optpar_245337(p);
	eat_245322(p, ((NU8) 93));
	return result;
}

N_NIMCALL(tnode226816*, setortableconstr_246455)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 39), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		gettok_245243(p);
		(*result).Kind = ((NU8) 54);
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				tnode226816* a;
				if (!!(((*p).Tok.Toktype == ((NU8) 97) || (*p).Tok.Toktype == ((NU8) 1)))) goto LA7;
				a = exprcoloneqexpr_246148(p);
				{
					if (!((*a).Kind == ((NU8) 34))) goto LA10;
					(*result).Kind = ((NU8) 54);
				}
				LA10: ;
				addson_227287(result, a);
				{
					if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA14;
					goto LA6;
				}
				LA14: ;
				gettok_245243(p);
				skipcomment_245258(p, a);
			} LA7: ;
		} LA6: ;
	}
	LA1: ;
	optpar_245337(p);
	eat_245322(p, ((NU8) 97));
	return result;
}

N_NIMCALL(tnode226816*, parsecast_246515)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC1;
	tnode226816* LOC2;
	result = 0;
	result = newnodep_245266(((NU8) 61), (&(*p)));
	gettok_245243(p);
	eat_245322(p, ((NU8) 94));
	optind_245344(p, result);
	LOC1 = 0;
	LOC1 = parsetypedesc_245804(p);
	addson_227287(result, LOC1);
	optpar_245337(p);
	eat_245322(p, ((NU8) 95));
	eat_245322(p, ((NU8) 92));
	optind_245344(p, result);
	LOC2 = 0;
	LOC2 = parseexpr_245790(p);
	addson_227287(result, LOC2);
	optpar_245337(p);
	eat_245322(p, ((NU8) 93));
	return result;
}

N_NIMCALL(tnode226816*, identorliteral_246816)(tparser245205* p, NU8 mode) {
	tnode226816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 2):
	{
		result = newidentnodep_245297((*p).Tok.Ident, (&(*p)));
		gettok_245243(p);
		result = parsegstrlit_246584(p, result);
	}
	break;
	case ((NU8) 113):
	{
		result = parsesymbol_245367(p, NIM_FALSE);
	}
	break;
	case ((NU8) 72):
	{
		result = newintnodep_245273(((NU8) 6), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 73):
	{
		result = newintnodep_245273(((NU8) 7), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 74):
	{
		result = newintnodep_245273(((NU8) 8), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 75):
	{
		result = newintnodep_245273(((NU8) 9), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 76):
	{
		result = newintnodep_245273(((NU8) 10), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 77):
	{
		result = newintnodep_245273(((NU8) 11), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 78):
	{
		result = newintnodep_245273(((NU8) 12), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 79):
	{
		result = newintnodep_245273(((NU8) 13), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 80):
	{
		result = newintnodep_245273(((NU8) 14), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 81):
	{
		result = newintnodep_245273(((NU8) 15), (*p).Tok.Inumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 82):
	{
		result = newfloatnodep_245281(((NU8) 16), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 83):
	{
		result = newfloatnodep_245281(((NU8) 17), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 84):
	{
		result = newfloatnodep_245281(((NU8) 18), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 85):
	{
		result = newfloatnodep_245281(((NU8) 19), (*p).Tok.Fnumber, (&(*p)));
		setbaseflags_245360(result, (*p).Tok.Base);
		gettok_245243(p);
	}
	break;
	case ((NU8) 86):
	{
		result = newstrnodep_245289(((NU8) 20), (*p).Tok.Literal, (&(*p)));
		gettok_245243(p);
	}
	break;
	case ((NU8) 87):
	{
		result = newstrnodep_245289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		gettok_245243(p);
	}
	break;
	case ((NU8) 88):
	{
		result = newstrnodep_245289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		gettok_245243(p);
	}
	break;
	case ((NU8) 91):
	{
		result = newintnodep_245273(((NU8) 5), ((NI64) (((NU8)((*p).Tok.Literal->data[0])))), (&(*p)));
		gettok_245243(p);
	}
	break;
	case ((NU8) 45):
	{
		result = newnodep_245266(((NU8) 23), (&(*p)));
		gettok_245243(p);
	}
	break;
	case ((NU8) 92):
	{
		{
			if (!((6 &(1<<((mode)&7)))!=0)) goto LA25;
			result = exprcoloneqexprlist_246442(p, ((NU8) 37), ((NU8) 93));
		}
		goto LA23;
		LA25: ;
		{
			result = parsepar_246671(p);
		}
		LA23: ;
	}
	break;
	case ((NU8) 96):
	{
		result = setortableconstr_246455(p);
	}
	break;
	case ((NU8) 94):
	{
		result = exprcoloneqexprlist_246442(p, ((NU8) 41), ((NU8) 95));
	}
	break;
	case ((NU8) 12):
	{
		result = parsecast_246515(p);
	}
	break;
	default:
	{
		parmessage_245452((&(*p)), ((NU16) 60), (&(*p).Tok));
		gettok_245243(p);
		result = emptynode_227738;
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, primary_247014)(tparser245205* p, NU8 mode) {
	tnode226816* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL issigil;
		tnode226816* a;
		LOC3 = 0;
		LOC3 = isoperator_245237((&(*p).Tok));
		if (!LOC3) goto LA4;
		issigil = issigillike_245827((&(*p).Tok));
		result = newnodep_245266(((NU8) 30), (&(*p)));
		a = newidentnodep_245297((*p).Tok.Ident, (&(*p)));
		addson_227287(result, a);
		gettok_245243(p);
		optind_245344(p, a);
		{
			NI baseind;
			tnode226816* LOC10;
			if (!issigil) goto LA8;
			baseind = (*p).Lex.Currlineindent;
			LOC10 = 0;
			LOC10 = primary_247014(p, ((NU8) 3));
			addson_227287(result, LOC10);
			result = primarysuffix_246873(p, result, baseind);
		}
		goto LA6;
		LA8: ;
		{
			tnode226816* LOC12;
			LOC12 = 0;
			LOC12 = primary_247014(p, ((NU8) 0));
			addson_227287(result, LOC12);
		}
		LA6: ;
		goto BeforeRet;
	}
	LA4: ;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 65):
	{
		result = parsetypedesckaux_247667(p, ((NU8) 142), mode);
	}
	break;
	case ((NU8) 55):
	{
		result = parsetypedesckaux_247667(p, ((NU8) 140), mode);
	}
	break;
	case ((NU8) 53):
	{
		result = parsetypedesckaux_247667(p, ((NU8) 141), mode);
	}
	break;
	case ((NU8) 18):
	{
		result = parsetypedesckaux_247667(p, ((NU8) 145), mode);
	}
	break;
	case ((NU8) 63):
	{
		result = parsetypedesckaux_247667(p, ((NU8) 132), mode);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetuple_247354(p, (mode == ((NU8) 2)));
	}
	break;
	case ((NU8) 52):
	{
		result = parseprocexpr_247579(p, !(((6 &(1<<((mode)&7)))!=0)));
	}
	break;
	case ((NU8) 39):
	{
		result = parseprocexpr_247579(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_247725(p);
		}
		goto LA27;
		LA29: ;
		{
			result = newnodep_245266(((NU8) 149), (&(*p)));
			gettok_245243(p);
		}
		LA27: ;
	}
	break;
	case ((NU8) 48):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA35;
			result = parseobject_247732(p);
		}
		goto LA33;
		LA35: ;
		{
			result = newnodep_245266(((NU8) 133), (&(*p)));
			gettok_245243(p);
		}
		LA33: ;
	}
	break;
	case ((NU8) 31):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA41;
			result = parsetypeclass_247739(p);
		}
		goto LA39;
		LA41: ;
		{
			parmessage_245452((&(*p)), ((NU16) 12), (&(*p).Tok));
		}
		LA39: ;
	}
	break;
	case ((NU8) 3):
	{
		tnode226816* LOC45;
		result = newnodep_245266(((NU8) 63), (&(*p)));
		gettoknoind_245579(p);
		LOC45 = 0;
		LOC45 = primary_247014(p, ((NU8) 0));
		addson_227287(result, LOC45);
	}
	break;
	case ((NU8) 59):
	{
		tlineinfo196539 info;
		tnode226816* next;
		info = parlineinfo_245316((&(*p)));
		gettoknoind_245579(p);
		next = primary_247014(p, ((NU8) 0));
		{
			NIM_BOOL LOC49;
			NI LOC51;
			tnodeseq226810* LOC54;
			TY247892 LOC55;
			LOC49 = 0;
			LOC49 = ((*next).Kind == ((NU8) 41));
			if (!(LOC49)) goto LA50;
			LOC51 = 0;
			LOC51 = sonslen_227249(next);
			LOC49 = (LOC51 == 1);
			LA50: ;
			if (!LOC49) goto LA52;
			LOC54 = 0;
			LOC54 = (tnodeseq226810*) newSeq((&NTI226810), 1);
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = (*next).kindU.S6.Sons->data[0];
			asgnRefNoCycle((void**) (&LOC54->data[0]), LOC55[0]);
			result = newnode_229207(((NU8) 136), info, LOC54, NIM_NIL);
		}
		goto LA47;
		LA52: ;
		{
			tnodeseq226810* LOC57;
			TY247892 LOC58;
			LOC57 = 0;
			LOC57 = (tnodeseq226810*) newSeq((&NTI226810), 1);
			memset((void*)LOC58, 0, sizeof(LOC58));
			LOC58[0] = next;
			asgnRefNoCycle((void**) (&LOC57->data[0]), LOC58[0]);
			result = newnode_229207(((NU8) 62), info, LOC57, NIM_NIL);
		}
		LA47: ;
	}
	break;
	case ((NU8) 8):
	{
		tnode226816* LOC60;
		result = newnodep_245266(((NU8) 55), (&(*p)));
		gettok_245243(p);
		optind_245344(p, result);
		LOC60 = 0;
		LOC60 = primary_247014(p, ((NU8) 0));
		addson_227287(result, LOC60);
	}
	break;
	default:
	{
		NI baseind;
		baseind = (*p).Lex.Currlineindent;
		result = identorliteral_246816(p, mode);
		{
			if (!!((mode == ((NU8) 3)))) goto LA64;
			result = primarysuffix_246873(p, result, baseind);
		}
		LA64: ;
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(NI, getprecedence_245867)(ttoken216186* 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[(NI64)(l - 1)]) == (NU8)(62));
			LA5: ;
			if (!LOC4) goto LA6;
			LOC8 = 0;
			{
				if (!strongspaces) goto LA11;
				LOC8 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA9;
			LA11: ;
			{
				LOC8 = 0;
			}
			LA9: ;
			result = (NI64)(1 + LOC8);
			goto BeforeRet;
		}
		LA6: ;
		switch (((NU8)(relevantchar))) {
		case 36:
		case 94:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI64)(l - 1)]) == (NU8)(61))) goto LA17;
				result = 1;
			}
			goto LA15;
			LA17: ;
			{
				NI LOC20;
				LOC20 = 0;
				{
					if (!strongspaces) goto LA23;
					LOC20 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA21;
				LA23: ;
				{
					LOC20 = 0;
				}
				LA21: ;
				result = (NI64)(10 + LOC20);
			}
			LA15: ;
		}
		break;
		case 42:
		case 37:
		case 47:
		case 92:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI64)(l - 1)]) == (NU8)(61))) goto LA29;
				result = 1;
			}
			goto LA27;
			LA29: ;
			{
				NI LOC32;
				LOC32 = 0;
				{
					if (!strongspaces) goto LA35;
					LOC32 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA33;
				LA35: ;
				{
					LOC32 = 0;
				}
				LA33: ;
				result = (NI64)(9 + LOC32);
			}
			LA27: ;
		}
		break;
		case 126:
		{
			NI LOC39;
			LOC39 = 0;
			{
				if (!strongspaces) goto LA42;
				LOC39 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA40;
			LA42: ;
			{
				LOC39 = 0;
			}
			LA40: ;
			result = (NI64)(8 + LOC39);
		}
		break;
		case 43:
		case 45:
		case 124:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI64)(l - 1)]) == (NU8)(61))) goto LA48;
				result = 1;
			}
			goto LA46;
			LA48: ;
			{
				NI LOC51;
				LOC51 = 0;
				{
					if (!strongspaces) goto LA54;
					LOC51 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA52;
				LA54: ;
				{
					LOC51 = 0;
				}
				LA52: ;
				result = (NI64)(8 + LOC51);
			}
			LA46: ;
		}
		break;
		case 38:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI64)(l - 1)]) == (NU8)(61))) goto LA60;
				result = 1;
			}
			goto LA58;
			LA60: ;
			{
				NI LOC63;
				LOC63 = 0;
				{
					if (!strongspaces) goto LA66;
					LOC63 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA64;
				LA66: ;
				{
					LOC63 = 0;
				}
				LA64: ;
				result = (NI64)(7 + LOC63);
			}
			LA58: ;
		}
		break;
		case 61:
		case 60:
		case 62:
		case 33:
		{
			NI LOC70;
			LOC70 = 0;
			{
				if (!strongspaces) goto LA73;
				LOC70 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA71;
			LA73: ;
			{
				LOC70 = 0;
			}
			LA71: ;
			result = (NI64)(5 + LOC70);
		}
		break;
		case 46:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI64)(l - 1)]) == (NU8)(61))) goto LA79;
				result = 1;
			}
			goto LA77;
			LA79: ;
			{
				NI LOC82;
				LOC82 = 0;
				{
					if (!strongspaces) goto LA85;
					LOC82 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA83;
				LA85: ;
				{
					LOC82 = 0;
				}
				LA83: ;
				result = (NI64)(6 + LOC82);
			}
			LA77: ;
		}
		break;
		case 63:
		{
			NI LOC89;
			LOC89 = 0;
			{
				if (!strongspaces) goto LA92;
				LOC89 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
			}
			goto LA90;
			LA92: ;
			{
				LOC89 = 0;
			}
			LA90: ;
			result = (NI64)(2 + LOC89);
		}
		break;
		default:
		{
			{
				if (!((NU8)((*(*tok).Ident).S->data[(NI64)(l - 1)]) == (NU8)(61))) goto LA98;
				result = 1;
			}
			goto LA96;
			LA98: ;
			{
				NI LOC101;
				LOC101 = 0;
				{
					if (!strongspaces) goto LA104;
					LOC101 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
				}
				goto LA102;
				LA104: ;
				{
					LOC101 = 0;
				}
				LA102: ;
				result = (NI64)(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 = (NI64)(100 - (NI64)(((NI) ((*tok).Strongspacea)) * 10));
		}
		goto LA111;
		LA113: ;
		{
			LOC110 = 0;
		}
		LA111: ;
		result = (NI64)(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_245942)(tparser245205* 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_245967)(tparser245205* 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_216434((&(*p).Tok));
			LOC14 = 0;
			LOC14 = nsuFormatSingleElem(((NimStringDesc*) &TMP1208), LOC13);
			parmessage_245250(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_245250(p, ((NU16) 4), ((NimStringDesc*) &TMP1209));
		}
		goto LA7;
		LA16: ;
		LA7: ;
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isrightassociative_245846)(ttoken216186* 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[(NI64)(l - 1)]) == (NU8)(62));
	LA6: ;
	LOC3 = LOC5;
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(tnode226816*, parseoperators_247031)(tparser245205* p, tnode226816* headnode, NI limit, NU8 mode) {
	tnode226816* result;
	NI opprec;
	NU8 modeb;
	result = 0;
	result = headnode;
	opprec = getprecedence_245867((&(*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;
			tnode226816* a;
			tnode226816* opnode;
			tnode226816* 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_245942((&(*p)));
			LOC8 = !(LOC12);
			LA11: ;
			if (!LOC8) goto LA7;
			checkbinary_245967((&(*p)));
			LOC13 = 0;
			LOC13 = isrightassociative_245846((&(*p).Tok));
			leftassoc = (NI64)(1 - ((NI) (LOC13)));
			a = newnodep_245266(((NU8) 29), (&(*p)));
			opnode = newidentnodep_245297((*p).Tok.Ident, (&(*p)));
			gettok_245243(p);
			optind_245344(p, opnode);
			b = simpleexpraux_247022(p, (NI64)(opprec + leftassoc), modeb);
			addson_227287(a, opnode);
			addson_227287(a, result);
			addson_227287(a, b);
			result = a;
			opprec = getprecedence_245867((&(*p).Tok), (*p).Strongspaces);
		} LA7: ;
	}
	return result;
}

N_NIMCALL(tnode226816*, simpleexpraux_247022)(tparser245205* p, NI limit, NU8 mode) {
	tnode226816* result;
	result = 0;
	result = primary_247014(p, mode);
	result = parseoperators_247031(p, result, limit, mode);
	return result;
}

N_NIMCALL(tnode226816*, simpleexpr_246612)(tparser245205* p, NU8 mode) {
	tnode226816* result;
	result = 0;
	result = simpleexpraux_247022(p, -1, mode);
	return result;
}

N_NIMCALL(tnode226816*, makecall_247950)(tnode226816* n) {
	tnode226816* 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_227138(((NU8) 27), (*n).Info);
		add_227498(result, n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parsemacrocolon_246865)(tparser245205* p, tnode226816* x) {
	tnode226816* 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_247950(result);
		gettok_245243(p);
		skipcomment_245258(p, result);
		{
			tnode226816* body;
			tnode226816* 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_245797(p);
			LOC11 = 0;
			LOC11 = makestmtlist_234032(body);
			addson_227287(result, LOC11);
		}
		LA9: ;
		{
			while (1) {
				tnode226816* b;
				tnode226816* LOC20;
				if (!((*p).Tok.Indent == (*p).Currind)) goto LA13;
				b = 0;
				switch ((*p).Tok.Toktype) {
				case ((NU8) 49):
				{
					b = newnodep_245266(((NU8) 85), (&(*p)));
					exprlist_246160(p, ((NU8) 106), b);
				}
				break;
				case ((NU8) 21):
				{
					tnode226816* LOC16;
					b = newnodep_245266(((NU8) 86), (&(*p)));
					gettok_245243(p);
					optind_245344(p, b);
					LOC16 = 0;
					LOC16 = parseexpr_245790(p);
					addson_227287(b, LOC16);
					eat_245322(p, ((NU8) 106));
				}
				break;
				case ((NU8) 25):
				{
					b = newnodep_245266(((NU8) 87), (&(*p)));
					exprlist_246160(p, ((NU8) 106), b);
					skipcomment_245258(p, b);
				}
				break;
				case ((NU8) 22):
				{
					b = newnodep_245266(((NU8) 88), (&(*p)));
					gettok_245243(p);
					eat_245322(p, ((NU8) 106));
				}
				break;
				default:
				{
					goto LA12;
				}
				break;
				}
				LOC20 = 0;
				LOC20 = parsestmt_245797(p);
				addson_227287(b, LOC20);
				addson_227287(result, b);
				{
					if (!((*b).Kind == ((NU8) 88))) goto LA23;
					goto LA12;
				}
				LA23: ;
			} LA13: ;
		} LA12: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode226816*, parseexprstmt_248028)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	(*p).Inpragma += 1;
	a = simpleexpr_246612(p, ((NU8) 0));
	(*p).Inpragma -= 1;
	{
		tnode226816* b;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA3;
		gettok_245243(p);
		optind_245344(p, result);
		b = parseexpr_245790(p);
		result = newnodei_227138(((NU8) 73), (*a).Info);
		addson_227287(result, a);
		addson_227287(result, b);
	}
	goto LA1;
	LA3: ;
	{
		{
			NIM_BOOL LOC8;
			tnodeseq226810* LOC12;
			TY247892 LOC13;
			LOC8 = 0;
			LOC8 = ((*p).Tok.Indent < 0);
			if (!(LOC8)) goto LA9;
			LOC8 = isexprstart_247619((&(*p)));
			LA9: ;
			if (!LOC8) goto LA10;
			LOC12 = 0;
			LOC12 = (tnodeseq226810*) newSeq((&NTI226810), 1);
			memset((void*)LOC13, 0, sizeof(LOC13));
			LOC13[0] = a;
			asgnRefNoCycle((void**) (&LOC12->data[0]), LOC13[0]);
			result = newnode_229207(((NU8) 26), (*a).Info, LOC12, NIM_NIL);
			{
				while (1) {
					tnode226816* e;
					e = parseexpr_245790(p);
					addson_227287(result, e);
					{
						if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA18;
						goto LA14;
					}
					LA18: ;
					gettok_245243(p);
					optind_245344(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_247950(result);
			parsedoblocks_245811(p, result);
			goto BeforeRet;
		}
		LA25: ;
		result = parsemacrocolon_246865(p, result);
	}
	LA1: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, simplestmt_249319)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 56):
	{
		result = parsereturnorraise_248355(p, ((NU8) 109));
	}
	break;
	case ((NU8) 54):
	{
		result = parsereturnorraise_248355(p, ((NU8) 108));
	}
	break;
	case ((NU8) 71):
	{
		result = parsereturnorraise_248355(p, ((NU8) 104));
	}
	break;
	case ((NU8) 17):
	{
		result = parsereturnorraise_248355(p, ((NU8) 114));
	}
	break;
	case ((NU8) 10):
	{
		result = parsereturnorraise_248355(p, ((NU8) 110));
	}
	break;
	case ((NU8) 14):
	{
		result = parsereturnorraise_248355(p, ((NU8) 111));
	}
	break;
	case ((NU8) 100):
	{
		result = parsestmtpragma_249297(p);
	}
	break;
	case ((NU8) 33):
	{
		result = parseimport_248207(p, ((NU8) 116));
	}
	break;
	case ((NU8) 26):
	{
		result = parseimport_248207(p, ((NU8) 118));
	}
	break;
	case ((NU8) 29):
	{
		result = parsefromstmt_248318(p);
	}
	break;
	case ((NU8) 35):
	{
		result = parseincludestmt_248281(p);
	}
	break;
	case ((NU8) 112):
	{
		result = newcommentstmt_248785(p);
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = isexprstart_247619((&(*p)));
			if (!LOC16) goto LA17;
			result = parseexprstmt_248028(p);
		}
		goto LA14;
		LA17: ;
		{
			result = emptynode_227738;
		}
		LA14: ;
	}
	break;
	}
	{
		if (!!(((*result).Kind == ((NU8) 1) || (*result).Kind == ((NU8) 125)))) goto LA22;
		skipcomment_245258(p, result);
	}
	LA22: ;
	return result;
}

N_NIMCALL(tnode226816*, parsestmt_245797)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	{
		NI oldind_249371;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		result = newnodep_245266(((NU8) 115), (&(*p)));
		oldind_249371 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		{
			while (1) {
				tnode226816* a;
				{
					if (!((*p).Tok.Indent == (*p).Currind)) goto LA9;
				}
				goto LA7;
				LA9: ;
				{
					if (!((*p).Tok.Toktype == ((NU8) 105))) goto LA12;
					gettok_245243(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_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
					}
					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_246605(p);
				{
					if (!!(((*a).Kind == ((NU8) 1)))) goto LA34;
					addson_227287(result, a);
				}
				goto LA32;
				LA34: ;
				{
					parmessage_245452((&(*p)), ((NU16) 60), (&(*p).Tok));
					gettok_245243(p);
				}
				LA32: ;
			}
		} LA5: ;
		(*p).Currind = oldind_249371;
	}
	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_245250((&(*p)), ((NU16) 153), ((NimStringDesc*) &TMP1081));
			result = emptynode_227738;
		}
		break;
		default:
		{
			{
				if (!(0 < (*p).Insemistmtlist)) goto LA42;
				result = simplestmt_249319(p);
				{
					if (!((*result).Kind == ((NU8) 1))) goto LA46;
					parmessage_245452((&(*p)), ((NU16) 60), (&(*p).Tok));
				}
				LA46: ;
			}
			goto LA40;
			LA42: ;
			{
				result = newnodep_245266(((NU8) 115), (&(*p)));
				{
					while (1) {
						tnode226816* a;
						{
							if (!(0 <= (*p).Tok.Indent)) goto LA53;
							parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
						}
						LA53: ;
						a = simplestmt_249319(p);
						{
							if (!((*a).Kind == ((NU8) 1))) goto LA57;
							parmessage_245452((&(*p)), ((NU16) 60), (&(*p).Tok));
						}
						LA57: ;
						add_227498(result, a);
						{
							if (!!(((*p).Tok.Toktype == ((NU8) 105)))) goto LA61;
							goto LA49;
						}
						LA61: ;
						gettok_245243(p);
					}
				} LA49: ;
			}
			LA40: ;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parsecase_245383)(tparser245205* p) {
	tnode226816* result;
	tnode226816* b;
	NIM_BOOL inelif;
	NIM_BOOL wasindented;
	tnode226816* LOC1;
	NI oldind;
	result = 0;
	b = 0;
	inelif = NIM_FALSE;
	wasindented = NIM_FALSE;
	result = newnodep_245266(((NU8) 97), (&(*p)));
	gettok_245243(p);
	LOC1 = 0;
	LOC1 = parseexpr_245790(p);
	addson_227287(result, LOC1);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA4;
		gettok_245243(p);
	}
	LA4: ;
	skipcomment_245258(p, result);
	oldind = (*p).Currind;
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA8;
		(*p).Currind = (*p).Tok.Indent;
		wasindented = NIM_TRUE;
	}
	LA8: ;
	{
		while (1) {
			tnode226816* 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_245266(((NU8) 85), (&(*p)));
				exprlist_246160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 21):
			{
				tnode226816* LOC18;
				inelif = NIM_TRUE;
				b = newnodep_245266(((NU8) 86), (&(*p)));
				gettok_245243(p);
				optind_245344(p, b);
				LOC18 = 0;
				LOC18 = parseexpr_245790(p);
				addson_227287(b, LOC18);
				eat_245322(p, ((NU8) 106));
			}
			break;
			case ((NU8) 22):
			{
				b = newnodep_245266(((NU8) 88), (&(*p)));
				gettok_245243(p);
				eat_245322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA10;
			}
			break;
			}
			skipcomment_245258(p, b);
			LOC21 = 0;
			LOC21 = parsestmt_245797(p);
			addson_227287(b, LOC21);
			addson_227287(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(tnode226816*, parsetry_245375)(tparser245205* p, NIM_BOOL isexpr) {
	tnode226816* result;
	tnode226816* LOC1;
	tnode226816* b;
	result = 0;
	result = newnodep_245266(((NU8) 106), (&(*p)));
	gettok_245243(p);
	eat_245322(p, ((NU8) 106));
	skipcomment_245258(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_245797(p);
	addson_227287(result, LOC1);
	b = NIM_NIL;
	{
		while (1) {
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			tnode226816* 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_245266(((NU8) 87), (&(*p)));
				exprlist_246160(p, ((NU8) 106), b);
			}
			break;
			case ((NU8) 27):
			{
				b = newnodep_245266(((NU8) 107), (&(*p)));
				gettoknoind_245579(p);
				eat_245322(p, ((NU8) 106));
			}
			break;
			default:
			{
				goto LA2;
			}
			break;
			}
			skipcomment_245258(p, b);
			LOC11 = 0;
			LOC11 = parsestmt_245797(p);
			addson_227287(b, LOC11);
			addson_227287(result, b);
			{
				if (!((*b).Kind == ((NU8) 107))) goto LA14;
				goto LA2;
			}
			LA14: ;
		} LA3: ;
	} LA2: ;
	{
		if (!(b == NIM_NIL)) goto LA18;
		parmessage_245250((&(*p)), ((NU16) 23), ((NimStringDesc*) &TMP1210));
	}
	LA18: ;
	return result;
}

N_NIMCALL(tnode226816*, parseexpr_245790)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 32):
	{
		result = parseifexpr_247101(p, ((NU8) 48));
	}
	break;
	case ((NU8) 66):
	{
		result = parseifexpr_247101(p, ((NU8) 93));
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_245383(p);
	}
	break;
	case ((NU8) 61):
	{
		result = parsetry_245375(p, NIM_TRUE);
	}
	break;
	default:
	{
		result = simpleexpr_246612(p, ((NU8) 0));
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, parseiforwhen_248376)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	{
		while (1) {
			tnode226816* branch;
			tnode226816* LOC3;
			tnode226816* LOC4;
			gettok_245243(p);
			branch = newnodep_245266(((NU8) 86), (&(*p)));
			optind_245344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_245790(p);
			addson_227287(branch, LOC3);
			eat_245322(p, ((NU8) 106));
			skipcomment_245258(p, branch);
			LOC4 = 0;
			LOC4 = parsestmt_245797(p);
			addson_227287(branch, LOC4);
			skipcomment_245258(p, branch);
			addson_227287(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;
		tnode226816* branch;
		tnode226816* 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_245266(((NU8) 88), (&(*p)));
		eat_245322(p, ((NU8) 22));
		eat_245322(p, ((NU8) 106));
		skipcomment_245258(p, branch);
		LOC21 = 0;
		LOC21 = parsestmt_245797(p);
		addson_227287(branch, LOC21);
		addson_227287(result, branch);
	}
	LA19: ;
	return result;
}

N_NIMCALL(tnode226816*, parsewhile_248417)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC1;
	tnode226816* LOC2;
	result = 0;
	result = newnodep_245266(((NU8) 96), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	LOC1 = 0;
	LOC1 = parseexpr_245790(p);
	addson_227287(result, LOC1);
	colcom_246001(p, result);
	LOC2 = 0;
	LOC2 = parsestmt_245797(p);
	addson_227287(result, LOC2);
	return result;
}

N_NIMCALL(tnode226816*, parseexceptblock_248518)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	tnode226816* LOC1;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	gettoknoind_245579(p);
	colcom_246001(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_245797(p);
	addson_227287(result, LOC1);
	return result;
}

N_NIMCALL(tnode226816*, parsefor_248530)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	tnode226816* LOC3;
	tnode226816* LOC4;
	result = 0;
	result = newnodep_245266(((NU8) 94), (&(*p)));
	gettoknoind_245579(p);
	a = identwithpragma_247232(p);
	addson_227287(result, a);
	{
		while (1) {
			if (!((*p).Tok.Toktype == ((NU8) 104))) goto LA2;
			gettok_245243(p);
			optind_245344(p, a);
			a = identwithpragma_247232(p);
			addson_227287(result, a);
		} LA2: ;
	}
	eat_245322(p, ((NU8) 34));
	LOC3 = 0;
	LOC3 = parseexpr_245790(p);
	addson_227287(result, LOC3);
	colcom_246001(p, result);
	LOC4 = 0;
	LOC4 = parsestmt_245797(p);
	addson_227287(result, LOC4);
	return result;
}

N_NIMCALL(tnode226816*, parseblock_248558)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC7;
	result = 0;
	result = newnodep_245266(((NU8) 112), (&(*p)));
	gettoknoind_245579(p);
	{
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA3;
		addson_227287(result, emptynode_227738);
	}
	goto LA1;
	LA3: ;
	{
		tnode226816* LOC6;
		LOC6 = 0;
		LOC6 = parsesymbol_245367(p, NIM_FALSE);
		addson_227287(result, LOC6);
	}
	LA1: ;
	colcom_246001(p, result);
	LOC7 = 0;
	LOC7 = parsestmt_245797(p);
	addson_227287(result, LOC7);
	return result;
}

N_NIMCALL(tnode226816*, parsestaticordefer_248578)(tparser245205* p, NU8 k) {
	tnode226816* result;
	tnode226816* LOC1;
	result = 0;
	result = newnodep_245266(k, (&(*p)));
	gettoknoind_245579(p);
	colcom_246001(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_245797(p);
	addson_227287(result, LOC1);
	return result;
}

N_NIMCALL(tnode226816*, parseasm_248590)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 89), (&(*p)));
	gettoknoind_245579(p);
	{
		tnode226816* LOC5;
		if (!((*p).Tok.Toktype == ((NU8) 100))) goto LA3;
		LOC5 = 0;
		LOC5 = parsepragma_247131(p);
		addson_227287(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA1: ;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 86):
	{
		tnode226816* LOC8;
		LOC8 = 0;
		LOC8 = newstrnodep_245289(((NU8) 20), (*p).Tok.Literal, (&(*p)));
		addson_227287(result, LOC8);
	}
	break;
	case ((NU8) 87):
	{
		tnode226816* LOC10;
		LOC10 = 0;
		LOC10 = newstrnodep_245289(((NU8) 21), (*p).Tok.Literal, (&(*p)));
		addson_227287(result, LOC10);
	}
	break;
	case ((NU8) 88):
	{
		tnode226816* LOC12;
		LOC12 = 0;
		LOC12 = newstrnodep_245289(((NU8) 22), (*p).Tok.Literal, (&(*p)));
		addson_227287(result, LOC12);
	}
	break;
	default:
	{
		parmessage_245250((&(*p)), ((NU16) 6), ((NimStringDesc*) &TMP1081));
		addson_227287(result, emptynode_227738);
		goto BeforeRet;
	}
	break;
	}
	gettok_245243(p);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, parsepattern_248713)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	eat_245322(p, ((NU8) 96));
	result = parsestmt_245797(p);
	eat_245322(p, ((NU8) 97));
	return result;
}

N_NIMCALL(tnode226816*, parsegenericparam_248610)(tparser245205* p) {
	tnode226816* result;
	tnode226816* a;
	result = 0;
	a = 0;
	result = newnodep_245266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).Tok.Toktype) {
			case ((NU8) 2):
			case ((NU8) 113):
			{
				a = parsesymbol_245367(p, NIM_FALSE);
				{
					if (!((*a).Kind == ((NU8) 1))) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA11;
				goto LA1;
			}
			LA11: ;
			gettok_245243(p);
			optind_245344(p, a);
		}
	} LA1: ;
	{
		tnode226816* LOC17;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA15;
		gettok_245243(p);
		optind_245344(p, result);
		LOC17 = 0;
		LOC17 = parseexpr_245790(p);
		addson_227287(result, LOC17);
	}
	goto LA13;
	LA15: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA13: ;
	{
		tnode226816* LOC23;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA21;
		gettok_245243(p);
		optind_245344(p, result);
		LOC23 = 0;
		LOC23 = parseexpr_245790(p);
		addson_227287(result, LOC23);
	}
	goto LA19;
	LA21: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA19: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, parsegenericparamlist_248666)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 75), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			tnode226816* a;
			if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA2;
			a = parsegenericparam_248610(p);
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104) || (*p).Tok.Toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_245243(p);
			skipcomment_245258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_245337(p);
	eat_245322(p, ((NU8) 95));
	return result;
}

N_NIMCALL(void, indandcomment_245352)(tparser245205* p, tnode226816* n) {
	{
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA3;
		{
			if (!((*p).Tok.Toktype == ((NU8) 112))) goto LA7;
			rawskipcomment_245497(p, n);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		skipcomment_245258(p, n);
	}
	LA1: ;
}

N_NIMCALL(tnode226816*, parseroutine_248737)(tparser245205* p, NU8 kind) {
	tnode226816* result;
	tnode226816* LOC1;
	tnode226816* LOC18;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	LOC1 = 0;
	LOC1 = identvis_247211(p);
	addson_227287(result, LOC1);
	{
		NIM_BOOL LOC4;
		tnode226816* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).Tok.Toktype == ((NU8) 96));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_248724(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsepattern_248713(p);
		addson_227287(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA2: ;
	{
		NIM_BOOL LOC12;
		tnode226816* LOC16;
		LOC12 = 0;
		LOC12 = ((*p).Tok.Toktype == ((NU8) 94));
		if (!(LOC12)) goto LA13;
		LOC12 = validind_248724(p);
		LA13: ;
		if (!LOC12) goto LA14;
		LOC16 = 0;
		LOC16 = parsegenericparamlist_248666(p);
		add_227498(result, LOC16);
	}
	goto LA10;
	LA14: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA10: ;
	LOC18 = 0;
	LOC18 = parseparamlist_245819(p, NIM_TRUE);
	addson_227287(result, LOC18);
	{
		NIM_BOOL LOC21;
		tnode226816* LOC25;
		LOC21 = 0;
		LOC21 = ((*p).Tok.Toktype == ((NU8) 100));
		if (!(LOC21)) goto LA22;
		LOC21 = validind_248724(p);
		LA22: ;
		if (!LOC21) goto LA23;
		LOC25 = 0;
		LOC25 = parsepragma_247131(p);
		addson_227287(result, LOC25);
	}
	goto LA19;
	LA23: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA19: ;
	addson_227287(result, emptynode_227738);
	{
		NIM_BOOL LOC29;
		tnode226816* LOC33;
		LOC29 = 0;
		LOC29 = ((*p).Tok.Toktype == ((NU8) 108));
		if (!(LOC29)) goto LA30;
		LOC29 = validind_248724(p);
		LA30: ;
		if (!LOC29) goto LA31;
		gettok_245243(p);
		skipcomment_245258(p, result);
		LOC33 = 0;
		LOC33 = parsestmt_245797(p);
		addson_227287(result, LOC33);
	}
	goto LA27;
	LA31: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA27: ;
	indandcomment_245352(p, result);
	return result;
}

N_NIMCALL(tnode226816*, parsesection_248804)(tparser245205* p, NU8 kind, tdefparser248797 defparser) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(kind, (&(*p)));
	{
		if (!!((kind == ((NU8) 98)))) goto LA3;
		gettok_245243(p);
	}
	LA3: ;
	skipcomment_245258(p, result);
	{
		NI oldind_248822;
		if (!((*p).Currind < (*p).Tok.Indent)) goto LA7;
		oldind_248822 = (*p).Currind;
		(*p).Currind = (*p).Tok.Indent;
		skipcomment_245258(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):
				{
					tnode226816* a;
					a = defparser(p);
					skipcomment_245258(p, a);
					addson_227287(result, a);
				}
				break;
				case ((NU8) 112):
				{
					tnode226816* a;
					a = newcommentstmt_248785(p);
					addson_227287(result, a);
				}
				break;
				default:
				{
					parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
					goto LA9;
				}
				break;
				}
			} LA10: ;
		} LA9: ;
		(*p).Currind = oldind_248822;
		{
			NI LOC16;
			LOC16 = 0;
			LOC16 = len_227364(result);
			if (!(LOC16 == 0)) goto LA17;
			parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
		}
		LA17: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		tnode226816* 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_227287(result, LOC24);
	}
	goto LA5;
	LA22: ;
	{
		parmessage_245452((&(*p)), ((NU16) 19), (&(*p).Tok));
	}
	LA5: ;
	return result;
}

N_NIMCALL(tnode226816*, parsetypedefaux_247939)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = simpleexpr_246612(p, ((NU8) 2));
	return result;
}

N_NIMCALL(tnode226816*, parsetypedef_249176)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC1;
	result = 0;
	result = newnodep_245266(((NU8) 103), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_247232(p);
	addson_227287(result, LOC1);
	{
		NIM_BOOL LOC4;
		tnode226816* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).Tok.Toktype == ((NU8) 94));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_248724(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsegenericparamlist_248666(p);
		addson_227287(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA2: ;
	{
		tnode226816* LOC14;
		if (!((*p).Tok.Toktype == ((NU8) 108))) goto LA12;
		gettok_245243(p);
		optind_245344(p, result);
		LOC14 = 0;
		LOC14 = parsetypedefaux_247939(p);
		addson_227287(result, LOC14);
	}
	goto LA10;
	LA12: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA10: ;
	indandcomment_245352(p, result);
	return result;
}

N_NIMCALL(tnode226816*, parseconstant_248853)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC1;
	tnode226816* LOC8;
	result = 0;
	result = newnodep_245266(((NU8) 102), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_247232(p);
	addson_227287(result, LOC1);
	{
		tnode226816* LOC6;
		if (!((*p).Tok.Toktype == ((NU8) 106))) goto LA4;
		gettok_245243(p);
		optind_245344(p, result);
		LOC6 = 0;
		LOC6 = parsetypedesc_245804(p);
		addson_227287(result, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		addson_227287(result, emptynode_227738);
	}
	LA2: ;
	eat_245322(p, ((NU8) 108));
	optind_245344(p, result);
	LOC8 = 0;
	LOC8 = parseexpr_245790(p);
	addson_227287(result, LOC8);
	indandcomment_245352(p, result);
	return result;
}

N_NIMCALL(tnode226816*, parsevartuple_249205)(tparser245205* p) {
	tnode226816* result;
	tnode226816* LOC7;
	result = 0;
	result = newnodep_245266(((NU8) 36), (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			tnode226816* a;
			if (!((*p).Tok.Toktype == ((NU8) 2) || (*p).Tok.Toktype == ((NU8) 113))) goto LA2;
			a = identwithpragma_247232(p);
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_245243(p);
			skipcomment_245258(p, a);
		} LA2: ;
	} LA1: ;
	addson_227287(result, emptynode_227738);
	optpar_245337(p);
	eat_245322(p, ((NU8) 93));
	eat_245322(p, ((NU8) 108));
	optind_245344(p, result);
	LOC7 = 0;
	LOC7 = parseexpr_245790(p);
	addson_227287(result, LOC7);
	return result;
}

N_NIMCALL(tnode226816*, parsevariable_249247)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	{
		if (!((*p).Tok.Toktype == ((NU8) 92))) goto LA3;
		result = parsevartuple_249205(p);
	}
	goto LA1;
	LA3: ;
	{
		result = parseidentcolonequals_247262(p, 1);
	}
	LA1: ;
	indandcomment_245352(p, result);
	return result;
}

N_NIMCALL(tnode226816*, qualifiedident_246220)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = parsesymbol_245367(p, NIM_FALSE);
	{
		if (!((*p).Tok.Toktype == ((NU8) 109))) goto LA3;
		result = dotexpr_246207(p, result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode226816*, parsebind_249268)(tparser245205* p, NU8 k) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(k, (&(*p)));
	gettok_245243(p);
	optind_245344(p, result);
	{
		while (1) {
			tnode226816* a;
			a = qualifiedident_246220(p);
			addson_227287(result, a);
			{
				if (!!(((*p).Tok.Toktype == ((NU8) 104)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_245243(p);
			optind_245344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, complexorsimplestmt_246605)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	switch ((*p).Tok.Toktype) {
	case ((NU8) 32):
	{
		result = parseiforwhen_248376(p, ((NU8) 92));
	}
	break;
	case ((NU8) 67):
	{
		result = parsewhile_248417(p);
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_245383(p);
	}
	break;
	case ((NU8) 61):
	{
		result = parsetry_245375(p, NIM_FALSE);
	}
	break;
	case ((NU8) 27):
	{
		result = parseexceptblock_248518(p, ((NU8) 107));
	}
	break;
	case ((NU8) 25):
	{
		result = parseexceptblock_248518(p, ((NU8) 87));
	}
	break;
	case ((NU8) 28):
	{
		result = parsefor_248530(p);
	}
	break;
	case ((NU8) 9):
	{
		result = parseblock_248558(p);
	}
	break;
	case ((NU8) 59):
	{
		result = parsestaticordefer_248578(p, ((NU8) 113));
	}
	break;
	case ((NU8) 16):
	{
		result = parsestaticordefer_248578(p, ((NU8) 105));
	}
	break;
	case ((NU8) 6):
	{
		result = parseasm_248590(p);
	}
	break;
	case ((NU8) 52):
	{
		result = parseroutine_248737(p, ((NU8) 79));
	}
	break;
	case ((NU8) 42):
	{
		result = parseroutine_248737(p, ((NU8) 80));
	}
	break;
	case ((NU8) 39):
	{
		result = parseroutine_248737(p, ((NU8) 84));
	}
	break;
	case ((NU8) 41):
	{
		result = parseroutine_248737(p, ((NU8) 82));
	}
	break;
	case ((NU8) 60):
	{
		result = parseroutine_248737(p, ((NU8) 83));
	}
	break;
	case ((NU8) 15):
	{
		result = parseroutine_248737(p, ((NU8) 81));
	}
	break;
	case ((NU8) 63):
	{
		gettok_245243(p);
		{
			tnode226816* LOC23;
			if (!((*p).Tok.Toktype == ((NU8) 92))) goto LA21;
			gettok_245243(p);
			result = newnodep_245266(((NU8) 132), (&(*p)));
			LOC23 = 0;
			LOC23 = primary_247014(p, ((NU8) 1));
			addson_227287(result, LOC23);
			eat_245322(p, ((NU8) 93));
			result = parseoperators_247031(p, result, -1, ((NU8) 0));
		}
		goto LA19;
		LA21: ;
		{
			result = parsesection_248804(p, ((NU8) 98), parsetypedef_249176);
		}
		LA19: ;
	}
	break;
	case ((NU8) 13):
	{
		result = parsesection_248804(p, ((NU8) 101), parseconstant_248853);
	}
	break;
	case ((NU8) 40):
	{
		result = parsesection_248804(p, ((NU8) 100), parsevariable_249247);
	}
	break;
	case ((NU8) 66):
	{
		result = parseiforwhen_248376(p, ((NU8) 93));
	}
	break;
	case ((NU8) 65):
	{
		result = parsesection_248804(p, ((NU8) 99), parsevariable_249247);
	}
	break;
	case ((NU8) 8):
	{
		result = parsebind_249268(p, ((NU8) 122));
	}
	break;
	case ((NU8) 43):
	{
		result = parsebind_249268(p, ((NU8) 123));
	}
	break;
	case ((NU8) 64):
	{
		result = parsebind_249268(p, ((NU8) 124));
	}
	break;
	default:
	{
		result = simplestmt_249319(p);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, parseall_245216)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = newnodep_245266(((NU8) 115), (&(*p)));
	{
		while (1) {
			tnode226816* a;
			if (!!(((*p).Tok.Toktype == ((NU8) 1)))) goto LA2;
			a = complexorsimplestmt_246605(p);
			{
				if (!!(((*a).Kind == ((NU8) 1)))) goto LA5;
				addson_227287(result, a);
			}
			goto LA3;
			LA5: ;
			{
				parmessage_245452((&(*p)), ((NU16) 60), (&(*p).Tok));
				gettok_245243(p);
			}
			LA3: ;
			{
				if (!!(((*p).Tok.Indent == 0))) goto LA10;
				parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
			}
			LA10: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, closeparser_245223)(tparser245205* p) {
	closelexer_216258((&(*p).Lex));
}

N_NIMCALL(tnode226816*, parsetoplevelstmt_245230)(tparser245205* p) {
	tnode226816* result;
	result = 0;
	result = emptynode_227738;
	{
		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_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
				}
				goto LA7;
				LA14: ;
				LA7: ;
			}
			LA5: ;
			(*p).Firsttok = NIM_FALSE;
			switch ((*p).Tok.Toktype) {
			case ((NU8) 105):
			{
				gettok_245243(p);
				{
					if (!((*p).Tok.Indent <= 0)) goto LA19;
				}
				goto LA17;
				LA19: ;
				{
					parmessage_245250((&(*p)), ((NU16) 33), ((NimStringDesc*) &TMP1081));
				}
				LA17: ;
				(*p).Firsttok = NIM_TRUE;
			}
			break;
			case ((NU8) 1):
			{
				goto LA1;
			}
			break;
			default:
			{
				result = complexorsimplestmt_246605(p);
				{
					if (!((*result).Kind == ((NU8) 1))) goto LA26;
					parmessage_245452((&(*p)), ((NU16) 60), (&(*p).Tok));
				}
				LA26: ;
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, parsestring_249539)(NimStringDesc* s, NimStringDesc* filename, NI line, terrorhandler216188 errorhandler) {
	tnode226816* result;
	tllstream212204* stream;
	tparser245205 parser;
	result = 0;
	stream = llstreamopen_212220(s);
	(*stream).Lineoffset = line;
	memset((void*)(&parser), 0, sizeof(parser));
	objectInit((&parser), (&NTI245205));
	openparser_245417((&parser), filename, stream, NIM_FALSE);
	parser.Lex.Errorhandler.ClEnv = errorhandler.ClEnv;
	parser.Lex.Errorhandler.ClPrc = errorhandler.ClPrc;
	result = parseall_245216((&parser));
	closeparser_245223((&parser));
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_parserInit)(void) {
}

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

