/* Generated by Nim Compiler v0.12.0 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
typedef struct Tparser243205 Tparser243205;
typedef struct Tlexer218185 Tlexer218185;
typedef struct Tbaselexer216024 Tbaselexer216024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tllstream215204 Tllstream215204;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Ttoken218181 Ttoken218181;
typedef struct Tident200021 Tident200021;
typedef struct Tnode227809 Tnode227809;
typedef struct Ttype227847 Ttype227847;
typedef struct Tsym227841 Tsym227841;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tidobj200015 Tidobj200015;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct Tscope227835 Tscope227835;
typedef struct TY227944 TY227944;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Tlib227827 Tlib227827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct TY227932 TY227932;
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tbaselexer216024  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream215204* stream;
NI linenumber;
NI sentinel;
NI linestart;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Tlineinfo192352 info, NU16 msg, NimStringDesc* arg, void* ClEnv);
void* ClEnv;
} Terrorhandler218183;
struct  Tlexer218185  {
  Tbaselexer216024 Sup;
NI32 fileidx;
NI indentahead;
NI currlineindent;
NIM_BOOL strongspaces;
Terrorhandler218183 errorhandler;
};
struct  Ttoken218181  {
NU8 toktype;
NI indent;
Tident200021* ident;
NI64 inumber;
NF fnumber;
NU8 base;
NI8 strongspacea;
NI8 strongspaceb;
NimStringDesc* literal;
NI line;
NI col;
};
struct  Tparser243205  {
NI currind;
NIM_BOOL firsttok;
NIM_BOOL strongspaces;
Tlexer218185 lex;
Ttoken218181 tok;
NI inpragma;
NI insemistmtlist;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
typedef NimStringDesc* TY218172[119];
typedef NU8 TY243883[15];
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
typedef Tnode227809* TY245880[1];
typedef N_NIMCALL_PTR(Tnode227809*, Tdefparser246776) (Tparser243205* p);
struct  Tllstream215204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, openparser_243409)(Tparser243205* p, NI32 fileidx, Tllstream215204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(void, inittoken_218369)(Ttoken218181* L);
N_NIMCALL(void, openlexer_218389)(Tlexer218185* lex, NI32 fileidx, Tllstream215204* inputstream);
N_NIMCALL(void, gettok_243243)(Tparser243205* p);
N_NIMCALL(void, rawgettok_221848)(Tlexer218185* L, Ttoken218181* tok);
N_NIMCALL(NI32, fileinfoidx_193254)(NimStringDesc* filename);
N_NIMCALL(Tnode227809*, newnodep_243266)(NU8 kind, Tparser243205* p);
N_NIMCALL(Tnode227809*, newnodei_229351)(NU8 kind, Tlineinfo192352 info);
N_NIMCALL(Tlineinfo192352, parlineinfo_243316)(Tparser243205* p);
static N_INLINE(Tlineinfo192352, getlineinfo_218218)(Tlexer218185* L, Ttoken218181* tok);
N_NIMCALL(Tlineinfo192352, newlineinfo_193267)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(Tnode227809*, complexorsimplestmt_244584)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseiforwhen_246370)(Tparser243205* p, NU8 kind);
N_NIMCALL(void, optind_243344)(Tparser243205* p, Tnode227809* n);
N_NIMCALL(void, skipcomment_243258)(Tparser243205* p, Tnode227809* node);
N_NIMCALL(void, rawskipcomment_243504)(Tparser243205* p, Tnode227809* node);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, parmessage_243250)(Tparser243205* p, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, lexmessagetok_218492)(Tlexer218185* L, NU16 msg, Ttoken218181* tok, NimStringDesc* arg);
N_NIMCALL(void, skipind_243330)(Tparser243205* p);
N_NIMCALL(void, addson_229819)(Tnode227809* father, Tnode227809* son);
N_NIMCALL(Tnode227809*, parseexpr_243760)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseifexpr_245100)(Tparser243205* p, NU8 kind);
N_NIMCALL(void, colcom_243951)(Tparser243205* p, Tnode227809* n);
N_NIMCALL(void, eat_243322)(Tparser243205* p, NU8 toktype);
N_NIMCALL(Tnode227809*, parsecase_243383)(Tparser243205* p);
N_NIMCALL(void, exprlist_244107)(Tparser243205* p, NU8 endtok, Tnode227809* result);
N_NIMCALL(Tnode227809*, parsestmt_243767)(Tparser243205* p);
N_NIMCALL(void, parmessage_243459)(Tparser243205* p, NU16 msg, Ttoken218181* tok);
N_NIMCALL(NimStringDesc*, prettytok_218345)(Ttoken218181* tok);
N_NIMCALL(Tnode227809*, simplestmt_247295)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsereturnorraise_246349)(Tparser243205* p, NU8 kind);
N_NIMCALL(NIM_BOOL, isexprstart_245569)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsestmtpragma_243390)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsepragma_245130)(Tparser243205* p);
N_NIMCALL(Tnode227809*, exprcoloneqexpr_244095)(Tparser243205* p);
N_NIMCALL(Tnode227809*, colonorequals_244065)(Tparser243205* p, Tnode227809* a);
N_NIMCALL(void, optpar_243337)(Tparser243205* p);
N_NIMCALL(void, add_228165)(Tnode227809* father, Tnode227809* son);
N_NIMCALL(Tnode227809*, parseimport_246207)(Tparser243205* p, NU8 kind);
N_NIMCALL(Tnode227809*, parsemodulename_246136)(Tparser243205* p, NU8 kind);
N_NIMCALL(Tnode227809*, parsefromstmt_246312)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseincludestmt_246275)(Tparser243205* p);
N_NIMCALL(Tnode227809*, newcommentstmt_246763)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseexprstmt_246031)(Tparser243205* p);
N_NIMCALL(Tnode227809*, simpleexpr_244591)(Tparser243205* p, NU8 mode);
N_NIMCALL(Tnode227809*, simpleexpraux_245022)(Tparser243205* p, NI limit, NU8 mode);
N_NIMCALL(Tnode227809*, primary_245014)(Tparser243205* p, NU8 mode);
N_NIMCALL(NIM_BOOL, isoperator_243237)(Ttoken218181* tok);
static N_INLINE(NIM_BOOL, issigillike_243797)(Ttoken218181* tok);
N_NIMCALL(Tnode227809*, newidentnodep_243297)(Tident200021* ident, Tparser243205* p);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tnode227809*, primarysuffix_244829)(Tparser243205* p, Tnode227809* r, NI baseindent);
N_NIMCALL(Tnode227809*, namedparams_244806)(Tparser243205* p, Tnode227809* callee, NU8 kind, NU8 endtok);
N_NIMCALL(void, exprcoloneqexprlistaux_244187)(Tparser243205* p, NU8 endtok, Tnode227809* result);
static N_INLINE(NI, len_228098)(Tnode227809* n);
N_NIMCALL(void, parsedoblocks_243781)(Tparser243205* p, Tnode227809* call);
N_NIMCALL(Tnode227809*, parsedoblock_245483)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseparamlist_243789)(Tparser243205* p, NIM_BOOL retcolon);
N_NIMCALL(Tnode227809*, parseidentcolonequals_245249)(Tparser243205* p, NU8 flags);
N_NIMCALL(Tnode227809*, identwithpragma_245219)(Tparser243205* p);
N_NIMCALL(Tnode227809*, identvis_245198)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsesymbol_243367)(Tparser243205* p, NIM_BOOL allownil);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, toktostr_218323)(Ttoken218181* tok);
N_NIMCALL(Tident200021*, getident_200463)(NimStringDesc* identifier);
N_NIMCALL(NIM_BOOL, iskeyword_218229)(NU8 kind);
N_NIMCALL(Tnode227809*, parsetypedesc_243774)(Tparser243205* p);
N_NIMCALL(NIM_BOOL, identeq_200484)(Tident200021* id, NimStringDesc* name);
N_NIMCALL(Tnode227809*, optpragmas_245463)(Tparser243205* p);
N_NIMCALL(Tnode227809*, newprocnode_230058)(NU8 kind, Tlineinfo192352 info, Tnode227809* body, Tnode227809* params, Tnode227809* name, Tnode227809* pattern, Tnode227809* genericparams, Tnode227809* pragmas, Tnode227809* exceptions);
N_NIMCALL(Tnode227809*, dotexpr_244154)(Tparser243205* p, Tnode227809* a);
N_NIMCALL(Tnode227809*, parsegstrlit_244563)(Tparser243205* p, Tnode227809* a);
N_NIMCALL(Tnode227809*, newstrnodep_243289)(NU8 kind, NimStringDesc* strval, Tparser243205* p);
N_NIMCALL(Tnode227809*, parsetuple_245335)(Tparser243205* p, NIM_BOOL indentallowed);
N_NIMCALL(Tnode227809*, parseprocexpr_245533)(Tparser243205* p, NIM_BOOL isexpr);
N_NIMCALL(Tnode227809*, parseenum_245673)(Tparser243205* p);
N_NIMCALL(void, flexcomment_243560)(Tparser243205* p, Tnode227809* node);
N_NIMCALL(Tnode227809*, parseobject_245680)(Tparser243205* p);
N_NIMCALL(NIM_BOOL, validind_246703)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseobjectpart_246905)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseobjectwhen_246912)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseobjectcase_246950)(Tparser243205* p);
N_NIMCALL(void, gettoknoind_243602)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsetypeclass_245687)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsetypeclassparam_247061)(Tparser243205* p);
N_NIMCALL(NI, sonslen_230387)(Tnode227809* n);
N_NIMCALL(Tnode227809*, newnode_229607)(NU8 kind, Tlineinfo192352 info, Tnodeseq227803* sons, Ttype227847* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tnode227809*, parsetypedesckaux_245617)(Tparser243205* p, NU8 kind, NU8 mode);
N_NIMCALL(void, parsesymbollist_245579)(Tparser243205* p, Tnode227809* result, NIM_BOOL allownil);
N_NIMCALL(Tnode227809*, identorliteral_244775)(Tparser243205* p, NU8 mode);
N_NIMCALL(Tnode227809*, newintnodep_243273)(NU8 kind, NI64 intval, Tparser243205* p);
N_NIMCALL(void, setbaseflags_243360)(Tnode227809* n, NU8 base);
N_NIMCALL(Tnode227809*, newfloatnodep_243281)(NU8 kind, NF floatval, Tparser243205* p);
N_NIMCALL(Tnode227809*, exprcoloneqexprlist_244442)(Tparser243205* p, NU8 kind, NU8 endtok);
N_NIMCALL(Tnode227809*, parsepar_244646)(Tparser243205* p);
N_NIMCALL(void, semistmtlist_244599)(Tparser243205* p, Tnode227809* result);
N_NIMCALL(Tnode227809*, newnodei_229407)(NU8 kind, Tlineinfo192352 info, NI children);
N_NIMCALL(Tnode227809*, setortableconstr_244455)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsecast_244512)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseoperators_245031)(Tparser243205* p, Tnode227809* headnode, NI limit, NU8 mode);
N_NIMCALL(NI, getprecedence_243835)(Ttoken218181* tok, NIM_BOOL strongspaces);
N_NIMCALL(NIM_BOOL, isunary_243900)(Tparser243205* p);
static N_INLINE(void, checkbinary_243921)(Tparser243205* p);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
static N_INLINE(NIM_BOOL, isrightassociative_243816)(Ttoken218181* tok);
N_NIMCALL(Tnode227809*, makecall_245945)(Tnode227809* n);
N_NIMCALL(Tnode227809*, parsemacrocolon_244821)(Tparser243205* p, Tnode227809* x);
static N_INLINE(Tnode227809*, HEX5BHEX5D_228244)(Tnode227809* n, NI i);
N_NIMCALL(Tnode227809*, parsetry_243375)(Tparser243205* p, NIM_BOOL isexpr);
N_NIMCALL(Tnode227809*, parsewhile_246409)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseexceptblock_246503)(Tparser243205* p, NU8 kind);
N_NIMCALL(Tnode227809*, parsefor_246515)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseblock_246543)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsestaticordefer_246563)(Tparser243205* p, NU8 k);
N_NIMCALL(Tnode227809*, parseasm_246575)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseroutine_246714)(Tparser243205* p, NU8 kind);
N_NIMCALL(Tnode227809*, parsepattern_246692)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsegenericparamlist_246651)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsegenericparam_246595)(Tparser243205* p);
N_NIMCALL(void, indandcomment_243352)(Tparser243205* p, Tnode227809* n);
N_NIMCALL(Tnode227809*, parsesection_246783)(Tparser243205* p, NU8 kind, Tdefparser246776 defparser);
N_NIMCALL(Tnode227809*, parsetypedef_247154)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsetypedefaux_245934)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parseconstant_246828)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsevariable_247222)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsevartuple_247183)(Tparser243205* p);
N_NIMCALL(Tnode227809*, parsebind_247243)(Tparser243205* p, NU8 k);
N_NIMCALL(Tnode227809*, qualifiedident_244167)(Tparser243205* p);
N_NIMCALL(void, closelexer_218422)(Tlexer218185* lex);
N_NIMCALL(Tllstream215204*, llstreamopen_215220)(NimStringDesc* data);
N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_NIMCALL(void, openparser_243424)(Tparser243205* p, NimStringDesc* filename, Tllstream215204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(Tnode227809*, parseall_243216)(Tparser243205* p);
N_NIMCALL(void, closeparser_243223)(Tparser243205* p);
STRING_LITERAL(TMP1240, "", 0);
STRING_LITERAL(TMP1241, "[]", 2);
STRING_LITERAL(TMP1242, "skipComment", 11);
extern NIM_CONST TY218172 Toktypetostr_218169;
STRING_LITERAL(TMP1367, ".}", 2);
static NIM_CONST TY243883 TMP1368 = {
0x30, 0x00, 0x10, 0x00, 0xC8, 0xA0, 0x0D, 0x0C,
0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01}
;
STRING_LITERAL(TMP1369, ")", 1);
STRING_LITERAL(TMP1370, "->", 2);
static NIM_CONST TY243883 TMP1371 = {
0x00, 0x4A, 0x06, 0x34, 0x12, 0x12, 0x00, 0x40,
0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP1372, "will be parsed as unary operator; inconsistent spacing", 54);
STRING_LITERAL(TMP1373, "Number of spaces around \'$#\' not consistent", 43);
STRING_LITERAL(TMP1374, "Number of spaces must be 0,1,2,4 or 8", 37);
STRING_LITERAL(TMP1375, "except", 6);
TNimType NTI243205; /* TParser */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI218185; /* TLexer */
extern TNimType NTI218181; /* TToken */
extern Gcheap51018 gch_51059;
extern Tnode227809* emptynode_228807;
extern TNimType NTI227803; /* TNodeSeq */

N_NIMCALL(void, gettok_243243)(Tparser243205* p) {
	rawgettok_221848((&(*p).lex), (&(*p).tok));
}

N_NIMCALL(void, openparser_243409)(Tparser243205* p, NI32 fileidx, Tllstream215204* inputstream, NIM_BOOL strongspaces) {
	inittoken_218369((&(*p).tok));
	openlexer_218389((&(*p).lex), fileidx, inputstream);
	gettok_243243(p);
	(*p).firsttok = NIM_TRUE;
	(*p).strongspaces = strongspaces;
}

N_NIMCALL(void, openparser_243424)(Tparser243205* p, NimStringDesc* filename, Tllstream215204* inputstream, NIM_BOOL strongspaces) {
	NI32 LOC1;
	LOC1 = 0;
	LOC1 = fileinfoidx_193254(filename);
	openparser_243409(p, LOC1, inputstream, strongspaces);
}

static N_INLINE(Tlineinfo192352, getlineinfo_218218)(Tlexer218185* L, Ttoken218181* tok) {
	Tlineinfo192352 result;
	memset((void*)(&result), 0, sizeof(result));
	result = newlineinfo_193267((*L).fileidx, (*tok).line, (*tok).col);
	return result;
}

N_NIMCALL(Tlineinfo192352, parlineinfo_243316)(Tparser243205* p) {
	Tlineinfo192352 result;
	memset((void*)(&result), 0, sizeof(result));
	result = getlineinfo_218218((&(*p).lex), (&(*p).tok));
	return result;
}

N_NIMCALL(Tnode227809*, newnodep_243266)(NU8 kind, Tparser243205* p) {
	Tnode227809* result;
	Tlineinfo192352 LOC1;
	result = 0;
	LOC1 = parlineinfo_243316(p);
	result = newnodei_229351(kind, LOC1);
	return result;
}

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

static N_INLINE(void, rtladdzct_54204)(Cell48946* c) {
	addzct_52617((&gch_51059.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48946* c;
	c = usrtocell_52646(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	LA3: ;
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NIM_BOOL LOC11;
	int LOC13;
{	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = (a == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = 0;
	LOC11 = ((*a).Sup.len == (*b).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC13 = 0;
	LOC13 = memcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)), (*a).Sup.len);
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(void, parmessage_243250)(Tparser243205* p, NU16 msg, NimStringDesc* arg) {
	lexmessagetok_218492((&(*p).lex), msg, (&(*p).tok), arg);
}

N_NIMCALL(void, rawskipcomment_243504)(Tparser243205* p, Tnode227809* node) {
	{
		if (!((*p).tok.toktype == ((NU8) 113))) 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*) &TMP1240));
				if (LOC13) nimGCunrefNoCycle(LOC13);
			}
			LA11: ;
			{
				if (!eqStrings((*p).tok.literal, ((NimStringDesc*) &TMP1241))) goto LA16;
				(*node).flags |= ((NU16)1)<<((((NU8) 14))%(sizeof(NU16)*8));
			}
			goto LA14;
			LA16: ;
			{
				(*node).comment = resizeString((*node).comment, (*p).tok.literal->Sup.len + 0);
appendString((*node).comment, (*p).tok.literal);
			}
			LA14: ;
		}
		goto LA5;
		LA7: ;
		{
			parmessage_243250((&(*p)), ((NU16) 2), ((NimStringDesc*) &TMP1242));
		}
		LA5: ;
		gettok_243243(p);
	}
	LA3: ;
}

N_NIMCALL(void, skipcomment_243258)(Tparser243205* p, Tnode227809* node) {
	{
		if (!((*p).tok.indent < ((NI) 0))) goto LA3;
		rawskipcomment_243504(p, node);
	}
	LA3: ;
}

N_NIMCALL(void, skipind_243330)(Tparser243205* p) {
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		{
			if (!!(((*p).currind < (*p).tok.indent))) goto LA7;
			parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, optind_243344)(Tparser243205* p, Tnode227809* n) {
	skipcomment_243258(p, n);
	skipind_243330(p);
}

N_NIMCALL(void, eat_243322)(Tparser243205* p, NU8 toktype) {
	{
		if (!((*p).tok.toktype == toktype)) goto LA3;
		gettok_243243(p);
	}
	goto LA1;
	LA3: ;
	{
		lexmessagetok_218492((&(*p).lex), ((NU16) 24), (&(*p).tok), Toktypetostr_218169[(toktype)- 0]);
	}
	LA1: ;
}

N_NIMCALL(void, colcom_243951)(Tparser243205* p, Tnode227809* n) {
	eat_243322(p, ((NU8) 107));
	skipcomment_243258(p, n);
}

N_NIMCALL(Tnode227809*, parseifexpr_245100)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	Tnode227809* branch;
	Tnode227809* LOC9;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	{
		while (1) {
			Tnode227809* branch;
			Tnode227809* LOC3;
			Tnode227809* LOC4;
			gettok_243243(p);
			branch = newnodep_243266(((NU8) 49), (&(*p)));
			LOC3 = 0;
			LOC3 = parseexpr_243760(p);
			addson_229819(branch, LOC3);
			colcom_243951(p, branch);
			LOC4 = 0;
			LOC4 = parseexpr_243760(p);
			addson_229819(branch, LOC4);
			optind_243344(p, branch);
			addson_229819(result, branch);
			{
				if (!!(((*p).tok.toktype == ((NU8) 22)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		}
	} LA1: ;
	branch = newnodep_243266(((NU8) 50), (&(*p)));
	eat_243322(p, ((NU8) 23));
	colcom_243951(p, branch);
	LOC9 = 0;
	LOC9 = parseexpr_243760(p);
	addson_229819(branch, LOC9);
	addson_229819(result, branch);
	return result;
}

N_NIMCALL(void, exprlist_244107)(Tparser243205* p, NU8 endtok, Tnode227809* result) {
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			Tnode227809* 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_243760(p);
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_243243(p);
			optind_243344(p, a);
		} LA2: ;
	} LA1: ;
}

N_NIMCALL(void, parmessage_243459)(Tparser243205* p, NU16 msg, Ttoken218181* tok) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = prettytok_218345(tok);
	parmessage_243250(p, msg, LOC1);
}

N_NIMCALL(NIM_BOOL, isexprstart_245569)(Tparser243205* p) {
	NIM_BOOL result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 114):
	case ((NU8) 112):
	case ((NU8) 47):
	case ((NU8) 46):
	case ((NU8) 12):
	case ((NU8) 33):
	case ((NU8) 53):
	case ((NU8) 40):
	case ((NU8) 8):
	case ((NU8) 3):
	case ((NU8) 93):
	case ((NU8) 95):
	case ((NU8) 97):
	case ((NU8) 73) ... ((NU8) 92):
	case ((NU8) 66):
	case ((NU8) 56):
	case ((NU8) 54):
	case ((NU8) 63):
	case ((NU8) 49):
	case ((NU8) 64):
	case ((NU8) 67):
	case ((NU8) 11):
	{
		result = NIM_TRUE;
	}
	break;
	default:
	{
		result = NIM_FALSE;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode227809*, parsereturnorraise_246349)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA3;
		skipcomment_243258(p, result);
		addson_229819(result, emptynode_228807);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		NIM_BOOL LOC7;
		NIM_BOOL LOC10;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = (((NI) 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_245569((&(*p)));
		LOC6 = !(LOC10);
		LA9: ;
		if (!LOC6) goto LA11;
		addson_229819(result, emptynode_228807);
	}
	goto LA1;
	LA11: ;
	{
		Tnode227809* LOC14;
		LOC14 = 0;
		LOC14 = parseexpr_243760(p);
		addson_229819(result, LOC14);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, colonorequals_244065)(Tparser243205* p, Tnode227809* a) {
	Tnode227809* result;
	result = 0;
	{
		Tnode227809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		result = newnodep_243266(((NU8) 34), (&(*p)));
		gettok_243243(p);
		addson_229819(result, a);
		LOC5 = 0;
		LOC5 = parseexpr_243760(p);
		addson_229819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		Tnode227809* LOC9;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA7;
		result = newnodep_243266(((NU8) 33), (&(*p)));
		gettok_243243(p);
		addson_229819(result, a);
		LOC9 = 0;
		LOC9 = parseexpr_243760(p);
		addson_229819(result, LOC9);
	}
	goto LA1;
	LA7: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, exprcoloneqexpr_244095)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
	result = 0;
	a = parseexpr_243760(p);
	result = colonorequals_244065(p, a);
	return result;
}

N_NIMCALL(void, optpar_243337)(Tparser243205* p) {
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		{
			if (!((*p).tok.indent < (*p).currind)) goto LA7;
			parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(Tnode227809*, parsepragma_245130)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 90), (&(*p)));
	(*p).inpragma += ((NI) 1);
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			Tnode227809* a;
			if (!!(((*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 1)))) goto LA2;
			a = exprcoloneqexpr_244095(p);
			addson_229819(result, a);
			{
				if (!((*p).tok.toktype == ((NU8) 105))) goto LA5;
				gettok_243243(p);
				skipcomment_243258(p, a);
			}
			LA5: ;
		} LA2: ;
	}
	optpar_243337(p);
	{
		if (!((*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 98))) goto LA9;
		gettok_243243(p);
	}
	goto LA7;
	LA9: ;
	{
		parmessage_243250((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1367));
	}
	LA7: ;
	(*p).inpragma -= ((NI) 1);
	return result;
}

N_NIMCALL(Tnode227809*, parsestmtpragma_243390)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = parsepragma_245130(p);
	{
		NIM_BOOL LOC3;
		Tnode227809* a;
		Tnode227809* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).tok.toktype == ((NU8) 107));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*p).tok.indent < ((NI) 0));
		LA4: ;
		if (!LOC3) goto LA5;
		a = result;
		result = newnodei_229351(((NU8) 91), (*a).info);
		gettok_243243(p);
		skipcomment_243258(p, result);
		add_228165(result, a);
		LOC7 = 0;
		LOC7 = parsestmt_243767(p);
		add_228165(result, LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsemodulename_246136)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	result = 0;
	result = parseexpr_243760(p);
	return result;
}

N_NIMCALL(Tnode227809*, parseimport_246207)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	Tnode227809* a;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	a = parsemodulename_246136(p, kind);
	addson_229819(result, a);
	{
		if (!((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 26))) goto LA3;
		{
			if (!((*p).tok.toktype == ((NU8) 26))) goto LA7;
			(*result).kind = (NU8)(kind + ((NI) 1));
		}
		LA7: ;
		gettok_243243(p);
		optind_243344(p, result);
		{
			while (1) {
				a = parsemodulename_246136(p, kind);
				{
					if (!((*a).kind == ((NU8) 1))) goto LA13;
					goto LA9;
				}
				LA13: ;
				addson_229819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA17;
					goto LA9;
				}
				LA17: ;
				gettok_243243(p);
				optind_243344(p, a);
			}
		} LA9: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsefromstmt_246312)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
	result = 0;
	result = newnodep_243266(((NU8) 120), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	a = parsemodulename_246136(p, ((NU8) 116));
	addson_229819(result, a);
	eat_243322(p, ((NU8) 34));
	optind_243344(p, result);
	{
		while (1) {
			a = parseexpr_243760(p);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parseincludestmt_246275)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 121), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			Tnode227809* a;
			a = parseexpr_243760(p);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, newcommentstmt_246763)(Tparser243205* p) {
	Tnode227809* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_243266(((NU8) 125), (&(*p)));
	LOC1 = 0;
	LOC1 = (*result).comment; (*result).comment = copyStringRC1((*p).tok.literal);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	gettok_243243(p);
	return result;
}

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

static N_INLINE(NIM_BOOL, issigillike_243797)(Ttoken218181* tok) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*tok).toktype == ((NU8) 112));
	if (!(LOC1)) goto LA2;
	LOC1 = ((NU8)((*(*tok).ident).s->data[((NI) 0)]) == (NU8)(64));
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48946* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48946* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_52646((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Tnode227809*, newidentnodep_243297)(Tident200021* ident, Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 2), p);
	asgnRefNoCycle((void**) (&(*result).kindU.S5.ident), ident);
	return result;
}

N_NIMCALL(void, exprcoloneqexprlistaux_244187)(Tparser243205* p, NU8 endtok, Tnode227809* result) {
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			Tnode227809* 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_244095(p);
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_243243(p);
			skipcomment_243258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_243337(p);
	eat_243322(p, endtok);
}

N_NIMCALL(Tnode227809*, namedparams_244806)(Tparser243205* p, Tnode227809* callee, NU8 kind, NU8 endtok) {
	Tnode227809* result;
	Tnode227809* a;
	result = 0;
	a = callee;
	result = newnodep_243266(kind, (&(*p)));
	addson_229819(result, a);
	exprcoloneqexprlistaux_244187(p, endtok, result);
	return result;
}

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

N_NIMCALL(Tnode227809*, parsesymbol_243367)(Tparser243205* p, NIM_BOOL allownil) {
	Tnode227809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 3):
	case ((NU8) 64):
	{
		result = newidentnodep_243297((*p).tok.ident, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 114):
	{
		result = newnodep_243266(((NU8) 53), (&(*p)));
		gettok_243243(p);
		{
			while (1) {
				switch ((*p).tok.toktype) {
				case ((NU8) 114):
				{
					{
						NI LOC8;
						LOC8 = 0;
						LOC8 = len_228098(result);
						if (!(LOC8 == ((NI) 0))) goto LA9;
						parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
					}
					LA9: ;
					goto LA3;
				}
				break;
				case ((NU8) 112):
				case ((NU8) 110):
				case ((NU8) 111):
				case ((NU8) 109):
				case ((NU8) 93) ... ((NU8) 104):
				{
					NimStringDesc* accm;
					Tident200021* LOC15;
					Tnode227809* LOC16;
					accm = copyString(((NimStringDesc*) &TMP1240));
					{
						while (1) {
							NimStringDesc* LOC14;
							if (!((*p).tok.toktype == ((NU8) 112) || (*p).tok.toktype == ((NU8) 110) || (*p).tok.toktype == ((NU8) 111) || (*p).tok.toktype == ((NU8) 109) || (*p).tok.toktype >= ((NU8) 93) && (*p).tok.toktype <= ((NU8) 104))) goto LA13;
							LOC14 = 0;
							LOC14 = toktostr_218323((&(*p).tok));
							accm = resizeString(accm, LOC14->Sup.len + 0);
appendString(accm, LOC14);
							gettok_243243(p);
						} LA13: ;
					}
					LOC15 = 0;
					LOC15 = getident_200463(accm);
					LOC16 = 0;
					LOC16 = newidentnodep_243297(LOC15, (&(*p)));
					add_228165(result, LOC16);
				}
				break;
				case ((NU8) 3) ... ((NU8) 72):
				case ((NU8) 2):
				case ((NU8) 73) ... ((NU8) 92):
				{
					NimStringDesc* LOC18;
					Tident200021* LOC19;
					Tnode227809* LOC20;
					LOC18 = 0;
					LOC18 = toktostr_218323((&(*p).tok));
					LOC19 = 0;
					LOC19 = getident_200463(LOC18);
					LOC20 = 0;
					LOC20 = newidentnodep_243297(LOC19, (&(*p)));
					add_228165(result, LOC20);
					gettok_243243(p);
				}
				break;
				default:
				{
					parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
				}
				break;
				}
			}
		} LA3: ;
		eat_243322(p, ((NU8) 114));
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC25;
			LOC25 = 0;
			LOC25 = allownil;
			if (!(LOC25)) goto LA26;
			LOC25 = ((*p).tok.toktype == ((NU8) 46));
			LA26: ;
			if (!LOC25) goto LA27;
			result = newnodep_243266(((NU8) 23), (&(*p)));
			gettok_243243(p);
		}
		goto LA23;
		LA27: ;
		{
			parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
			{
				NIM_BOOL LOC32;
				LOC32 = 0;
				LOC32 = iskeyword_218229((*p).tok.toktype);
				if (!!(LOC32)) goto LA33;
				gettok_243243(p);
			}
			LA33: ;
			result = emptynode_228807;
		}
		LA23: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode227809*, identvis_245198)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
	result = 0;
	a = parsesymbol_243367(p, NIM_FALSE);
	{
		Tnode227809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 112))) goto LA3;
		result = newnodep_243266(((NU8) 31), (&(*p)));
		LOC5 = 0;
		LOC5 = newidentnodep_243297((*p).tok.ident, (&(*p)));
		addson_229819(result, LOC5);
		addson_229819(result, a);
		gettok_243243(p);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, identwithpragma_245219)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
	result = 0;
	a = identvis_245198(p);
	{
		Tnode227809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA3;
		result = newnodep_243266(((NU8) 43), (&(*p)));
		addson_229819(result, a);
		LOC5 = 0;
		LOC5 = parsepragma_245130(p);
		addson_229819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsetypedesc_243774)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = simpleexpr_244591(p, ((NU8) 1));
	return result;
}

N_NIMCALL(Tnode227809*, parseidentcolonequals_245249)(Tparser243205* p, NU8 flags) {
	Tnode227809* result;
	Tnode227809* a;
{	result = 0;
	a = 0;
	result = newnodep_243266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).tok.toktype) {
			case ((NU8) 2):
			case ((NU8) 114):
			{
				{
					if (!((flags &(1<<((((NU8) 0))&7)))!=0)) goto LA6;
					a = identwithpragma_245219(p);
				}
				goto LA4;
				LA6: ;
				{
					a = parsesymbol_243367(p, NIM_FALSE);
				}
				LA4: ;
				{
					if (!((*a).kind == ((NU8) 1))) goto LA11;
					goto BeforeRet;
				}
				LA11: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA16;
				goto LA1;
			}
			LA16: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	{
		Tnode227809* LOC22;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA20;
		gettok_243243(p);
		optind_243344(p, result);
		LOC22 = 0;
		LOC22 = parsetypedesc_243774(p);
		addson_229819(result, LOC22);
	}
	goto LA18;
	LA20: ;
	{
		addson_229819(result, emptynode_228807);
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = !(((*p).tok.toktype == ((NU8) 109)));
			if (!(LOC26)) goto LA27;
			LOC26 = !(((flags &(1<<((((NU8) 1))&7)))!=0));
			LA27: ;
			if (!LOC26) goto LA28;
			parmessage_243459((&(*p)), ((NU16) 61), (&(*p).tok));
		}
		LA28: ;
	}
	LA18: ;
	{
		Tnode227809* LOC34;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA32;
		gettok_243243(p);
		optind_243344(p, result);
		LOC34 = 0;
		LOC34 = parseexpr_243760(p);
		addson_229819(result, LOC34);
	}
	goto LA30;
	LA32: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA30: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, parseparamlist_243789)(Tparser243205* p, NIM_BOOL retcolon) {
	Tnode227809* result;
	Tnode227809* a;
	NIM_BOOL hasparle;
	NIM_BOOL LOC1;
	NIM_BOOL hasret;
	result = 0;
	a = 0;
	result = newnodep_243266(((NU8) 76), (&(*p)));
	addson_229819(result, emptynode_228807);
	LOC1 = 0;
	LOC1 = ((*p).tok.toktype == ((NU8) 93));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*p).tok.indent < ((NI) 0));
	LA2: ;
	hasparle = LOC1;
	{
		if (!hasparle) goto LA5;
		gettok_243243(p);
		optind_243344(p, result);
		{
			while (1) {
				switch ((*p).tok.toktype) {
				case ((NU8) 2):
				case ((NU8) 114):
				{
					a = parseidentcolonequals_245249(p, 3);
				}
				break;
				case ((NU8) 94):
				{
					goto LA7;
				}
				break;
				default:
				{
					parmessage_243250((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1369));
					goto LA7;
				}
				break;
				}
				addson_229819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA14;
					goto LA7;
				}
				LA14: ;
				gettok_243243(p);
				skipcomment_243258(p, a);
			}
		} LA7: ;
		optpar_243337(p);
		eat_243322(p, ((NU8) 94));
	}
	LA5: ;
	{
		if (!retcolon) goto LA18;
		hasret = ((*p).tok.toktype == ((NU8) 107));
	}
	goto LA16;
	LA18: ;
	{
		NIM_BOOL LOC21;
		LOC21 = 0;
		LOC21 = ((*p).tok.toktype == ((NU8) 112));
		if (!(LOC21)) goto LA22;
		LOC21 = identeq_200484((*p).tok.ident, ((NimStringDesc*) &TMP1370));
		LA22: ;
		hasret = LOC21;
	}
	LA16: ;
	{
		NIM_BOOL LOC25;
		LOC25 = 0;
		LOC25 = hasret;
		if (!(LOC25)) goto LA26;
		LOC25 = ((*p).tok.indent < ((NI) 0));
		LA26: ;
		if (!LOC25) goto LA27;
		gettok_243243(p);
		optind_243344(p, result);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), parsetypedesc_243774(p));
	}
	goto LA23;
	LA27: ;
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = !(retcolon);
		if (!(LOC30)) goto LA31;
		LOC30 = !(hasparle);
		LA31: ;
		if (!LOC30) goto LA32;
		result = emptynode_228807;
	}
	goto LA23;
	LA32: ;
	LA23: ;
	return result;
}

N_NIMCALL(Tnode227809*, optpragmas_245463)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		LOC3 = 0;
		LOC3 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = ((*p).tok.indent < ((NI) 0));
		if (LOC5) goto LA6;
		LOC5 = ((*p).currind < (*p).tok.indent);
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA7;
		result = parsepragma_245130(p);
	}
	goto LA1;
	LA7: ;
	{
		result = emptynode_228807;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsedoblock_245483)(Tparser243205* p) {
	Tnode227809* result;
	Tlineinfo192352 info;
	Tnode227809* params;
	Tnode227809* pragmas;
	Tnode227809* LOC1;
	result = 0;
	info = parlineinfo_243316((&(*p)));
	gettok_243243(p);
	params = parseparamlist_243789(p, NIM_FALSE);
	pragmas = optpragmas_245463(p);
	colcom_243951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243767(p);
	result = newprocnode_230058(((NU8) 52), info, LOC1, params, emptynode_228807, emptynode_228807, emptynode_228807, pragmas, emptynode_228807);
	return result;
}

N_NIMCALL(void, parsedoblocks_243781)(Tparser243205* p, Tnode227809* call) {
	{
		Tnode227809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 21))) goto LA3;
		LOC5 = 0;
		LOC5 = parsedoblock_245483(p);
		addson_229819(call, LOC5);
		{
			while (1) {
				NIM_BOOL LOC8;
				Tnode227809* LOC10;
				LOC8 = 0;
				LOC8 = ((*p).tok.indent == (*p).currind);
				if (!(LOC8)) goto LA9;
				LOC8 = ((*p).tok.toktype == ((NU8) 21));
				LA9: ;
				if (!LOC8) goto LA7;
				LOC10 = 0;
				LOC10 = parsedoblock_245483(p);
				addson_229819(call, LOC10);
			} LA7: ;
		}
	}
	LA3: ;
}

N_NIMCALL(Tnode227809*, dotexpr_244154)(Tparser243205* p, Tnode227809* a) {
	Tnode227809* result;
	Tlineinfo192352 info;
	Tnode227809* LOC1;
	result = 0;
	info = parlineinfo_243316((&(*p)));
	gettok_243243(p);
	result = newnodei_229351(((NU8) 45), info);
	optind_243344(p, result);
	addson_229819(result, a);
	LOC1 = 0;
	LOC1 = parsesymbol_243367(p, NIM_FALSE);
	addson_229819(result, LOC1);
	return result;
}

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

N_NIMCALL(Tnode227809*, parsegstrlit_244563)(Tparser243205* p, Tnode227809* a) {
	Tnode227809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 90):
	{
		Tnode227809* LOC2;
		result = newnodep_243266(((NU8) 28), (&(*p)));
		addson_229819(result, a);
		LOC2 = 0;
		LOC2 = newstrnodep_243289(((NU8) 21), (*p).tok.literal, (&(*p)));
		addson_229819(result, LOC2);
		gettok_243243(p);
	}
	break;
	case ((NU8) 91):
	{
		Tnode227809* LOC4;
		result = newnodep_243266(((NU8) 28), (&(*p)));
		addson_229819(result, a);
		LOC4 = 0;
		LOC4 = newstrnodep_243289(((NU8) 22), (*p).tok.literal, (&(*p)));
		addson_229819(result, LOC4);
		gettok_243243(p);
	}
	break;
	default:
	{
		result = a;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode227809*, primarysuffix_244829)(Tparser243205* p, Tnode227809* r, NI baseindent) {
	Tnode227809* result;
	result = 0;
	result = r;
	{
		while (1) {
			NIM_BOOL LOC3;
			NIM_BOOL LOC5;
			LOC3 = 0;
			LOC3 = ((*p).tok.indent < ((NI) 0));
			if (LOC3) goto LA4;
			LOC5 = 0;
			LOC5 = ((*p).tok.toktype == ((NU8) 110));
			if (!(LOC5)) goto LA6;
			LOC5 = (baseindent <= (*p).tok.indent);
			LA6: ;
			LOC3 = LOC5;
			LA4: ;
			if (!LOC3) goto LA2;
			switch ((*p).tok.toktype) {
			case ((NU8) 93):
			{
				{
					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_244806(p, result, ((NU8) 27), ((NU8) 94));
				{
					NIM_BOOL LOC16;
					NI LOC17;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = len_228098(result);
					LOC16 = (((NI) 1) < LOC17);
					if (!(LOC16)) goto LA18;
					LOC16 = ((*(*result).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 34));
					LA18: ;
					if (!LOC16) goto LA19;
					(*result).kind = ((NU8) 38);
				}
				goto LA14;
				LA19: ;
				{
					parsedoblocks_243781(p, result);
				}
				LA14: ;
			}
			break;
			case ((NU8) 21):
			{
				Tnode227809* a;
				a = result;
				result = newnodep_243266(((NU8) 27), (&(*p)));
				addson_229819(result, a);
				parsedoblocks_243781(p, result);
			}
			break;
			case ((NU8) 110):
			{
				result = dotexpr_244154(p, result);
				result = parsegstrlit_244563(p, result);
			}
			break;
			case ((NU8) 95):
			{
				{
					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_244806(p, result, ((NU8) 42), ((NU8) 96));
			}
			break;
			case ((NU8) 97):
			{
				{
					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_244806(p, result, ((NU8) 40), ((NU8) 98));
			}
			break;
			case ((NU8) 2):
			case ((NU8) 114):
			case ((NU8) 73) ... ((NU8) 92):
			case ((NU8) 46):
			case ((NU8) 12):
			case ((NU8) 3):
			case ((NU8) 64):
			{
				{
					Tnode227809* a;
					Tnode227809* LOC43;
					if (!((*p).inpragma == ((NI) 0))) goto LA41;
					a = result;
					result = newnodep_243266(((NU8) 26), (&(*p)));
					addson_229819(result, a);
					LOC43 = 0;
					LOC43 = parseexpr_243760(p);
					addson_229819(result, LOC43);
				}
				LA41: ;
				goto LA1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		} LA2: ;
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsetuple_245335)(Tparser243205* p, NIM_BOOL indentallowed) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 134), (&(*p)));
	gettok_243243(p);
	{
		if (!((*p).tok.toktype == ((NU8) 95))) goto LA3;
		gettok_243243(p);
		optind_243344(p, result);
		{
			while (1) {
				Tnode227809* a;
				if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA6;
				a = parseidentcolonequals_245249(p, 0);
				addson_229819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA9;
					goto LA5;
				}
				LA9: ;
				gettok_243243(p);
				skipcomment_243258(p, a);
			} LA6: ;
		} LA5: ;
		optpar_243337(p);
		eat_243322(p, ((NU8) 96));
	}
	goto LA1;
	LA3: ;
	{
		if (!indentallowed) goto LA12;
		skipcomment_243258(p, result);
		{
			NI oldind_245376;
			if (!((*p).currind < (*p).tok.indent)) goto LA16;
			oldind_245376 = (*p).currind;
			(*p).currind = (*p).tok.indent;
			rawskipcomment_243504(p, result);
			{
				while (1) {
					switch ((*p).tok.toktype) {
					case ((NU8) 2):
					case ((NU8) 114):
					{
						Tnode227809* a;
						a = parseidentcolonequals_245249(p, 0);
						{
							NIM_BOOL LOC23;
							LOC23 = 0;
							LOC23 = ((*p).tok.indent < ((NI) 0));
							if (LOC23) goto LA24;
							LOC23 = ((*p).currind <= (*p).tok.indent);
							LA24: ;
							if (!LOC23) goto LA25;
							rawskipcomment_243504(p, a);
						}
						LA25: ;
						addson_229819(result, a);
					}
					break;
					case ((NU8) 1):
					{
						goto LA18;
					}
					break;
					default:
					{
						parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
						goto LA18;
					}
					break;
					}
					{
						if (!!(((*p).tok.indent == (*p).currind))) goto LA31;
						goto LA18;
					}
					LA31: ;
				}
			} LA18: ;
			(*p).currind = oldind_245376;
		}
		LA16: ;
	}
	goto LA1;
	LA12: ;
	{
		result = newnodep_243266(((NU8) 135), (&(*p)));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parseprocexpr_245533)(Tparser243205* p, NIM_BOOL isexpr) {
	Tnode227809* result;
	Tlineinfo192352 info;
	NIM_BOOL hassignature;
	NIM_BOOL LOC1;
	Tnode227809* params;
	Tnode227809* pragmas;
	result = 0;
	info = parlineinfo_243316((&(*p)));
	gettok_243243(p);
	LOC1 = 0;
	LOC1 = ((*p).tok.toktype == ((NU8) 93) || (*p).tok.toktype == ((NU8) 107));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*p).tok.indent < ((NI) 0));
	LA2: ;
	hassignature = LOC1;
	params = parseparamlist_243789(p, NIM_TRUE);
	pragmas = optpragmas_245463(p);
	{
		NIM_BOOL LOC5;
		Tnode227809* LOC9;
		LOC5 = 0;
		LOC5 = ((*p).tok.toktype == ((NU8) 109));
		if (!(LOC5)) goto LA6;
		LOC5 = isexpr;
		LA6: ;
		if (!LOC5) goto LA7;
		gettok_243243(p);
		skipcomment_243258(p, result);
		LOC9 = 0;
		LOC9 = parsestmt_243767(p);
		result = newprocnode_230058(((NU8) 51), info, LOC9, params, emptynode_228807, emptynode_228807, emptynode_228807, pragmas, emptynode_228807);
	}
	goto LA3;
	LA7: ;
	{
		result = newnodei_229351(((NU8) 147), info);
		{
			if (!hassignature) goto LA13;
			addson_229819(result, params);
			addson_229819(result, pragmas);
		}
		LA13: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, flexcomment_243560)(Tparser243205* p, Tnode227809* node) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*p).tok.indent < ((NI) 0));
		if (LOC3) goto LA4;
		LOC3 = ((*p).currind < (*p).tok.indent);
		LA4: ;
		if (!LOC3) goto LA5;
		rawskipcomment_243504(p, node);
	}
	LA5: ;
}

N_NIMCALL(Tnode227809*, parseenum_245673)(Tparser243205* p) {
	Tnode227809* result;
{	result = 0;
	result = newnodep_243266(((NU8) 150), (&(*p)));
	gettok_243243(p);
	addson_229819(result, emptynode_228807);
	optind_243344(p, result);
	flexcomment_243560(p, result);
	{
		while (1) {
			Tnode227809* a;
			a = parsesymbol_243367(p, NIM_FALSE);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto BeforeRet;
			}
			LA5: ;
			{
				NIM_BOOL LOC9;
				LOC9 = 0;
				LOC9 = (((NI) 0) <= (*p).tok.indent);
				if (!(LOC9)) goto LA10;
				LOC9 = ((*p).tok.indent <= (*p).currind);
				LA10: ;
				if (!LOC9) goto LA11;
				add_228165(result, a);
				goto LA1;
			}
			LA11: ;
			{
				NIM_BOOL LOC15;
				Tnode227809* b;
				Tnode227809* LOC19;
				LOC15 = 0;
				LOC15 = ((*p).tok.toktype == ((NU8) 109));
				if (!(LOC15)) goto LA16;
				LOC15 = ((*p).tok.indent < ((NI) 0));
				LA16: ;
				if (!LOC15) goto LA17;
				gettok_243243(p);
				optind_243344(p, a);
				b = a;
				a = newnodep_243266(((NU8) 151), (&(*p)));
				addson_229819(a, b);
				LOC19 = 0;
				LOC19 = parseexpr_243760(p);
				addson_229819(a, LOC19);
				{
					NIM_BOOL LOC22;
					LOC22 = 0;
					LOC22 = ((*p).tok.indent < ((NI) 0));
					if (LOC22) goto LA23;
					LOC22 = ((*p).currind <= (*p).tok.indent);
					LA23: ;
					if (!LOC22) goto LA24;
					rawskipcomment_243504(p, a);
				}
				LA24: ;
			}
			LA17: ;
			{
				NIM_BOOL LOC28;
				LOC28 = 0;
				LOC28 = ((*p).tok.toktype == ((NU8) 105));
				if (!(LOC28)) goto LA29;
				LOC28 = ((*p).tok.indent < ((NI) 0));
				LA29: ;
				if (!LOC28) goto LA30;
				gettok_243243(p);
				rawskipcomment_243504(p, a);
			}
			goto LA26;
			LA30: ;
			{
				{
					NIM_BOOL LOC35;
					LOC35 = 0;
					LOC35 = ((*p).tok.indent < ((NI) 0));
					if (LOC35) goto LA36;
					LOC35 = ((*p).currind <= (*p).tok.indent);
					LA36: ;
					if (!LOC35) goto LA37;
					rawskipcomment_243504(p, a);
				}
				LA37: ;
			}
			LA26: ;
			addson_229819(result, a);
			{
				NIM_BOOL LOC41;
				NIM_BOOL LOC42;
				LOC41 = 0;
				LOC42 = 0;
				LOC42 = (((NI) 0) <= (*p).tok.indent);
				if (!(LOC42)) goto LA43;
				LOC42 = ((*p).tok.indent <= (*p).currind);
				LA43: ;
				LOC41 = LOC42;
				if (LOC41) goto LA44;
				LOC41 = ((*p).tok.toktype == ((NU8) 1));
				LA44: ;
				if (!LOC41) goto LA45;
				goto LA1;
			}
			LA45: ;
		}
	} LA1: ;
	{
		NI LOC49;
		NimStringDesc* LOC52;
		LOC49 = 0;
		LOC49 = len_228098(result);
		if (!(LOC49 <= ((NI) 1))) goto LA50;
		LOC52 = 0;
		LOC52 = prettytok_218345((&(*p).tok));
		lexmessagetok_218492((&(*p).lex), ((NU16) 20), (&(*p).tok), LOC52);
	}
	LA50: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, validind_246703)(Tparser243205* p) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*p).tok.indent < ((NI) 0));
	if (LOC1) goto LA2;
	LOC1 = ((*p).currind < (*p).tok.indent);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Tnode227809*, parseobjectwhen_246912)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 140), (&(*p)));
	{
		while (1) {
			Tnode227809* branch;
			Tnode227809* LOC3;
			Tnode227809* LOC4;
			if (!((*p).tok.indent == (*p).currind)) goto LA2;
			gettok_243243(p);
			branch = newnodep_243266(((NU8) 86), (&(*p)));
			optind_243344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_243760(p);
			addson_229819(branch, LOC3);
			colcom_243951(p, branch);
			LOC4 = 0;
			LOC4 = parseobjectpart_246905(p);
			addson_229819(branch, LOC4);
			flexcomment_243560(p, branch);
			addson_229819(result, branch);
			{
				if (!!(((*p).tok.toktype == ((NU8) 22)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		} LA2: ;
	} LA1: ;
	{
		NIM_BOOL LOC11;
		Tnode227809* branch;
		Tnode227809* LOC15;
		LOC11 = 0;
		LOC11 = ((*p).tok.toktype == ((NU8) 23));
		if (!(LOC11)) goto LA12;
		LOC11 = ((*p).tok.indent == (*p).currind);
		LA12: ;
		if (!LOC11) goto LA13;
		branch = newnodep_243266(((NU8) 88), (&(*p)));
		eat_243322(p, ((NU8) 23));
		colcom_243951(p, branch);
		LOC15 = 0;
		LOC15 = parseobjectpart_246905(p);
		addson_229819(branch, LOC15);
		flexcomment_243560(p, branch);
		addson_229819(result, branch);
	}
	LA13: ;
	return result;
}

N_NIMCALL(void, gettoknoind_243602)(Tparser243205* p) {
	gettok_243243(p);
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
	}
	LA3: ;
}

N_NIMCALL(Tnode227809*, parseobjectcase_246950)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
	Tnode227809* LOC1;
	Tnode227809* LOC2;
	NIM_BOOL wasindented;
	NI oldind;
	result = 0;
	result = newnodep_243266(((NU8) 139), (&(*p)));
	gettoknoind_243602(p);
	a = newnodep_243266(((NU8) 35), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_245219(p);
	addson_229819(a, LOC1);
	eat_243322(p, ((NU8) 107));
	LOC2 = 0;
	LOC2 = parsetypedesc_243774(p);
	addson_229819(a, LOC2);
	addson_229819(a, emptynode_228807);
	addson_229819(result, a);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA5;
		gettok_243243(p);
	}
	LA5: ;
	flexcomment_243560(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) {
			Tnode227809* b;
			Tnode227809* fields;
			if (!((*p).tok.indent == (*p).currind)) goto LA12;
			b = 0;
			switch ((*p).tok.toktype) {
			case ((NU8) 50):
			{
				b = newnodep_243266(((NU8) 85), (&(*p)));
				exprlist_244107(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 23):
			{
				b = newnodep_243266(((NU8) 88), (&(*p)));
				gettok_243243(p);
			}
			break;
			default:
			{
				goto LA11;
			}
			break;
			}
			colcom_243951(p, b);
			fields = parseobjectpart_246905(p);
			{
				if (!((*fields).kind == ((NU8) 1))) goto LA18;
				parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
				fields = newnodep_243266(((NU8) 23), (&(*p)));
			}
			LA18: ;
			addson_229819(b, fields);
			addson_229819(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(Tnode227809*, parseobjectpart_246905)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	{
		NI oldind_247007;
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		result = newnodep_243266(((NU8) 138), (&(*p)));
		oldind_247007 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		rawskipcomment_243504(p, result);
		{
			while (1) {
				if (!((*p).tok.indent == (*p).currind)) goto LA6;
				switch ((*p).tok.toktype) {
				case ((NU8) 11):
				case ((NU8) 67):
				case ((NU8) 2):
				case ((NU8) 114):
				case ((NU8) 46):
				case ((NU8) 18):
				{
					Tnode227809* LOC8;
					LOC8 = 0;
					LOC8 = parseobjectpart_246905(p);
					addson_229819(result, LOC8);
				}
				break;
				default:
				{
					parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
					goto LA5;
				}
				break;
				}
			} LA6: ;
		} LA5: ;
		(*p).currind = oldind_247007;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).tok.toktype) {
		case ((NU8) 67):
		{
			result = parseobjectwhen_246912(p);
		}
		break;
		case ((NU8) 11):
		{
			result = parseobjectcase_246950(p);
		}
		break;
		case ((NU8) 2):
		case ((NU8) 114):
		{
			result = parseidentcolonequals_245249(p, 1);
			{
				NIM_BOOL LOC16;
				LOC16 = 0;
				LOC16 = ((*p).tok.indent < ((NI) 0));
				if (LOC16) goto LA17;
				LOC16 = ((*p).currind <= (*p).tok.indent);
				LA17: ;
				if (!LOC16) goto LA18;
				rawskipcomment_243504(p, result);
			}
			LA18: ;
		}
		break;
		case ((NU8) 46):
		case ((NU8) 18):
		{
			result = newnodep_243266(((NU8) 23), (&(*p)));
			gettok_243243(p);
		}
		break;
		default:
		{
			result = emptynode_228807;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parseobject_245680)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC25;
{	result = 0;
	result = newnodep_243266(((NU8) 133), (&(*p)));
	gettok_243243(p);
	{
		NIM_BOOL LOC3;
		Tnode227809* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC3)) goto LA4;
		LOC3 = validind_246703(p);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = parsepragma_245130(p);
		addson_229819(result, LOC7);
	}
	goto LA1;
	LA5: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA1: ;
	{
		NIM_BOOL LOC11;
		Tnode227809* a;
		Tnode227809* LOC15;
		LOC11 = 0;
		LOC11 = ((*p).tok.toktype == ((NU8) 50));
		if (!(LOC11)) goto LA12;
		LOC11 = ((*p).tok.indent < ((NI) 0));
		LA12: ;
		if (!LOC11) goto LA13;
		a = newnodep_243266(((NU8) 77), (&(*p)));
		gettok_243243(p);
		LOC15 = 0;
		LOC15 = parsetypedesc_243774(p);
		addson_229819(a, LOC15);
		addson_229819(result, a);
	}
	goto LA9;
	LA13: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA9: ;
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA19;
		skipcomment_243258(p, result);
	}
	LA19: ;
	{
		if (!!(((*p).currind < (*p).tok.indent))) goto LA23;
		addson_229819(result, emptynode_228807);
		goto BeforeRet;
	}
	LA23: ;
	LOC25 = 0;
	LOC25 = parseobjectpart_246905(p);
	addson_229819(result, LOC25);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsetypeclassparam_247061)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	{
		Tnode227809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 66))) goto LA3;
		result = newnodep_243266(((NU8) 143), (&(*p)));
		gettok_243243(p);
		LOC5 = 0;
		LOC5 = parsesymbol_243367(p, NIM_FALSE);
		addson_229819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = parsesymbol_243367(p, NIM_FALSE);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsetypeclass_245687)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* args;
	Tnode227809* LOC1;
	result = 0;
	result = newnodep_243266(((NU8) 136), (&(*p)));
	gettok_243243(p);
	args = newnodep_243266(((NU8) 152), (&(*p)));
	addson_229819(result, args);
	LOC1 = 0;
	LOC1 = parsetypeclassparam_247061(p);
	addson_229819(args, LOC1);
	{
		while (1) {
			Tnode227809* LOC4;
			if (!((*p).tok.toktype == ((NU8) 105))) goto LA3;
			gettok_243243(p);
			LOC4 = 0;
			LOC4 = parsetypeclassparam_247061(p);
			addson_229819(args, LOC4);
		} LA3: ;
	}
	{
		NIM_BOOL LOC7;
		Tnode227809* LOC11;
		LOC7 = 0;
		LOC7 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC7)) goto LA8;
		LOC7 = validind_246703(p);
		LA8: ;
		if (!LOC7) goto LA9;
		LOC11 = 0;
		LOC11 = parsepragma_245130(p);
		addson_229819(result, LOC11);
	}
	goto LA5;
	LA9: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		Tnode227809* a;
		LOC15 = 0;
		LOC15 = ((*p).tok.toktype == ((NU8) 50));
		if (!(LOC15)) goto LA16;
		LOC15 = ((*p).tok.indent < ((NI) 0));
		LA16: ;
		if (!LOC15) goto LA17;
		a = newnodep_243266(((NU8) 77), (&(*p)));
		gettok_243243(p);
		{
			while (1) {
				Tnode227809* LOC21;
				LOC21 = 0;
				LOC21 = parsetypedesc_243774(p);
				addson_229819(a, LOC21);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA24;
					goto LA19;
				}
				LA24: ;
				gettok_243243(p);
			}
		} LA19: ;
		addson_229819(result, a);
	}
	goto LA13;
	LA17: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA13: ;
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA29;
		skipcomment_243258(p, result);
	}
	LA29: ;
	{
		if (!!(((*p).currind < (*p).tok.indent))) goto LA33;
		addson_229819(result, emptynode_228807);
	}
	goto LA31;
	LA33: ;
	{
		Tnode227809* LOC36;
		LOC36 = 0;
		LOC36 = parsestmt_243767(p);
		addson_229819(result, LOC36);
	}
	LA31: ;
	return result;
}

N_NIMCALL(void, parsesymbollist_245579)(Tparser243205* p, Tnode227809* result, NIM_BOOL allownil) {
	{
		while (1) {
			Tnode227809* s;
			s = parsesymbol_243367(p, allownil);
			{
				if (!((*s).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_229819(result, s);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_243243(p);
			optind_243344(p, s);
		}
	} LA1: ;
}

N_NIMCALL(Tnode227809*, parsetypedesckaux_245617)(Tparser243205* p, NU8 kind, NU8 mode) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		Tnode227809* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isoperator_243237((&(*p).tok));
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = isexprstart_245569((&(*p)));
		LA5: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = primary_245014(p, mode);
		addson_229819(result, LOC8);
	}
	LA6: ;
	{
		NIM_BOOL LOC11;
		NU8 nodekind;
		Tnode227809* list;
		LOC11 = 0;
		LOC11 = (kind == ((NU8) 146));
		if (!(LOC11)) goto LA12;
		LOC11 = ((*p).tok.toktype == ((NU8) 69) || (*p).tok.toktype == ((NU8) 70));
		LA12: ;
		if (!LOC11) goto LA13;
		{
			if (!((*p).tok.toktype == ((NU8) 69))) goto LA17;
			nodekind = ((NU8) 130);
		}
		goto LA15;
		LA17: ;
		{
			nodekind = ((NU8) 131);
		}
		LA15: ;
		gettok_243243(p);
		list = newnodep_243266(nodekind, (&(*p)));
		addson_229819(result, list);
		parsesymbollist_245579(p, list, NIM_TRUE);
	}
	LA13: ;
	return result;
}

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

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

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

N_NIMCALL(Tnode227809*, exprcoloneqexprlist_244442)(Tparser243205* p, NU8 kind, NU8 endtok) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	exprcoloneqexprlistaux_244187(p, endtok, result);
	return result;
}

N_NIMCALL(void, semistmtlist_244599)(Tparser243205* p, Tnode227809* result) {
	Tnode227809* LOC1;
	(*p).insemistmtlist += ((NI) 1);
	LOC1 = 0;
	LOC1 = complexorsimplestmt_244584(p);
	add_228165(result, LOC1);
	{
		while (1) {
			Tnode227809* LOC4;
			if (!((*p).tok.toktype == ((NU8) 106))) goto LA3;
			gettok_243243(p);
			optind_243344(p, result);
			LOC4 = 0;
			LOC4 = complexorsimplestmt_244584(p);
			add_228165(result, LOC4);
		} LA3: ;
	}
	(*p).insemistmtlist -= ((NI) 1);
	(*result).kind = ((NU8) 126);
}

N_NIMCALL(Tnode227809*, parsepar_244646)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 37), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		if (!((TMP1371[(*p).tok.toktype/8] &(1<<((*p).tok.toktype%8)))!=0)) goto LA3;
		semistmtlist_244599(p, result);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*p).tok.toktype == ((NU8) 106))) goto LA6;
		gettok_243243(p);
		optind_243344(p, result);
		semistmtlist_244599(p, result);
	}
	goto LA1;
	LA6: ;
	{
		Tnode227809* LOC11;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA9;
		LOC11 = 0;
		LOC11 = parsestmtpragma_243390(p);
		add_228165(result, LOC11);
	}
	goto LA1;
	LA9: ;
	{
		Tnode227809* a_244690;
		if (!!(((*p).tok.toktype == ((NU8) 94)))) goto LA13;
		a_244690 = simpleexpr_244591(p, ((NU8) 0));
		{
			Tnode227809* b;
			Tnode227809* asgn;
			if (!((*p).tok.toktype == ((NU8) 109))) goto LA17;
			gettok_243243(p);
			optind_243344(p, result);
			b = parseexpr_243760(p);
			asgn = newnodei_229407(((NU8) 73), (*a_244690).info, ((NI) 2));
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.sons->data[((NI) 0)]), a_244690);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.sons->data[((NI) 1)]), b);
			add_228165(result, asgn);
			{
				if (!((*p).tok.toktype == ((NU8) 106))) goto LA21;
				semistmtlist_244599(p, result);
			}
			LA21: ;
		}
		goto LA15;
		LA17: ;
		{
			if (!((*p).tok.toktype == ((NU8) 106))) goto LA24;
			add_228165(result, a_244690);
			semistmtlist_244599(p, result);
		}
		goto LA15;
		LA24: ;
		{
			a_244690 = colonorequals_244065(p, a_244690);
			add_228165(result, a_244690);
			{
				if (!((*p).tok.toktype == ((NU8) 105))) goto LA29;
				gettok_243243(p);
				skipcomment_243258(p, a_244690);
				{
					while (1) {
						NIM_BOOL LOC33;
						Tnode227809* a;
						LOC33 = 0;
						LOC33 = !(((*p).tok.toktype == ((NU8) 94)));
						if (!(LOC33)) goto LA34;
						LOC33 = !(((*p).tok.toktype == ((NU8) 1)));
						LA34: ;
						if (!LOC33) goto LA32;
						a = exprcoloneqexpr_244095(p);
						addson_229819(result, a);
						{
							if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA37;
							goto LA31;
						}
						LA37: ;
						gettok_243243(p);
						skipcomment_243258(p, a);
					} LA32: ;
				} LA31: ;
			}
			LA29: ;
		}
		LA15: ;
	}
	goto LA1;
	LA13: ;
	LA1: ;
	optpar_243337(p);
	eat_243322(p, ((NU8) 94));
	return result;
}

N_NIMCALL(Tnode227809*, setortableconstr_244455)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 39), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		gettok_243243(p);
		(*result).kind = ((NU8) 54);
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				Tnode227809* a;
				if (!!(((*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 1)))) goto LA7;
				a = exprcoloneqexpr_244095(p);
				{
					if (!((*a).kind == ((NU8) 34))) goto LA10;
					(*result).kind = ((NU8) 54);
				}
				LA10: ;
				addson_229819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA14;
					goto LA6;
				}
				LA14: ;
				gettok_243243(p);
				skipcomment_243258(p, a);
			} LA7: ;
		} LA6: ;
	}
	LA1: ;
	optpar_243337(p);
	eat_243322(p, ((NU8) 98));
	return result;
}

N_NIMCALL(Tnode227809*, parsecast_244512)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC1;
	Tnode227809* LOC2;
	result = 0;
	result = newnodep_243266(((NU8) 61), (&(*p)));
	gettok_243243(p);
	eat_243322(p, ((NU8) 95));
	optind_243344(p, result);
	LOC1 = 0;
	LOC1 = parsetypedesc_243774(p);
	addson_229819(result, LOC1);
	optpar_243337(p);
	eat_243322(p, ((NU8) 96));
	eat_243322(p, ((NU8) 93));
	optind_243344(p, result);
	LOC2 = 0;
	LOC2 = parseexpr_243760(p);
	addson_229819(result, LOC2);
	optpar_243337(p);
	eat_243322(p, ((NU8) 94));
	return result;
}

N_NIMCALL(Tnode227809*, identorliteral_244775)(Tparser243205* p, NU8 mode) {
	Tnode227809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 64):
	case ((NU8) 3):
	{
		result = newidentnodep_243297((*p).tok.ident, (&(*p)));
		gettok_243243(p);
		result = parsegstrlit_244563(p, result);
	}
	break;
	case ((NU8) 114):
	{
		result = parsesymbol_243367(p, NIM_FALSE);
	}
	break;
	case ((NU8) 73):
	{
		result = newintnodep_243273(((NU8) 6), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 74):
	{
		result = newintnodep_243273(((NU8) 7), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 75):
	{
		result = newintnodep_243273(((NU8) 8), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 76):
	{
		result = newintnodep_243273(((NU8) 9), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 77):
	{
		result = newintnodep_243273(((NU8) 10), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 78):
	{
		result = newintnodep_243273(((NU8) 11), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 79):
	{
		result = newintnodep_243273(((NU8) 12), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 80):
	{
		result = newintnodep_243273(((NU8) 13), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 81):
	{
		result = newintnodep_243273(((NU8) 14), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 82):
	{
		result = newintnodep_243273(((NU8) 15), (*p).tok.inumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 83):
	{
		result = newfloatnodep_243281(((NU8) 16), (*p).tok.fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 84):
	{
		result = newfloatnodep_243281(((NU8) 17), (*p).tok.fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 85):
	{
		result = newfloatnodep_243281(((NU8) 18), (*p).tok.fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 86):
	{
		result = newfloatnodep_243281(((NU8) 19), (*p).tok.fnumber, (&(*p)));
		setbaseflags_243360(result, (*p).tok.base);
		gettok_243243(p);
	}
	break;
	case ((NU8) 87):
	{
		result = newstrnodep_243289(((NU8) 20), (*p).tok.literal, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 88):
	{
		result = newstrnodep_243289(((NU8) 21), (*p).tok.literal, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 89):
	{
		result = newstrnodep_243289(((NU8) 22), (*p).tok.literal, (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 92):
	{
		result = newintnodep_243273(((NU8) 5), ((NI64) (((NU8)((*p).tok.literal->data[((NI) 0)])))), (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 46):
	{
		result = newnodep_243266(((NU8) 23), (&(*p)));
		gettok_243243(p);
	}
	break;
	case ((NU8) 93):
	{
		{
			if (!((6 &(1<<((mode)&7)))!=0)) goto LA25;
			result = exprcoloneqexprlist_244442(p, ((NU8) 37), ((NU8) 94));
		}
		goto LA23;
		LA25: ;
		{
			result = parsepar_244646(p);
		}
		LA23: ;
	}
	break;
	case ((NU8) 97):
	{
		result = setortableconstr_244455(p);
	}
	break;
	case ((NU8) 95):
	{
		result = exprcoloneqexprlist_244442(p, ((NU8) 41), ((NU8) 96));
	}
	break;
	case ((NU8) 12):
	{
		result = parsecast_244512(p);
	}
	break;
	default:
	{
		parmessage_243459((&(*p)), ((NU16) 62), (&(*p).tok));
		gettok_243243(p);
		result = emptynode_228807;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode227809*, primary_245014)(Tparser243205* p, NU8 mode) {
	Tnode227809* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL issigil;
		Tnode227809* a;
		LOC3 = 0;
		LOC3 = isoperator_243237((&(*p).tok));
		if (!LOC3) goto LA4;
		issigil = issigillike_243797((&(*p).tok));
		result = newnodep_243266(((NU8) 30), (&(*p)));
		a = newidentnodep_243297((*p).tok.ident, (&(*p)));
		addson_229819(result, a);
		gettok_243243(p);
		optind_243344(p, a);
		{
			NI baseind;
			Tnode227809* LOC10;
			if (!issigil) goto LA8;
			baseind = (*p).lex.currlineindent;
			LOC10 = 0;
			LOC10 = primary_245014(p, ((NU8) 3));
			addson_229819(result, LOC10);
			result = primarysuffix_244829(p, result, baseind);
		}
		goto LA6;
		LA8: ;
		{
			Tnode227809* LOC12;
			LOC12 = 0;
			LOC12 = primary_245014(p, ((NU8) 0));
			addson_229819(result, LOC12);
		}
		LA6: ;
		goto BeforeRet;
	}
	LA4: ;
	switch ((*p).tok.toktype) {
	case ((NU8) 63):
	{
		result = parsetuple_245335(p, (mode == ((NU8) 2)));
	}
	break;
	case ((NU8) 53):
	{
		result = parseprocexpr_245533(p, !(((6 &(1<<((mode)&7)))!=0)));
	}
	break;
	case ((NU8) 40):
	{
		result = parseprocexpr_245533(p, !(((6 &(1<<((mode)&7)))!=0)));
		{
			if (!((*result).kind == ((NU8) 51))) goto LA18;
			(*result).kind = ((NU8) 84);
		}
		goto LA16;
		LA18: ;
		{
			(*result).kind = ((NU8) 148);
		}
		LA16: ;
	}
	break;
	case ((NU8) 25):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA24;
			result = parseenum_245673(p);
		}
		goto LA22;
		LA24: ;
		{
			result = newnodep_243266(((NU8) 150), (&(*p)));
			gettok_243243(p);
		}
		LA22: ;
	}
	break;
	case ((NU8) 49):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA30;
			result = parseobject_245680(p);
		}
		goto LA28;
		LA30: ;
		{
			result = newnodep_243266(((NU8) 133), (&(*p)));
			gettok_243243(p);
		}
		LA28: ;
	}
	break;
	case ((NU8) 32):
	case ((NU8) 13):
	{
		{
			NIM_BOOL wasgeneric;
			if (!(mode == ((NU8) 2))) goto LA36;
			wasgeneric = ((*p).tok.toktype == ((NU8) 32));
			result = parsetypeclass_245687(p);
			{
				if (!wasgeneric) goto LA40;
				(*result).flags |= ((NU16)1)<<((((NU8) 1))%(sizeof(NU16)*8));
			}
			LA40: ;
		}
		goto LA34;
		LA36: ;
		{
			parmessage_243459((&(*p)), ((NU16) 12), (&(*p).tok));
		}
		LA34: ;
	}
	break;
	case ((NU8) 60):
	{
		Tlineinfo192352 info;
		Tnode227809* next;
		info = parlineinfo_243316((&(*p)));
		gettoknoind_243602(p);
		next = primary_245014(p, ((NU8) 0));
		{
			NIM_BOOL LOC46;
			NI LOC48;
			Tnodeseq227803* LOC51;
			TY245880 LOC52;
			LOC46 = 0;
			LOC46 = ((*next).kind == ((NU8) 41));
			if (!(LOC46)) goto LA47;
			LOC48 = 0;
			LOC48 = sonslen_230387(next);
			LOC46 = (LOC48 == ((NI) 1));
			LA47: ;
			if (!LOC46) goto LA49;
			LOC51 = 0;
			LOC51 = (Tnodeseq227803*) newSeq((&NTI227803), 1);
			memset((void*)LOC52, 0, sizeof(LOC52));
			LOC52[0] = (*next).kindU.S6.sons->data[((NI) 0)];
			asgnRefNoCycle((void**) (&LOC51->data[0]), LOC52[0]);
			result = newnode_229607(((NU8) 137), info, LOC51, NIM_NIL);
		}
		goto LA44;
		LA49: ;
		{
			Tnodeseq227803* LOC54;
			TY245880 LOC55;
			LOC54 = 0;
			LOC54 = (Tnodeseq227803*) newSeq((&NTI227803), 1);
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = next;
			asgnRefNoCycle((void**) (&LOC54->data[0]), LOC55[0]);
			result = newnode_229607(((NU8) 62), info, LOC54, NIM_NIL);
		}
		LA44: ;
	}
	break;
	case ((NU8) 8):
	{
		Tnode227809* LOC57;
		result = newnodep_243266(((NU8) 55), (&(*p)));
		gettok_243243(p);
		optind_243344(p, result);
		LOC57 = 0;
		LOC57 = primary_245014(p, ((NU8) 0));
		addson_229819(result, LOC57);
	}
	break;
	case ((NU8) 66):
	{
		result = parsetypedesckaux_245617(p, ((NU8) 143), mode);
	}
	break;
	case ((NU8) 56):
	{
		result = parsetypedesckaux_245617(p, ((NU8) 141), mode);
	}
	break;
	case ((NU8) 54):
	{
		result = parsetypedesckaux_245617(p, ((NU8) 142), mode);
	}
	break;
	case ((NU8) 19):
	{
		result = parsetypedesckaux_245617(p, ((NU8) 146), mode);
	}
	break;
	default:
	{
		NI baseind;
		baseind = (*p).lex.currlineindent;
		result = identorliteral_244775(p, mode);
		{
			if (!!((mode == ((NU8) 3)))) goto LA65;
			result = primarysuffix_244829(p, result, baseind);
		}
		LA65: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, getprecedence_243835)(Ttoken218181* tok, NIM_BOOL strongspaces) {
	NI result;
	NI LOC61;
{	result = 0;
	switch ((*tok).toktype) {
	case ((NU8) 112):
	{
		NI L;
		NIM_CHAR relevantchar;
		L = ((*(*tok).ident).s ? (*(*tok).ident).s->Sup.len : 0);
		relevantchar = (*(*tok).ident).s->data[((NI) 0)];
		{
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			NI LOC10;
			LOC4 = 0;
			LOC5 = 0;
			LOC5 = (((NI) 1) < L);
			if (!(LOC5)) goto LA6;
			LOC5 = ((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(62));
			LA6: ;
			LOC4 = LOC5;
			if (!(LOC4)) goto LA7;
			LOC4 = (((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 2))])) == ((NU8)(45)) || ((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 2))])) == ((NU8)(126)) || ((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 2))])) == ((NU8)(61)));
			LA7: ;
			if (!LOC4) goto LA8;
			LOC10 = 0;
			{
				if (!strongspaces) goto LA13;
				LOC10 = (NI)(((NI) 100) - (NI)(((NI) ((*tok).strongspacea)) * ((NI) 10)));
			}
			goto LA11;
			LA13: ;
			{
				LOC10 = ((NI) 0);
			}
			LA11: ;
			result = (NI)(((NI) 1) + LOC10);
			goto BeforeRet;
		}
		LA8: ;
		switch (((NU8)(relevantchar))) {
		case 36:
		case 94:
		{
			{
				if (!((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(61))) goto LA19;
				result = ((NI) 1);
			}
			goto LA17;
			LA19: ;
			{
				result = ((NI) 10);
			}
			LA17: ;
		}
		break;
		case 42:
		case 37:
		case 47:
		case 92:
		{
			{
				if (!((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(61))) goto LA25;
				result = ((NI) 1);
			}
			goto LA23;
			LA25: ;
			{
				result = ((NI) 9);
			}
			LA23: ;
		}
		break;
		case 126:
		{
			result = ((NI) 8);
		}
		break;
		case 43:
		case 45:
		case 124:
		{
			{
				if (!((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(61))) goto LA32;
				result = ((NI) 1);
			}
			goto LA30;
			LA32: ;
			{
				result = ((NI) 8);
			}
			LA30: ;
		}
		break;
		case 38:
		{
			{
				if (!((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(61))) goto LA38;
				result = ((NI) 1);
			}
			goto LA36;
			LA38: ;
			{
				result = ((NI) 7);
			}
			LA36: ;
		}
		break;
		case 61:
		case 60:
		case 62:
		case 33:
		{
			result = ((NI) 5);
		}
		break;
		case 46:
		{
			{
				if (!((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(61))) goto LA45;
				result = ((NI) 1);
			}
			goto LA43;
			LA45: ;
			{
				result = ((NI) 6);
			}
			LA43: ;
		}
		break;
		case 63:
		{
			result = ((NI) 2);
		}
		break;
		default:
		{
			{
				if (!((NU8)((*(*tok).ident).s->data[(NI)(L - ((NI) 1))]) == (NU8)(61))) goto LA52;
				result = ((NI) 1);
			}
			goto LA50;
			LA52: ;
			{
				result = ((NI) 2);
			}
			LA50: ;
		}
		break;
		}
	}
	break;
	case ((NU8) 20):
	case ((NU8) 45):
	case ((NU8) 58):
	case ((NU8) 59):
	{
		result = ((NI) 9);
	}
	break;
	case ((NU8) 35):
	case ((NU8) 48):
	case ((NU8) 38):
	case ((NU8) 39):
	case ((NU8) 47):
	case ((NU8) 50):
	case ((NU8) 5):
	{
		result = ((NI) 5);
	}
	break;
	case ((NU8) 111):
	{
		result = ((NI) 6);
	}
	break;
	case ((NU8) 4):
	{
		result = ((NI) 4);
	}
	break;
	case ((NU8) 51):
	case ((NU8) 71):
	case ((NU8) 54):
	case ((NU8) 56):
	{
		result = ((NI) 3);
	}
	break;
	default:
	{
		result = ((NI) -10);
		goto BeforeRet;
	}
	break;
	}
	LOC61 = 0;
	{
		if (!strongspaces) goto LA64;
		LOC61 = (NI)(((NI) 100) - (NI)(((NI) ((*tok).strongspacea)) * ((NI) 10)));
	}
	goto LA62;
	LA64: ;
	{
		LOC61 = ((NI) 0);
	}
	LA62: ;
	result = (NI)(result + LOC61);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isunary_243900)(Tparser243205* p) {
	NIM_BOOL result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 112) || (*p).tok.toktype == ((NU8) 111));
		if (!(LOC4)) goto LA5;
		LOC4 = ((*p).tok.strongspaceb == ((NI8) 0));
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC3 = (((NI8) 0) < (*p).tok.strongspacea);
		LA6: ;
		if (!LOC3) goto LA7;
		{
			if (!(*p).strongspaces) goto LA11;
			result = NIM_TRUE;
		}
		goto LA9;
		LA11: ;
		{
			parmessage_243250(p, ((NU16) 241), ((NimStringDesc*) &TMP1372));
		}
		LA9: ;
	}
	LA7: ;
	return result;
}

static N_INLINE(void, checkbinary_243921)(Tparser243205* p) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (*p).strongspaces;
		if (!(LOC3)) goto LA4;
		LOC3 = ((*p).tok.toktype == ((NU8) 112));
		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_218345((&(*p).tok));
			LOC14 = 0;
			LOC14 = nsuFormatSingleElem(((NimStringDesc*) &TMP1373), LOC13);
			parmessage_243250(p, ((NU16) 4), LOC14);
		}
		goto LA7;
		LA11: ;
		{
			if (!!(((*p).tok.strongspacea == ((NI) 0) || (*p).tok.strongspacea == ((NI) 1) || (*p).tok.strongspacea == ((NI) 2) || (*p).tok.strongspacea == ((NI) 4) || (*p).tok.strongspacea == ((NI) 8)))) goto LA16;
			parmessage_243250(p, ((NU16) 4), ((NimStringDesc*) &TMP1374));
		}
		goto LA7;
		LA16: ;
		LA7: ;
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isrightassociative_243816)(Ttoken218181* tok) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*tok).toktype == ((NU8) 112));
	if (!(LOC1)) goto LA2;
	LOC1 = ((NU8)((*(*tok).ident).s->data[((NI) 0)]) == (NU8)(94));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Tnode227809*, parseoperators_245031)(Tparser243205* p, Tnode227809* headnode, NI limit, NU8 mode) {
	Tnode227809* result;
	NI opprec;
	NU8 modeb;
	result = 0;
	result = headnode;
	opprec = getprecedence_243835((&(*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;
			Tnode227809* a;
			Tnode227809* opnode;
			Tnode227809* b;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = (limit <= opprec);
			if (!(LOC9)) goto LA10;
			LOC9 = ((*p).tok.indent < ((NI) 0));
			LA10: ;
			LOC8 = LOC9;
			if (!(LOC8)) goto LA11;
			LOC12 = 0;
			LOC12 = isunary_243900((&(*p)));
			LOC8 = !(LOC12);
			LA11: ;
			if (!LOC8) goto LA7;
			checkbinary_243921((&(*p)));
			LOC13 = 0;
			LOC13 = isrightassociative_243816((&(*p).tok));
			leftassoc = (NI)(((NI) 1) - ((NI) (LOC13)));
			a = newnodep_243266(((NU8) 29), (&(*p)));
			opnode = newidentnodep_243297((*p).tok.ident, (&(*p)));
			gettok_243243(p);
			optind_243344(p, a);
			b = simpleexpraux_245022(p, (NI)(opprec + leftassoc), modeb);
			addson_229819(a, opnode);
			addson_229819(a, result);
			addson_229819(a, b);
			result = a;
			opprec = getprecedence_243835((&(*p).tok), (*p).strongspaces);
		} LA7: ;
	}
	return result;
}

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

N_NIMCALL(Tnode227809*, simpleexpr_244591)(Tparser243205* p, NU8 mode) {
	Tnode227809* result;
	result = 0;
	result = simpleexpraux_245022(p, ((NI) -1), mode);
	return result;
}

N_NIMCALL(Tnode227809*, makecall_245945)(Tnode227809* n) {
	Tnode227809* 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_229351(((NU8) 27), (*n).info);
		add_228165(result, n);
	}
	LA1: ;
	return result;
}

static N_INLINE(Tnode227809*, HEX5BHEX5D_228244)(Tnode227809* n, NI i) {
	Tnode227809* result;
	result = 0;
	result = (*n).kindU.S6.sons->data[i];
	return result;
}

N_NIMCALL(Tnode227809*, parsemacrocolon_244821)(Tparser243205* p, Tnode227809* x) {
	Tnode227809* result;
	result = 0;
	result = x;
	{
		NIM_BOOL LOC3;
		Tnode227809* stmtlist;
		LOC3 = 0;
		LOC3 = ((*p).tok.toktype == ((NU8) 107));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*p).tok.indent < ((NI) 0));
		LA4: ;
		if (!LOC3) goto LA5;
		result = makecall_245945(result);
		gettok_243243(p);
		skipcomment_243258(p, result);
		stmtlist = newnodep_243266(((NU8) 115), (&(*p)));
		{
			Tnode227809* body;
			if (!!(((*p).tok.toktype == ((NU8) 50) || (*p).tok.toktype == ((NU8) 22) || (*p).tok.toktype == ((NU8) 23) || (*p).tok.toktype == ((NU8) 26)))) goto LA9;
			body = parsestmt_243767(p);
			add_228165(stmtlist, body);
		}
		LA9: ;
		{
			while (1) {
				Tnode227809* b;
				Tnode227809* LOC19;
				if (!((*p).tok.indent == (*p).currind)) goto LA12;
				b = 0;
				switch ((*p).tok.toktype) {
				case ((NU8) 50):
				{
					b = newnodep_243266(((NU8) 85), (&(*p)));
					exprlist_244107(p, ((NU8) 107), b);
				}
				break;
				case ((NU8) 22):
				{
					Tnode227809* LOC15;
					b = newnodep_243266(((NU8) 86), (&(*p)));
					gettok_243243(p);
					optind_243344(p, b);
					LOC15 = 0;
					LOC15 = parseexpr_243760(p);
					addson_229819(b, LOC15);
				}
				break;
				case ((NU8) 26):
				{
					b = newnodep_243266(((NU8) 87), (&(*p)));
					exprlist_244107(p, ((NU8) 107), b);
				}
				break;
				case ((NU8) 23):
				{
					b = newnodep_243266(((NU8) 88), (&(*p)));
					gettok_243243(p);
				}
				break;
				default:
				{
					goto LA11;
				}
				break;
				}
				eat_243322(p, ((NU8) 107));
				LOC19 = 0;
				LOC19 = parsestmt_243767(p);
				addson_229819(b, LOC19);
				addson_229819(stmtlist, b);
				{
					if (!((*b).kind == ((NU8) 88))) goto LA22;
					goto LA11;
				}
				LA22: ;
			} LA12: ;
		} LA11: ;
		{
			NIM_BOOL LOC26;
			NI LOC27;
			Tnode227809* LOC29;
			Tnode227809* LOC32;
			LOC26 = 0;
			LOC27 = 0;
			LOC27 = len_228098(stmtlist);
			LOC26 = (LOC27 == ((NI) 1));
			if (!(LOC26)) goto LA28;
			LOC29 = 0;
			LOC29 = HEX5BHEX5D_228244(stmtlist, ((NI) 0));
			LOC26 = ((*LOC29).kind == ((NU8) 115));
			LA28: ;
			if (!LOC26) goto LA30;
			LOC32 = 0;
			LOC32 = HEX5BHEX5D_228244(stmtlist, ((NI) 0));
			add_228165(result, LOC32);
		}
		goto LA24;
		LA30: ;
		{
			add_228165(result, stmtlist);
		}
		LA24: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode227809*, parseexprstmt_246031)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
{	result = 0;
	a = simpleexpr_244591(p, ((NU8) 0));
	{
		Tnode227809* b;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA3;
		gettok_243243(p);
		optind_243344(p, result);
		b = parseexpr_243760(p);
		result = newnodei_229351(((NU8) 73), (*a).info);
		addson_229819(result, a);
		addson_229819(result, b);
	}
	goto LA1;
	LA3: ;
	{
		{
			NIM_BOOL LOC8;
			NIM_BOOL LOC9;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = ((*p).tok.indent < ((NI) 0));
			if (!(LOC9)) goto LA10;
			LOC9 = ((*p).tok.toktype == ((NU8) 105));
			LA10: ;
			LOC8 = LOC9;
			if (!(LOC8)) goto LA11;
			LOC8 = ((*a).kind == ((NU8) 26));
			LA11: ;
			if (!LOC8) goto LA12;
			result = a;
			{
				while (1) {
					Tnode227809* e;
					gettok_243243(p);
					optind_243344(p, result);
					e = parseexpr_243760(p);
					addson_229819(result, e);
					{
						if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA18;
						goto LA14;
					}
					LA18: ;
				}
			} LA14: ;
		}
		goto LA6;
		LA12: ;
		{
			NIM_BOOL LOC21;
			LOC21 = 0;
			LOC21 = ((*p).tok.indent < ((NI) 0));
			if (!(LOC21)) goto LA22;
			LOC21 = isexprstart_245569((&(*p)));
			LA22: ;
			if (!LOC21) goto LA23;
			{
				if (!((*a).kind == ((NU8) 26))) goto LA27;
				result = a;
			}
			goto LA25;
			LA27: ;
			{
				Tnodeseq227803* LOC30;
				TY245880 LOC31;
				LOC30 = 0;
				LOC30 = (Tnodeseq227803*) newSeq((&NTI227803), 1);
				memset((void*)LOC31, 0, sizeof(LOC31));
				LOC31[0] = a;
				asgnRefNoCycle((void**) (&LOC30->data[0]), LOC31[0]);
				result = newnode_229607(((NU8) 26), (*a).info, LOC30, NIM_NIL);
			}
			LA25: ;
			{
				while (1) {
					Tnode227809* e;
					e = parseexpr_243760(p);
					addson_229819(result, e);
					{
						if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA36;
						goto LA32;
					}
					LA36: ;
					gettok_243243(p);
					optind_243344(p, result);
				}
			} LA32: ;
		}
		goto LA6;
		LA23: ;
		{
			result = a;
		}
		LA6: ;
		{
			NIM_BOOL LOC41;
			LOC41 = 0;
			LOC41 = ((*p).tok.toktype == ((NU8) 21));
			if (!(LOC41)) goto LA42;
			LOC41 = ((*p).tok.indent < ((NI) 0));
			LA42: ;
			if (!LOC41) goto LA43;
			result = makecall_245945(result);
			parsedoblocks_243781(p, result);
			goto BeforeRet;
		}
		LA43: ;
		result = parsemacrocolon_244821(p, result);
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, simplestmt_247295)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 57):
	{
		result = parsereturnorraise_246349(p, ((NU8) 109));
	}
	break;
	case ((NU8) 55):
	{
		result = parsereturnorraise_246349(p, ((NU8) 108));
	}
	break;
	case ((NU8) 72):
	{
		result = parsereturnorraise_246349(p, ((NU8) 104));
	}
	break;
	case ((NU8) 18):
	{
		result = parsereturnorraise_246349(p, ((NU8) 114));
	}
	break;
	case ((NU8) 10):
	{
		result = parsereturnorraise_246349(p, ((NU8) 110));
	}
	break;
	case ((NU8) 15):
	{
		result = parsereturnorraise_246349(p, ((NU8) 111));
	}
	break;
	case ((NU8) 101):
	{
		result = parsestmtpragma_243390(p);
	}
	break;
	case ((NU8) 34):
	{
		result = parseimport_246207(p, ((NU8) 116));
	}
	break;
	case ((NU8) 27):
	{
		result = parseimport_246207(p, ((NU8) 118));
	}
	break;
	case ((NU8) 30):
	{
		result = parsefromstmt_246312(p);
	}
	break;
	case ((NU8) 36):
	{
		result = parseincludestmt_246275(p);
	}
	break;
	case ((NU8) 113):
	{
		result = newcommentstmt_246763(p);
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = isexprstart_245569((&(*p)));
			if (!LOC16) goto LA17;
			result = parseexprstmt_246031(p);
		}
		goto LA14;
		LA17: ;
		{
			result = emptynode_228807;
		}
		LA14: ;
	}
	break;
	}
	{
		if (!!(((*result).kind == ((NU8) 1) || (*result).kind == ((NU8) 125)))) goto LA22;
		skipcomment_243258(p, result);
	}
	LA22: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsestmt_243767)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	{
		NI oldind_247344;
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		result = newnodep_243266(((NU8) 115), (&(*p)));
		oldind_247344 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		{
			while (1) {
				Tnode227809* a;
				{
					if (!((*p).tok.indent == (*p).currind)) goto LA9;
				}
				goto LA7;
				LA9: ;
				{
					if (!((*p).tok.toktype == ((NU8) 106))) goto LA12;
					gettok_243243(p);
					{
						NIM_BOOL LOC16;
						LOC16 = 0;
						LOC16 = ((*p).tok.indent < ((NI) 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) 110)));
						LA25: ;
						if (!LOC24) goto LA26;
						parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
					}
					LA26: ;
					goto LA5;
				}
				LA7: ;
				{
					if (!((*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 94) || (*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 96))) goto LA30;
					goto LA5;
				}
				LA30: ;
				a = complexorsimplestmt_244584(p);
				{
					if (!!(((*a).kind == ((NU8) 1)))) goto LA34;
					addson_229819(result, a);
				}
				goto LA32;
				LA34: ;
				{
					parmessage_243459((&(*p)), ((NU16) 62), (&(*p).tok));
					gettok_243243(p);
				}
				LA32: ;
			}
		} LA5: ;
		(*p).currind = oldind_247344;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).tok.toktype) {
		case ((NU8) 33):
		case ((NU8) 68):
		case ((NU8) 11):
		case ((NU8) 62):
		case ((NU8) 29):
		case ((NU8) 9):
		case ((NU8) 6):
		case ((NU8) 53):
		case ((NU8) 40):
		case ((NU8) 42):
		case ((NU8) 64):
		case ((NU8) 14):
		case ((NU8) 67):
		case ((NU8) 66):
		{
			parmessage_243250((&(*p)), ((NU16) 157), ((NimStringDesc*) &TMP1240));
			result = emptynode_228807;
		}
		break;
		default:
		{
			{
				if (!(((NI) 0) < (*p).insemistmtlist)) goto LA42;
				result = simplestmt_247295(p);
				{
					if (!((*result).kind == ((NU8) 1))) goto LA46;
					parmessage_243459((&(*p)), ((NU16) 62), (&(*p).tok));
				}
				LA46: ;
			}
			goto LA40;
			LA42: ;
			{
				result = newnodep_243266(((NU8) 115), (&(*p)));
				{
					while (1) {
						Tnode227809* a;
						{
							if (!(((NI) 0) <= (*p).tok.indent)) goto LA53;
							parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
						}
						LA53: ;
						a = simplestmt_247295(p);
						{
							if (!((*a).kind == ((NU8) 1))) goto LA57;
							parmessage_243459((&(*p)), ((NU16) 62), (&(*p).tok));
						}
						LA57: ;
						add_228165(result, a);
						{
							if (!!(((*p).tok.toktype == ((NU8) 106)))) goto LA61;
							goto LA49;
						}
						LA61: ;
						gettok_243243(p);
					}
				} LA49: ;
			}
			LA40: ;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsecase_243383)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* b;
	NIM_BOOL inelif;
	NIM_BOOL wasindented;
	Tnode227809* LOC1;
	NI oldind;
	result = 0;
	b = 0;
	inelif = NIM_FALSE;
	wasindented = NIM_FALSE;
	result = newnodep_243266(((NU8) 97), (&(*p)));
	gettok_243243(p);
	LOC1 = 0;
	LOC1 = parseexpr_243760(p);
	addson_229819(result, LOC1);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA4;
		gettok_243243(p);
	}
	LA4: ;
	skipcomment_243258(p, result);
	oldind = (*p).currind;
	{
		if (!((*p).currind < (*p).tok.indent)) goto LA8;
		(*p).currind = (*p).tok.indent;
		wasindented = NIM_TRUE;
	}
	LA8: ;
	{
		while (1) {
			Tnode227809* LOC21;
			if (!((*p).tok.indent == (*p).currind)) goto LA11;
			switch ((*p).tok.toktype) {
			case ((NU8) 50):
			{
				{
					if (!inelif) goto LA15;
					goto LA10;
				}
				LA15: ;
				b = newnodep_243266(((NU8) 85), (&(*p)));
				exprlist_244107(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 22):
			{
				Tnode227809* LOC18;
				inelif = NIM_TRUE;
				b = newnodep_243266(((NU8) 86), (&(*p)));
				gettok_243243(p);
				optind_243344(p, b);
				LOC18 = 0;
				LOC18 = parseexpr_243760(p);
				addson_229819(b, LOC18);
			}
			break;
			case ((NU8) 23):
			{
				b = newnodep_243266(((NU8) 88), (&(*p)));
				gettok_243243(p);
			}
			break;
			default:
			{
				goto LA10;
			}
			break;
			}
			colcom_243951(p, b);
			LOC21 = 0;
			LOC21 = parsestmt_243767(p);
			addson_229819(b, LOC21);
			addson_229819(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(Tnode227809*, parsetry_243375)(Tparser243205* p, NIM_BOOL isexpr) {
	Tnode227809* result;
	Tnode227809* LOC1;
	Tnode227809* b;
	result = 0;
	result = newnodep_243266(((NU8) 106), (&(*p)));
	gettok_243243(p);
	colcom_243951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243767(p);
	addson_229819(result, LOC1);
	b = NIM_NIL;
	{
		while (1) {
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			Tnode227809* LOC11;
			LOC4 = 0;
			LOC5 = 0;
			LOC5 = ((*p).tok.indent == (*p).currind);
			if (LOC5) goto LA6;
			LOC5 = ((*p).tok.indent < ((NI) 0));
			LA6: ;
			LOC4 = LOC5;
			if (LOC4) goto LA7;
			LOC4 = isexpr;
			LA7: ;
			if (!LOC4) goto LA3;
			switch ((*p).tok.toktype) {
			case ((NU8) 26):
			{
				b = newnodep_243266(((NU8) 87), (&(*p)));
				exprlist_244107(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 28):
			{
				b = newnodep_243266(((NU8) 107), (&(*p)));
				gettok_243243(p);
			}
			break;
			default:
			{
				goto LA2;
			}
			break;
			}
			colcom_243951(p, b);
			LOC11 = 0;
			LOC11 = parsestmt_243767(p);
			addson_229819(b, LOC11);
			addson_229819(result, b);
			{
				if (!((*b).kind == ((NU8) 107))) goto LA14;
				goto LA2;
			}
			LA14: ;
		} LA3: ;
	} LA2: ;
	{
		if (!(b == NIM_NIL)) goto LA18;
		parmessage_243250((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1375));
	}
	LA18: ;
	return result;
}

N_NIMCALL(Tnode227809*, parseexpr_243760)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 33):
	{
		result = parseifexpr_245100(p, ((NU8) 48));
	}
	break;
	case ((NU8) 67):
	{
		result = parseifexpr_245100(p, ((NU8) 93));
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_243383(p);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetry_243375(p, NIM_TRUE);
	}
	break;
	default:
	{
		result = simpleexpr_244591(p, ((NU8) 0));
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode227809*, parseiforwhen_246370)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	{
		while (1) {
			Tnode227809* branch;
			Tnode227809* LOC3;
			Tnode227809* LOC4;
			gettok_243243(p);
			branch = newnodep_243266(((NU8) 86), (&(*p)));
			optind_243344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_243760(p);
			addson_229819(branch, LOC3);
			colcom_243951(p, branch);
			LOC4 = 0;
			LOC4 = parsestmt_243767(p);
			addson_229819(branch, LOC4);
			skipcomment_243258(p, branch);
			addson_229819(result, branch);
			{
				NIM_BOOL LOC7;
				NIM_BOOL LOC9;
				LOC7 = 0;
				LOC7 = !(((*p).tok.toktype == ((NU8) 22)));
				if (LOC7) goto LA8;
				LOC9 = 0;
				LOC9 = ((*p).tok.indent == (*p).currind);
				if (LOC9) goto LA10;
				LOC9 = ((*p).tok.indent < ((NI) 0));
				LA10: ;
				LOC7 = !(LOC9);
				LA8: ;
				if (!LOC7) goto LA11;
				goto LA1;
			}
			LA11: ;
		}
	} LA1: ;
	{
		NIM_BOOL LOC15;
		NIM_BOOL LOC17;
		Tnode227809* branch;
		Tnode227809* LOC21;
		LOC15 = 0;
		LOC15 = ((*p).tok.toktype == ((NU8) 23));
		if (!(LOC15)) goto LA16;
		LOC17 = 0;
		LOC17 = ((*p).tok.indent == (*p).currind);
		if (LOC17) goto LA18;
		LOC17 = ((*p).tok.indent < ((NI) 0));
		LA18: ;
		LOC15 = LOC17;
		LA16: ;
		if (!LOC15) goto LA19;
		branch = newnodep_243266(((NU8) 88), (&(*p)));
		eat_243322(p, ((NU8) 23));
		colcom_243951(p, branch);
		LOC21 = 0;
		LOC21 = parsestmt_243767(p);
		addson_229819(branch, LOC21);
		addson_229819(result, branch);
	}
	LA19: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsewhile_246409)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC1;
	Tnode227809* LOC2;
	result = 0;
	result = newnodep_243266(((NU8) 96), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	LOC1 = 0;
	LOC1 = parseexpr_243760(p);
	addson_229819(result, LOC1);
	colcom_243951(p, result);
	LOC2 = 0;
	LOC2 = parsestmt_243767(p);
	addson_229819(result, LOC2);
	return result;
}

N_NIMCALL(Tnode227809*, parseexceptblock_246503)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	Tnode227809* LOC1;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	colcom_243951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243767(p);
	addson_229819(result, LOC1);
	return result;
}

N_NIMCALL(Tnode227809*, parsefor_246515)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
	Tnode227809* LOC3;
	Tnode227809* LOC4;
	result = 0;
	result = newnodep_243266(((NU8) 94), (&(*p)));
	gettoknoind_243602(p);
	a = identwithpragma_245219(p);
	addson_229819(result, a);
	{
		while (1) {
			if (!((*p).tok.toktype == ((NU8) 105))) goto LA2;
			gettok_243243(p);
			optind_243344(p, a);
			a = identwithpragma_245219(p);
			addson_229819(result, a);
		} LA2: ;
	}
	eat_243322(p, ((NU8) 35));
	LOC3 = 0;
	LOC3 = parseexpr_243760(p);
	addson_229819(result, LOC3);
	colcom_243951(p, result);
	LOC4 = 0;
	LOC4 = parsestmt_243767(p);
	addson_229819(result, LOC4);
	return result;
}

N_NIMCALL(Tnode227809*, parseblock_246543)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC7;
	result = 0;
	result = newnodep_243266(((NU8) 112), (&(*p)));
	gettoknoind_243602(p);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		addson_229819(result, emptynode_228807);
	}
	goto LA1;
	LA3: ;
	{
		Tnode227809* LOC6;
		LOC6 = 0;
		LOC6 = parsesymbol_243367(p, NIM_FALSE);
		addson_229819(result, LOC6);
	}
	LA1: ;
	colcom_243951(p, result);
	LOC7 = 0;
	LOC7 = parsestmt_243767(p);
	addson_229819(result, LOC7);
	return result;
}

N_NIMCALL(Tnode227809*, parsestaticordefer_246563)(Tparser243205* p, NU8 k) {
	Tnode227809* result;
	Tnode227809* LOC1;
	result = 0;
	result = newnodep_243266(k, (&(*p)));
	gettok_243243(p);
	colcom_243951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_243767(p);
	addson_229819(result, LOC1);
	return result;
}

N_NIMCALL(Tnode227809*, parseasm_246575)(Tparser243205* p) {
	Tnode227809* result;
{	result = 0;
	result = newnodep_243266(((NU8) 89), (&(*p)));
	gettoknoind_243602(p);
	{
		Tnode227809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA3;
		LOC5 = 0;
		LOC5 = parsepragma_245130(p);
		addson_229819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA1: ;
	switch ((*p).tok.toktype) {
	case ((NU8) 87):
	{
		Tnode227809* LOC8;
		LOC8 = 0;
		LOC8 = newstrnodep_243289(((NU8) 20), (*p).tok.literal, (&(*p)));
		addson_229819(result, LOC8);
	}
	break;
	case ((NU8) 88):
	{
		Tnode227809* LOC10;
		LOC10 = 0;
		LOC10 = newstrnodep_243289(((NU8) 21), (*p).tok.literal, (&(*p)));
		addson_229819(result, LOC10);
	}
	break;
	case ((NU8) 89):
	{
		Tnode227809* LOC12;
		LOC12 = 0;
		LOC12 = newstrnodep_243289(((NU8) 22), (*p).tok.literal, (&(*p)));
		addson_229819(result, LOC12);
	}
	break;
	default:
	{
		parmessage_243250((&(*p)), ((NU16) 6), ((NimStringDesc*) &TMP1240));
		addson_229819(result, emptynode_228807);
		goto BeforeRet;
	}
	break;
	}
	gettok_243243(p);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsepattern_246692)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	eat_243322(p, ((NU8) 97));
	result = parsestmt_243767(p);
	eat_243322(p, ((NU8) 98));
	return result;
}

N_NIMCALL(Tnode227809*, parsegenericparam_246595)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* a;
{	result = 0;
	a = 0;
	result = newnodep_243266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).tok.toktype) {
			case ((NU8) 2):
			case ((NU8) 114):
			{
				a = parsesymbol_243367(p, NIM_FALSE);
				{
					if (!((*a).kind == ((NU8) 1))) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA11;
				goto LA1;
			}
			LA11: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	{
		Tnode227809* LOC17;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA15;
		gettok_243243(p);
		optind_243344(p, result);
		LOC17 = 0;
		LOC17 = parseexpr_243760(p);
		addson_229819(result, LOC17);
	}
	goto LA13;
	LA15: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA13: ;
	{
		Tnode227809* LOC23;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA21;
		gettok_243243(p);
		optind_243344(p, result);
		LOC23 = 0;
		LOC23 = parseexpr_243760(p);
		addson_229819(result, LOC23);
	}
	goto LA19;
	LA21: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA19: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsegenericparamlist_246651)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 75), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			Tnode227809* a;
			if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA2;
			a = parsegenericparam_246595(p);
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_243243(p);
			skipcomment_243258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_243337(p);
	eat_243322(p, ((NU8) 96));
	return result;
}

N_NIMCALL(void, indandcomment_243352)(Tparser243205* p, Tnode227809* n) {
	{
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		{
			if (!((*p).tok.toktype == ((NU8) 113))) goto LA7;
			rawskipcomment_243504(p, n);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		skipcomment_243258(p, n);
	}
	LA1: ;
}

N_NIMCALL(Tnode227809*, parseroutine_246714)(Tparser243205* p, NU8 kind) {
	Tnode227809* result;
	Tnode227809* LOC1;
	Tnode227809* LOC18;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	LOC1 = 0;
	LOC1 = identvis_245198(p);
	addson_229819(result, LOC1);
	{
		NIM_BOOL LOC4;
		Tnode227809* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 97));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_246703(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsepattern_246692(p);
		addson_229819(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA2: ;
	{
		NIM_BOOL LOC12;
		Tnode227809* LOC16;
		LOC12 = 0;
		LOC12 = ((*p).tok.toktype == ((NU8) 95));
		if (!(LOC12)) goto LA13;
		LOC12 = validind_246703(p);
		LA13: ;
		if (!LOC12) goto LA14;
		LOC16 = 0;
		LOC16 = parsegenericparamlist_246651(p);
		add_228165(result, LOC16);
	}
	goto LA10;
	LA14: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA10: ;
	LOC18 = 0;
	LOC18 = parseparamlist_243789(p, NIM_TRUE);
	addson_229819(result, LOC18);
	{
		NIM_BOOL LOC21;
		Tnode227809* LOC25;
		LOC21 = 0;
		LOC21 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC21)) goto LA22;
		LOC21 = validind_246703(p);
		LA22: ;
		if (!LOC21) goto LA23;
		LOC25 = 0;
		LOC25 = parsepragma_245130(p);
		addson_229819(result, LOC25);
	}
	goto LA19;
	LA23: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA19: ;
	addson_229819(result, emptynode_228807);
	{
		NIM_BOOL LOC29;
		Tnode227809* LOC33;
		LOC29 = 0;
		LOC29 = ((*p).tok.toktype == ((NU8) 109));
		if (!(LOC29)) goto LA30;
		LOC29 = validind_246703(p);
		LA30: ;
		if (!LOC29) goto LA31;
		gettok_243243(p);
		skipcomment_243258(p, result);
		LOC33 = 0;
		LOC33 = parsestmt_243767(p);
		addson_229819(result, LOC33);
	}
	goto LA27;
	LA31: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA27: ;
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(Tnode227809*, parsesection_246783)(Tparser243205* p, NU8 kind, Tdefparser246776 defparser) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(kind, (&(*p)));
	{
		if (!!((kind == ((NU8) 98)))) goto LA3;
		gettok_243243(p);
	}
	LA3: ;
	skipcomment_243258(p, result);
	{
		NI oldind_246800;
		if (!((*p).currind < (*p).tok.indent)) goto LA7;
		oldind_246800 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		skipcomment_243258(p, result);
		{
			while (1) {
				if (!((*p).tok.indent == (*p).currind)) goto LA10;
				switch ((*p).tok.toktype) {
				case ((NU8) 2):
				case ((NU8) 114):
				case ((NU8) 93):
				{
					Tnode227809* a;
					a = defparser(p);
					skipcomment_243258(p, a);
					addson_229819(result, a);
				}
				break;
				case ((NU8) 113):
				{
					Tnode227809* a;
					a = newcommentstmt_246763(p);
					addson_229819(result, a);
				}
				break;
				default:
				{
					parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
					goto LA9;
				}
				break;
				}
			} LA10: ;
		} LA9: ;
		(*p).currind = oldind_246800;
		{
			NI LOC16;
			LOC16 = 0;
			LOC16 = len_228098(result);
			if (!(LOC16 == ((NI) 0))) goto LA17;
			parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
		}
		LA17: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		Tnode227809* LOC24;
		LOC20 = 0;
		LOC20 = ((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114) || (*p).tok.toktype == ((NU8) 93));
		if (!(LOC20)) goto LA21;
		LOC20 = ((*p).tok.indent < ((NI) 0));
		LA21: ;
		if (!LOC20) goto LA22;
		LOC24 = 0;
		LOC24 = defparser(p);
		addson_229819(result, LOC24);
	}
	goto LA5;
	LA22: ;
	{
		parmessage_243459((&(*p)), ((NU16) 20), (&(*p).tok));
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsetypedefaux_245934)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = simpleexpr_244591(p, ((NU8) 2));
	return result;
}

N_NIMCALL(Tnode227809*, parsetypedef_247154)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC1;
	result = 0;
	result = newnodep_243266(((NU8) 103), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_245219(p);
	addson_229819(result, LOC1);
	{
		NIM_BOOL LOC4;
		Tnode227809* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 95));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_246703(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsegenericparamlist_246651(p);
		addson_229819(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA2: ;
	{
		Tnode227809* LOC14;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA12;
		gettok_243243(p);
		optind_243344(p, result);
		LOC14 = 0;
		LOC14 = parsetypedefaux_245934(p);
		addson_229819(result, LOC14);
	}
	goto LA10;
	LA12: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA10: ;
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(Tnode227809*, parseconstant_246828)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC1;
	Tnode227809* LOC8;
	result = 0;
	result = newnodep_243266(((NU8) 102), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_245219(p);
	addson_229819(result, LOC1);
	{
		Tnode227809* LOC6;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA4;
		gettok_243243(p);
		optind_243344(p, result);
		LOC6 = 0;
		LOC6 = parsetypedesc_243774(p);
		addson_229819(result, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		addson_229819(result, emptynode_228807);
	}
	LA2: ;
	eat_243322(p, ((NU8) 109));
	optind_243344(p, result);
	LOC8 = 0;
	LOC8 = parseexpr_243760(p);
	addson_229819(result, LOC8);
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(Tnode227809*, parsevartuple_247183)(Tparser243205* p) {
	Tnode227809* result;
	Tnode227809* LOC7;
	result = 0;
	result = newnodep_243266(((NU8) 36), (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			Tnode227809* a;
			if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA2;
			a = identwithpragma_245219(p);
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_243243(p);
			skipcomment_243258(p, a);
		} LA2: ;
	} LA1: ;
	addson_229819(result, emptynode_228807);
	optpar_243337(p);
	eat_243322(p, ((NU8) 94));
	eat_243322(p, ((NU8) 109));
	optind_243344(p, result);
	LOC7 = 0;
	LOC7 = parseexpr_243760(p);
	addson_229819(result, LOC7);
	return result;
}

N_NIMCALL(Tnode227809*, parsevariable_247222)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	{
		if (!((*p).tok.toktype == ((NU8) 93))) goto LA3;
		result = parsevartuple_247183(p);
	}
	goto LA1;
	LA3: ;
	{
		result = parseidentcolonequals_245249(p, 1);
	}
	LA1: ;
	indandcomment_243352(p, result);
	return result;
}

N_NIMCALL(Tnode227809*, qualifiedident_244167)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = parsesymbol_243367(p, NIM_FALSE);
	{
		if (!((*p).tok.toktype == ((NU8) 110))) goto LA3;
		result = dotexpr_244154(p, result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsebind_247243)(Tparser243205* p, NU8 k) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(k, (&(*p)));
	gettok_243243(p);
	optind_243344(p, result);
	{
		while (1) {
			Tnode227809* a;
			a = qualifiedident_244167(p);
			addson_229819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_243243(p);
			optind_243344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, complexorsimplestmt_244584)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 33):
	{
		result = parseiforwhen_246370(p, ((NU8) 92));
	}
	break;
	case ((NU8) 68):
	{
		result = parsewhile_246409(p);
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_243383(p);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetry_243375(p, NIM_FALSE);
	}
	break;
	case ((NU8) 28):
	{
		result = parseexceptblock_246503(p, ((NU8) 107));
	}
	break;
	case ((NU8) 26):
	{
		result = parseexceptblock_246503(p, ((NU8) 87));
	}
	break;
	case ((NU8) 29):
	{
		result = parsefor_246515(p);
	}
	break;
	case ((NU8) 9):
	{
		result = parseblock_246543(p);
	}
	break;
	case ((NU8) 60):
	{
		result = parsestaticordefer_246563(p, ((NU8) 113));
	}
	break;
	case ((NU8) 17):
	{
		result = parsestaticordefer_246563(p, ((NU8) 105));
	}
	break;
	case ((NU8) 6):
	{
		result = parseasm_246575(p);
	}
	break;
	case ((NU8) 53):
	{
		result = parseroutine_246714(p, ((NU8) 79));
	}
	break;
	case ((NU8) 43):
	{
		result = parseroutine_246714(p, ((NU8) 80));
	}
	break;
	case ((NU8) 40):
	{
		result = parseroutine_246714(p, ((NU8) 84));
	}
	break;
	case ((NU8) 42):
	{
		result = parseroutine_246714(p, ((NU8) 82));
	}
	break;
	case ((NU8) 61):
	{
		result = parseroutine_246714(p, ((NU8) 83));
	}
	break;
	case ((NU8) 16):
	{
		result = parseroutine_246714(p, ((NU8) 81));
	}
	break;
	case ((NU8) 64):
	{
		gettok_243243(p);
		{
			Tnode227809* LOC23;
			if (!((*p).tok.toktype == ((NU8) 93))) goto LA21;
			gettok_243243(p);
			result = newnodep_243266(((NU8) 132), (&(*p)));
			LOC23 = 0;
			LOC23 = primary_245014(p, ((NU8) 1));
			addson_229819(result, LOC23);
			eat_243322(p, ((NU8) 94));
			result = parseoperators_245031(p, result, ((NI) -1), ((NU8) 0));
		}
		goto LA19;
		LA21: ;
		{
			result = parsesection_246783(p, ((NU8) 98), parsetypedef_247154);
		}
		LA19: ;
	}
	break;
	case ((NU8) 14):
	{
		result = parsesection_246783(p, ((NU8) 101), parseconstant_246828);
	}
	break;
	case ((NU8) 41):
	{
		result = parsesection_246783(p, ((NU8) 100), parsevariable_247222);
	}
	break;
	case ((NU8) 67):
	{
		result = parseiforwhen_246370(p, ((NU8) 93));
	}
	break;
	case ((NU8) 66):
	{
		result = parsesection_246783(p, ((NU8) 99), parsevariable_247222);
	}
	break;
	case ((NU8) 8):
	{
		result = parsebind_247243(p, ((NU8) 122));
	}
	break;
	case ((NU8) 44):
	{
		result = parsebind_247243(p, ((NU8) 123));
	}
	break;
	case ((NU8) 65):
	{
		result = parsebind_247243(p, ((NU8) 124));
	}
	break;
	default:
	{
		result = simplestmt_247295(p);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode227809*, parseall_243216)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = newnodep_243266(((NU8) 115), (&(*p)));
	{
		while (1) {
			Tnode227809* a;
			if (!!(((*p).tok.toktype == ((NU8) 1)))) goto LA2;
			a = complexorsimplestmt_244584(p);
			{
				if (!!(((*a).kind == ((NU8) 1)))) goto LA5;
				addson_229819(result, a);
			}
			goto LA3;
			LA5: ;
			{
				parmessage_243459((&(*p)), ((NU16) 62), (&(*p).tok));
				gettok_243243(p);
			}
			LA3: ;
			{
				if (!!(((*p).tok.indent == ((NI) 0)))) goto LA10;
				parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
			}
			LA10: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, closeparser_243223)(Tparser243205* p) {
	closelexer_218422((&(*p).lex));
}

N_NIMCALL(Tnode227809*, parsetoplevelstmt_243230)(Tparser243205* p) {
	Tnode227809* result;
	result = 0;
	result = emptynode_228807;
	{
		while (1) {
			{
				if (!!(((*p).tok.indent == ((NI) 0)))) goto LA5;
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = (*p).firsttok;
					if (!(LOC9)) goto LA10;
					LOC9 = ((*p).tok.indent < ((NI) 0));
					LA10: ;
					if (!LOC9) goto LA11;
				}
				goto LA7;
				LA11: ;
				{
					if (!!(((*p).tok.toktype == ((NU8) 106)))) goto LA14;
					parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
				}
				goto LA7;
				LA14: ;
				LA7: ;
			}
			LA5: ;
			(*p).firsttok = NIM_FALSE;
			switch ((*p).tok.toktype) {
			case ((NU8) 106):
			{
				gettok_243243(p);
				{
					if (!((*p).tok.indent <= ((NI) 0))) goto LA19;
				}
				goto LA17;
				LA19: ;
				{
					parmessage_243250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1240));
				}
				LA17: ;
				(*p).firsttok = NIM_TRUE;
			}
			break;
			case ((NU8) 1):
			{
				goto LA1;
			}
			break;
			default:
			{
				result = complexorsimplestmt_244584(p);
				{
					if (!((*result).kind == ((NU8) 1))) goto LA26;
					parmessage_243459((&(*p)), ((NU16) 62), (&(*p).tok));
				}
				LA26: ;
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode227809*, parsestring_247506)(NimStringDesc* s, NimStringDesc* filename, NI line, Terrorhandler218183 errorhandler) {
	Tnode227809* result;
	Tllstream215204* stream;
	Tparser243205 parser;
	result = 0;
	stream = llstreamopen_215220(s);
	(*stream).lineoffset = line;
	memset((void*)(&parser), 0, sizeof(parser));
	objectInit((&parser), (&NTI243205));
	parser.lex.errorhandler.ClEnv = errorhandler.ClEnv;
	parser.lex.errorhandler.ClPrc = errorhandler.ClPrc;
	openparser_243424((&parser), filename, stream, NIM_FALSE);
	result = parseall_243216((&parser));
	closeparser_243223((&parser));
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_parserInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_parserDatInit000)(void) {
static TNimNode* TMP1186[7];
static TNimNode TMP885[8];
NTI243205.size = sizeof(Tparser243205);
NTI243205.kind = 18;
NTI243205.base = 0;
TMP1186[0] = &TMP885[1];
TMP885[1].kind = 1;
TMP885[1].offset = offsetof(Tparser243205, currind);
TMP885[1].typ = (&NTI108);
TMP885[1].name = "currInd";
TMP1186[1] = &TMP885[2];
TMP885[2].kind = 1;
TMP885[2].offset = offsetof(Tparser243205, firsttok);
TMP885[2].typ = (&NTI138);
TMP885[2].name = "firstTok";
TMP1186[2] = &TMP885[3];
TMP885[3].kind = 1;
TMP885[3].offset = offsetof(Tparser243205, strongspaces);
TMP885[3].typ = (&NTI138);
TMP885[3].name = "strongSpaces";
TMP1186[3] = &TMP885[4];
TMP885[4].kind = 1;
TMP885[4].offset = offsetof(Tparser243205, lex);
TMP885[4].typ = (&NTI218185);
TMP885[4].name = "lex";
TMP1186[4] = &TMP885[5];
TMP885[5].kind = 1;
TMP885[5].offset = offsetof(Tparser243205, tok);
TMP885[5].typ = (&NTI218181);
TMP885[5].name = "tok";
TMP1186[5] = &TMP885[6];
TMP885[6].kind = 1;
TMP885[6].offset = offsetof(Tparser243205, inpragma);
TMP885[6].typ = (&NTI108);
TMP885[6].name = "inPragma";
TMP1186[6] = &TMP885[7];
TMP885[7].kind = 1;
TMP885[7].offset = offsetof(Tparser243205, insemistmtlist);
TMP885[7].typ = (&NTI108);
TMP885[7].name = "inSemiStmtList";
TMP885[0].len = 7; TMP885[0].kind = 2; TMP885[0].sons = &TMP1186[0];
NTI243205.node = &TMP885[0];
}

