/* 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 Tparser241205 Tparser241205;
typedef struct Tlexer216185 Tlexer216185;
typedef struct Tbaselexer214024 Tbaselexer214024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tllstream213204 Tllstream213204;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Ttoken216181 Ttoken216181;
typedef struct Tident198021 Tident198021;
typedef struct Tnode225809 Tnode225809;
typedef struct Ttype225847 Ttype225847;
typedef struct Tsym225841 Tsym225841;
typedef struct Tnodeseq225803 Tnodeseq225803;
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 Tidobj198015 Tidobj198015;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tlib225827 Tlib225827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY225932 TY225932;
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  Tbaselexer214024  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream213204* 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) (Tlineinfo190352 info, NU16 msg, NimStringDesc* arg, void* ClEnv);
void* ClEnv;
} Terrorhandler216183;
struct  Tlexer216185  {
  Tbaselexer214024 Sup;
NI32 fileidx;
NI indentahead;
NI currlineindent;
NIM_BOOL strongspaces;
Terrorhandler216183 errorhandler;
};
struct  Ttoken216181  {
NU8 toktype;
NI indent;
Tident198021* ident;
NI64 inumber;
NF fnumber;
NU8 base;
NI8 strongspacea;
NI8 strongspaceb;
NimStringDesc* literal;
NI line;
NI col;
};
struct  Tparser241205  {
NI currind;
NIM_BOOL firsttok;
NIM_BOOL strongspaces;
Tlexer216185 lex;
Ttoken216181 tok;
NI inpragma;
NI insemistmtlist;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* 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* TY216172[119];
typedef NU8 TY241883[15];
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
typedef Tnode225809* TY243880[1];
typedef N_NIMCALL_PTR(Tnode225809*, Tdefparser244776) (Tparser241205* p);
struct  Tllstream213204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* 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  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, openparser_241409)(Tparser241205* p, NI32 fileidx, Tllstream213204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(void, inittoken_216369)(Ttoken216181* L);
N_NIMCALL(void, openlexer_216389)(Tlexer216185* lex, NI32 fileidx, Tllstream213204* inputstream);
N_NIMCALL(void, gettok_241243)(Tparser241205* p);
N_NIMCALL(void, rawgettok_219848)(Tlexer216185* L, Ttoken216181* tok);
N_NIMCALL(NI32, fileinfoidx_191254)(NimStringDesc* filename);
N_NIMCALL(Tnode225809*, newnodep_241266)(NU8 kind, Tparser241205* p);
N_NIMCALL(Tnode225809*, newnodei_227351)(NU8 kind, Tlineinfo190352 info);
N_NIMCALL(Tlineinfo190352, parlineinfo_241316)(Tparser241205* p);
static N_INLINE(Tlineinfo190352, getlineinfo_216218)(Tlexer216185* L, Ttoken216181* tok);
N_NIMCALL(Tlineinfo190352, newlineinfo_191267)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(Tnode225809*, complexorsimplestmt_242584)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseiforwhen_244370)(Tparser241205* p, NU8 kind);
N_NIMCALL(void, optind_241344)(Tparser241205* p, Tnode225809* n);
N_NIMCALL(void, skipcomment_241258)(Tparser241205* p, Tnode225809* node);
N_NIMCALL(void, rawskipcomment_241504)(Tparser241205* p, Tnode225809* 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_241250)(Tparser241205* p, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, lexmessagetok_216492)(Tlexer216185* L, NU16 msg, Ttoken216181* tok, NimStringDesc* arg);
N_NIMCALL(void, skipind_241330)(Tparser241205* p);
N_NIMCALL(void, addson_227819)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(Tnode225809*, parseexpr_241760)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseifexpr_243100)(Tparser241205* p, NU8 kind);
N_NIMCALL(void, colcom_241951)(Tparser241205* p, Tnode225809* n);
N_NIMCALL(void, eat_241322)(Tparser241205* p, NU8 toktype);
N_NIMCALL(Tnode225809*, parsecase_241383)(Tparser241205* p);
N_NIMCALL(void, exprlist_242107)(Tparser241205* p, NU8 endtok, Tnode225809* result);
N_NIMCALL(Tnode225809*, parsestmt_241767)(Tparser241205* p);
N_NIMCALL(void, parmessage_241459)(Tparser241205* p, NU16 msg, Ttoken216181* tok);
N_NIMCALL(NimStringDesc*, prettytok_216345)(Ttoken216181* tok);
N_NIMCALL(Tnode225809*, simplestmt_245295)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsereturnorraise_244349)(Tparser241205* p, NU8 kind);
N_NIMCALL(NIM_BOOL, isexprstart_243569)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsestmtpragma_241390)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsepragma_243130)(Tparser241205* p);
N_NIMCALL(Tnode225809*, exprcoloneqexpr_242095)(Tparser241205* p);
N_NIMCALL(Tnode225809*, colonorequals_242065)(Tparser241205* p, Tnode225809* a);
N_NIMCALL(void, optpar_241337)(Tparser241205* p);
N_NIMCALL(void, add_226165)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(Tnode225809*, parseimport_244207)(Tparser241205* p, NU8 kind);
N_NIMCALL(Tnode225809*, parsemodulename_244136)(Tparser241205* p, NU8 kind);
N_NIMCALL(Tnode225809*, parsefromstmt_244312)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseincludestmt_244275)(Tparser241205* p);
N_NIMCALL(Tnode225809*, newcommentstmt_244763)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseexprstmt_244031)(Tparser241205* p);
N_NIMCALL(Tnode225809*, simpleexpr_242591)(Tparser241205* p, NU8 mode);
N_NIMCALL(Tnode225809*, simpleexpraux_243022)(Tparser241205* p, NI limit, NU8 mode);
N_NIMCALL(Tnode225809*, primary_243014)(Tparser241205* p, NU8 mode);
N_NIMCALL(NIM_BOOL, isoperator_241237)(Ttoken216181* tok);
static N_INLINE(NIM_BOOL, issigillike_241797)(Ttoken216181* tok);
N_NIMCALL(Tnode225809*, newidentnodep_241297)(Tident198021* ident, Tparser241205* p);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tnode225809*, primarysuffix_242829)(Tparser241205* p, Tnode225809* r, NI baseindent);
N_NIMCALL(Tnode225809*, namedparams_242806)(Tparser241205* p, Tnode225809* callee, NU8 kind, NU8 endtok);
N_NIMCALL(void, exprcoloneqexprlistaux_242187)(Tparser241205* p, NU8 endtok, Tnode225809* result);
static N_INLINE(NI, len_226098)(Tnode225809* n);
N_NIMCALL(void, parsedoblocks_241781)(Tparser241205* p, Tnode225809* call);
N_NIMCALL(Tnode225809*, parsedoblock_243483)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseparamlist_241789)(Tparser241205* p, NIM_BOOL retcolon);
N_NIMCALL(Tnode225809*, parseidentcolonequals_243249)(Tparser241205* p, NU8 flags);
N_NIMCALL(Tnode225809*, identwithpragma_243219)(Tparser241205* p);
N_NIMCALL(Tnode225809*, identvis_243198)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsesymbol_241367)(Tparser241205* p, NIM_BOOL allownil);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, toktostr_216323)(Ttoken216181* tok);
N_NIMCALL(Tident198021*, getident_198463)(NimStringDesc* identifier);
N_NIMCALL(NIM_BOOL, iskeyword_216229)(NU8 kind);
N_NIMCALL(Tnode225809*, parsetypedesc_241774)(Tparser241205* p);
N_NIMCALL(NIM_BOOL, identeq_198484)(Tident198021* id, NimStringDesc* name);
N_NIMCALL(Tnode225809*, optpragmas_243463)(Tparser241205* p);
N_NIMCALL(Tnode225809*, newprocnode_228058)(NU8 kind, Tlineinfo190352 info, Tnode225809* body, Tnode225809* params, Tnode225809* name, Tnode225809* pattern, Tnode225809* genericparams, Tnode225809* pragmas, Tnode225809* exceptions);
N_NIMCALL(Tnode225809*, dotexpr_242154)(Tparser241205* p, Tnode225809* a);
N_NIMCALL(Tnode225809*, parsegstrlit_242563)(Tparser241205* p, Tnode225809* a);
N_NIMCALL(Tnode225809*, newstrnodep_241289)(NU8 kind, NimStringDesc* strval, Tparser241205* p);
N_NIMCALL(Tnode225809*, parsetuple_243335)(Tparser241205* p, NIM_BOOL indentallowed);
N_NIMCALL(Tnode225809*, parseprocexpr_243533)(Tparser241205* p, NIM_BOOL isexpr);
N_NIMCALL(Tnode225809*, parseenum_243673)(Tparser241205* p);
N_NIMCALL(void, flexcomment_241560)(Tparser241205* p, Tnode225809* node);
N_NIMCALL(Tnode225809*, parseobject_243680)(Tparser241205* p);
N_NIMCALL(NIM_BOOL, validind_244703)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseobjectpart_244905)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseobjectwhen_244912)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseobjectcase_244950)(Tparser241205* p);
N_NIMCALL(void, gettoknoind_241602)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsetypeclass_243687)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsetypeclassparam_245061)(Tparser241205* p);
N_NIMCALL(NI, sonslen_228387)(Tnode225809* n);
N_NIMCALL(Tnode225809*, newnode_227607)(NU8 kind, Tlineinfo190352 info, Tnodeseq225803* sons, Ttype225847* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tnode225809*, parsetypedesckaux_243617)(Tparser241205* p, NU8 kind, NU8 mode);
N_NIMCALL(void, parsesymbollist_243579)(Tparser241205* p, Tnode225809* result, NIM_BOOL allownil);
N_NIMCALL(Tnode225809*, identorliteral_242775)(Tparser241205* p, NU8 mode);
N_NIMCALL(Tnode225809*, newintnodep_241273)(NU8 kind, NI64 intval, Tparser241205* p);
N_NIMCALL(void, setbaseflags_241360)(Tnode225809* n, NU8 base);
N_NIMCALL(Tnode225809*, newfloatnodep_241281)(NU8 kind, NF floatval, Tparser241205* p);
N_NIMCALL(Tnode225809*, exprcoloneqexprlist_242442)(Tparser241205* p, NU8 kind, NU8 endtok);
N_NIMCALL(Tnode225809*, parsepar_242646)(Tparser241205* p);
N_NIMCALL(void, semistmtlist_242599)(Tparser241205* p, Tnode225809* result);
N_NIMCALL(Tnode225809*, newnodei_227407)(NU8 kind, Tlineinfo190352 info, NI children);
N_NIMCALL(Tnode225809*, setortableconstr_242455)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsecast_242512)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseoperators_243031)(Tparser241205* p, Tnode225809* headnode, NI limit, NU8 mode);
N_NIMCALL(NI, getprecedence_241835)(Ttoken216181* tok, NIM_BOOL strongspaces);
N_NIMCALL(NIM_BOOL, isunary_241900)(Tparser241205* p);
static N_INLINE(void, checkbinary_241921)(Tparser241205* p);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
static N_INLINE(NIM_BOOL, isrightassociative_241816)(Ttoken216181* tok);
N_NIMCALL(Tnode225809*, makecall_243945)(Tnode225809* n);
N_NIMCALL(Tnode225809*, parsemacrocolon_242821)(Tparser241205* p, Tnode225809* x);
static N_INLINE(Tnode225809*, HEX5BHEX5D_226244)(Tnode225809* n, NI i);
N_NIMCALL(Tnode225809*, parsetry_241375)(Tparser241205* p, NIM_BOOL isexpr);
N_NIMCALL(Tnode225809*, parsewhile_244409)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseexceptblock_244503)(Tparser241205* p, NU8 kind);
N_NIMCALL(Tnode225809*, parsefor_244515)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseblock_244543)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsestaticordefer_244563)(Tparser241205* p, NU8 k);
N_NIMCALL(Tnode225809*, parseasm_244575)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseroutine_244714)(Tparser241205* p, NU8 kind);
N_NIMCALL(Tnode225809*, parsepattern_244692)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsegenericparamlist_244651)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsegenericparam_244595)(Tparser241205* p);
N_NIMCALL(void, indandcomment_241352)(Tparser241205* p, Tnode225809* n);
N_NIMCALL(Tnode225809*, parsesection_244783)(Tparser241205* p, NU8 kind, Tdefparser244776 defparser);
N_NIMCALL(Tnode225809*, parsetypedef_245154)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsetypedefaux_243934)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parseconstant_244828)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsevariable_245222)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsevartuple_245183)(Tparser241205* p);
N_NIMCALL(Tnode225809*, parsebind_245243)(Tparser241205* p, NU8 k);
N_NIMCALL(Tnode225809*, qualifiedident_242167)(Tparser241205* p);
N_NIMCALL(void, closelexer_216422)(Tlexer216185* lex);
N_NIMCALL(Tllstream213204*, llstreamopen_213220)(NimStringDesc* data);
N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_NIMCALL(void, openparser_241424)(Tparser241205* p, NimStringDesc* filename, Tllstream213204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(Tnode225809*, parseall_241216)(Tparser241205* p);
N_NIMCALL(void, closeparser_241223)(Tparser241205* p);
STRING_LITERAL(TMP1234, "", 0);
STRING_LITERAL(TMP1235, "[]", 2);
STRING_LITERAL(TMP1236, "skipComment", 11);
extern NIM_CONST TY216172 Toktypetostr_216169;
STRING_LITERAL(TMP1361, ".}", 2);
static NIM_CONST TY241883 TMP1362 = {
0x30, 0x00, 0x10, 0x00, 0xC8, 0xA0, 0x0D, 0x0C,
0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01}
;
STRING_LITERAL(TMP1363, ")", 1);
STRING_LITERAL(TMP1364, "->", 2);
static NIM_CONST TY241883 TMP1365 = {
0x00, 0x4A, 0x06, 0x34, 0x12, 0x12, 0x00, 0x40,
0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP1366, "will be parsed as unary operator; inconsistent spacing", 54);
STRING_LITERAL(TMP1367, "Number of spaces around \'$#\' not consistent", 43);
STRING_LITERAL(TMP1368, "Number of spaces must be 0,1,2,4 or 8", 37);
STRING_LITERAL(TMP1369, "except", 6);
TNimType NTI241205; /* TParser */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI216185; /* TLexer */
extern TNimType NTI216181; /* TToken */
extern Gcheap51018 gch_51059;
extern Tnode225809* emptynode_226807;
extern TNimType NTI225803; /* TNodeSeq */

N_NIMCALL(void, gettok_241243)(Tparser241205* p) {
	rawgettok_219848((&(*p).lex), (&(*p).tok));
}

N_NIMCALL(void, openparser_241409)(Tparser241205* p, NI32 fileidx, Tllstream213204* inputstream, NIM_BOOL strongspaces) {
	inittoken_216369((&(*p).tok));
	openlexer_216389((&(*p).lex), fileidx, inputstream);
	gettok_241243(p);
	(*p).firsttok = NIM_TRUE;
	(*p).strongspaces = strongspaces;
}

N_NIMCALL(void, openparser_241424)(Tparser241205* p, NimStringDesc* filename, Tllstream213204* inputstream, NIM_BOOL strongspaces) {
	NI32 LOC1;
	LOC1 = 0;
	LOC1 = fileinfoidx_191254(filename);
	openparser_241409(p, LOC1, inputstream, strongspaces);
}

static N_INLINE(Tlineinfo190352, getlineinfo_216218)(Tlexer216185* L, Ttoken216181* tok) {
	Tlineinfo190352 result;
	memset((void*)(&result), 0, sizeof(result));
	result = newlineinfo_191267((*L).fileidx, (*tok).line, (*tok).col);
	return result;
}

N_NIMCALL(Tlineinfo190352, parlineinfo_241316)(Tparser241205* p) {
	Tlineinfo190352 result;
	memset((void*)(&result), 0, sizeof(result));
	result = getlineinfo_216218((&(*p).lex), (&(*p).tok));
	return result;
}

N_NIMCALL(Tnode225809*, newnodep_241266)(NU8 kind, Tparser241205* p) {
	Tnode225809* result;
	Tlineinfo190352 LOC1;
	result = 0;
	LOC1 = parlineinfo_241316(p);
	result = newnodei_227351(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_241250)(Tparser241205* p, NU16 msg, NimStringDesc* arg) {
	lexmessagetok_216492((&(*p).lex), msg, (&(*p).tok), arg);
}

N_NIMCALL(void, rawskipcomment_241504)(Tparser241205* p, Tnode225809* 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*) &TMP1234));
				if (LOC13) nimGCunrefNoCycle(LOC13);
			}
			LA11: ;
			{
				if (!eqStrings((*p).tok.literal, ((NimStringDesc*) &TMP1235))) 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_241250((&(*p)), ((NU16) 2), ((NimStringDesc*) &TMP1236));
		}
		LA5: ;
		gettok_241243(p);
	}
	LA3: ;
}

N_NIMCALL(void, skipcomment_241258)(Tparser241205* p, Tnode225809* node) {
	{
		if (!((*p).tok.indent < ((NI) 0))) goto LA3;
		rawskipcomment_241504(p, node);
	}
	LA3: ;
}

N_NIMCALL(void, skipind_241330)(Tparser241205* p) {
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		{
			if (!!(((*p).currind < (*p).tok.indent))) goto LA7;
			parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, optind_241344)(Tparser241205* p, Tnode225809* n) {
	skipcomment_241258(p, n);
	skipind_241330(p);
}

N_NIMCALL(void, eat_241322)(Tparser241205* p, NU8 toktype) {
	{
		if (!((*p).tok.toktype == toktype)) goto LA3;
		gettok_241243(p);
	}
	goto LA1;
	LA3: ;
	{
		lexmessagetok_216492((&(*p).lex), ((NU16) 24), (&(*p).tok), Toktypetostr_216169[(toktype)- 0]);
	}
	LA1: ;
}

N_NIMCALL(void, colcom_241951)(Tparser241205* p, Tnode225809* n) {
	eat_241322(p, ((NU8) 107));
	skipcomment_241258(p, n);
}

N_NIMCALL(Tnode225809*, parseifexpr_243100)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	Tnode225809* branch;
	Tnode225809* LOC9;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	{
		while (1) {
			Tnode225809* branch;
			Tnode225809* LOC3;
			Tnode225809* LOC4;
			gettok_241243(p);
			branch = newnodep_241266(((NU8) 49), (&(*p)));
			LOC3 = 0;
			LOC3 = parseexpr_241760(p);
			addson_227819(branch, LOC3);
			colcom_241951(p, branch);
			LOC4 = 0;
			LOC4 = parseexpr_241760(p);
			addson_227819(branch, LOC4);
			optind_241344(p, branch);
			addson_227819(result, branch);
			{
				if (!!(((*p).tok.toktype == ((NU8) 22)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		}
	} LA1: ;
	branch = newnodep_241266(((NU8) 50), (&(*p)));
	eat_241322(p, ((NU8) 23));
	colcom_241951(p, branch);
	LOC9 = 0;
	LOC9 = parseexpr_241760(p);
	addson_227819(branch, LOC9);
	addson_227819(result, branch);
	return result;
}

N_NIMCALL(void, exprlist_242107)(Tparser241205* p, NU8 endtok, Tnode225809* result) {
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			Tnode225809* 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_241760(p);
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_241243(p);
			optind_241344(p, a);
		} LA2: ;
	} LA1: ;
}

N_NIMCALL(void, parmessage_241459)(Tparser241205* p, NU16 msg, Ttoken216181* tok) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = prettytok_216345(tok);
	parmessage_241250(p, msg, LOC1);
}

N_NIMCALL(NIM_BOOL, isexprstart_243569)(Tparser241205* 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(Tnode225809*, parsereturnorraise_244349)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	gettok_241243(p);
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA3;
		skipcomment_241258(p, result);
		addson_227819(result, emptynode_226807);
	}
	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_243569((&(*p)));
		LOC6 = !(LOC10);
		LA9: ;
		if (!LOC6) goto LA11;
		addson_227819(result, emptynode_226807);
	}
	goto LA1;
	LA11: ;
	{
		Tnode225809* LOC14;
		LOC14 = 0;
		LOC14 = parseexpr_241760(p);
		addson_227819(result, LOC14);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, colonorequals_242065)(Tparser241205* p, Tnode225809* a) {
	Tnode225809* result;
	result = 0;
	{
		Tnode225809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		result = newnodep_241266(((NU8) 34), (&(*p)));
		gettok_241243(p);
		addson_227819(result, a);
		LOC5 = 0;
		LOC5 = parseexpr_241760(p);
		addson_227819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		Tnode225809* LOC9;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA7;
		result = newnodep_241266(((NU8) 33), (&(*p)));
		gettok_241243(p);
		addson_227819(result, a);
		LOC9 = 0;
		LOC9 = parseexpr_241760(p);
		addson_227819(result, LOC9);
	}
	goto LA1;
	LA7: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, exprcoloneqexpr_242095)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
	result = 0;
	a = parseexpr_241760(p);
	result = colonorequals_242065(p, a);
	return result;
}

N_NIMCALL(void, optpar_241337)(Tparser241205* p) {
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		{
			if (!((*p).tok.indent < (*p).currind)) goto LA7;
			parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(Tnode225809*, parsepragma_243130)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 90), (&(*p)));
	(*p).inpragma += ((NI) 1);
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			Tnode225809* a;
			if (!!(((*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 1)))) goto LA2;
			a = exprcoloneqexpr_242095(p);
			addson_227819(result, a);
			{
				if (!((*p).tok.toktype == ((NU8) 105))) goto LA5;
				gettok_241243(p);
				skipcomment_241258(p, a);
			}
			LA5: ;
		} LA2: ;
	}
	optpar_241337(p);
	{
		if (!((*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 98))) goto LA9;
		gettok_241243(p);
	}
	goto LA7;
	LA9: ;
	{
		parmessage_241250((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1361));
	}
	LA7: ;
	(*p).inpragma -= ((NI) 1);
	return result;
}

N_NIMCALL(Tnode225809*, parsestmtpragma_241390)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = parsepragma_243130(p);
	{
		NIM_BOOL LOC3;
		Tnode225809* a;
		Tnode225809* 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_227351(((NU8) 91), (*a).info);
		gettok_241243(p);
		skipcomment_241258(p, result);
		add_226165(result, a);
		LOC7 = 0;
		LOC7 = parsestmt_241767(p);
		add_226165(result, LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsemodulename_244136)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	result = 0;
	result = parseexpr_241760(p);
	return result;
}

N_NIMCALL(Tnode225809*, parseimport_244207)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	Tnode225809* a;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	a = parsemodulename_244136(p, kind);
	addson_227819(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_241243(p);
		optind_241344(p, result);
		{
			while (1) {
				a = parsemodulename_244136(p, kind);
				{
					if (!((*a).kind == ((NU8) 1))) goto LA13;
					goto LA9;
				}
				LA13: ;
				addson_227819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA17;
					goto LA9;
				}
				LA17: ;
				gettok_241243(p);
				optind_241344(p, a);
			}
		} LA9: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsefromstmt_244312)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
	result = 0;
	result = newnodep_241266(((NU8) 120), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	a = parsemodulename_244136(p, ((NU8) 116));
	addson_227819(result, a);
	eat_241322(p, ((NU8) 34));
	optind_241344(p, result);
	{
		while (1) {
			a = parseexpr_241760(p);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_241243(p);
			optind_241344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parseincludestmt_244275)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 121), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			Tnode225809* a;
			a = parseexpr_241760(p);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_241243(p);
			optind_241344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, newcommentstmt_244763)(Tparser241205* p) {
	Tnode225809* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_241266(((NU8) 125), (&(*p)));
	LOC1 = 0;
	LOC1 = (*result).comment; (*result).comment = copyStringRC1((*p).tok.literal);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	gettok_241243(p);
	return result;
}

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

static N_INLINE(NIM_BOOL, issigillike_241797)(Ttoken216181* 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(Tnode225809*, newidentnodep_241297)(Tident198021* ident, Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 2), p);
	asgnRefNoCycle((void**) (&(*result).kindU.S5.ident), ident);
	return result;
}

N_NIMCALL(void, exprcoloneqexprlistaux_242187)(Tparser241205* p, NU8 endtok, Tnode225809* result) {
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			Tnode225809* 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_242095(p);
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_241243(p);
			skipcomment_241258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_241337(p);
	eat_241322(p, endtok);
}

N_NIMCALL(Tnode225809*, namedparams_242806)(Tparser241205* p, Tnode225809* callee, NU8 kind, NU8 endtok) {
	Tnode225809* result;
	Tnode225809* a;
	result = 0;
	a = callee;
	result = newnodep_241266(kind, (&(*p)));
	addson_227819(result, a);
	exprcoloneqexprlistaux_242187(p, endtok, result);
	return result;
}

static N_INLINE(NI, len_226098)(Tnode225809* 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(Tnode225809*, parsesymbol_241367)(Tparser241205* p, NIM_BOOL allownil) {
	Tnode225809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 3):
	case ((NU8) 64):
	{
		result = newidentnodep_241297((*p).tok.ident, (&(*p)));
		gettok_241243(p);
	}
	break;
	case ((NU8) 114):
	{
		result = newnodep_241266(((NU8) 53), (&(*p)));
		gettok_241243(p);
		{
			while (1) {
				switch ((*p).tok.toktype) {
				case ((NU8) 114):
				{
					{
						NI LOC8;
						LOC8 = 0;
						LOC8 = len_226098(result);
						if (!(LOC8 == ((NI) 0))) goto LA9;
						parmessage_241459((&(*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;
					Tident198021* LOC15;
					Tnode225809* LOC16;
					accm = copyString(((NimStringDesc*) &TMP1234));
					{
						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_216323((&(*p).tok));
							accm = resizeString(accm, LOC14->Sup.len + 0);
appendString(accm, LOC14);
							gettok_241243(p);
						} LA13: ;
					}
					LOC15 = 0;
					LOC15 = getident_198463(accm);
					LOC16 = 0;
					LOC16 = newidentnodep_241297(LOC15, (&(*p)));
					add_226165(result, LOC16);
				}
				break;
				case ((NU8) 3) ... ((NU8) 72):
				case ((NU8) 2):
				case ((NU8) 73) ... ((NU8) 92):
				{
					NimStringDesc* LOC18;
					Tident198021* LOC19;
					Tnode225809* LOC20;
					LOC18 = 0;
					LOC18 = toktostr_216323((&(*p).tok));
					LOC19 = 0;
					LOC19 = getident_198463(LOC18);
					LOC20 = 0;
					LOC20 = newidentnodep_241297(LOC19, (&(*p)));
					add_226165(result, LOC20);
					gettok_241243(p);
				}
				break;
				default:
				{
					parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
				}
				break;
				}
			}
		} LA3: ;
		eat_241322(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_241266(((NU8) 23), (&(*p)));
			gettok_241243(p);
		}
		goto LA23;
		LA27: ;
		{
			parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
			{
				NIM_BOOL LOC32;
				LOC32 = 0;
				LOC32 = iskeyword_216229((*p).tok.toktype);
				if (!!(LOC32)) goto LA33;
				gettok_241243(p);
			}
			LA33: ;
			result = emptynode_226807;
		}
		LA23: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, identvis_243198)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
	result = 0;
	a = parsesymbol_241367(p, NIM_FALSE);
	{
		Tnode225809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 112))) goto LA3;
		result = newnodep_241266(((NU8) 31), (&(*p)));
		LOC5 = 0;
		LOC5 = newidentnodep_241297((*p).tok.ident, (&(*p)));
		addson_227819(result, LOC5);
		addson_227819(result, a);
		gettok_241243(p);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, identwithpragma_243219)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
	result = 0;
	a = identvis_243198(p);
	{
		Tnode225809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA3;
		result = newnodep_241266(((NU8) 43), (&(*p)));
		addson_227819(result, a);
		LOC5 = 0;
		LOC5 = parsepragma_243130(p);
		addson_227819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsetypedesc_241774)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = simpleexpr_242591(p, ((NU8) 1));
	return result;
}

N_NIMCALL(Tnode225809*, parseidentcolonequals_243249)(Tparser241205* p, NU8 flags) {
	Tnode225809* result;
	Tnode225809* a;
{	result = 0;
	a = 0;
	result = newnodep_241266(((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_243219(p);
				}
				goto LA4;
				LA6: ;
				{
					a = parsesymbol_241367(p, NIM_FALSE);
				}
				LA4: ;
				{
					if (!((*a).kind == ((NU8) 1))) goto LA11;
					goto BeforeRet;
				}
				LA11: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA16;
				goto LA1;
			}
			LA16: ;
			gettok_241243(p);
			optind_241344(p, a);
		}
	} LA1: ;
	{
		Tnode225809* LOC22;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA20;
		gettok_241243(p);
		optind_241344(p, result);
		LOC22 = 0;
		LOC22 = parsetypedesc_241774(p);
		addson_227819(result, LOC22);
	}
	goto LA18;
	LA20: ;
	{
		addson_227819(result, emptynode_226807);
		{
			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_241459((&(*p)), ((NU16) 61), (&(*p).tok));
		}
		LA28: ;
	}
	LA18: ;
	{
		Tnode225809* LOC34;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA32;
		gettok_241243(p);
		optind_241344(p, result);
		LOC34 = 0;
		LOC34 = parseexpr_241760(p);
		addson_227819(result, LOC34);
	}
	goto LA30;
	LA32: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA30: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, parseparamlist_241789)(Tparser241205* p, NIM_BOOL retcolon) {
	Tnode225809* result;
	Tnode225809* a;
	NIM_BOOL hasparle;
	NIM_BOOL LOC1;
	NIM_BOOL hasret;
	result = 0;
	a = 0;
	result = newnodep_241266(((NU8) 76), (&(*p)));
	addson_227819(result, emptynode_226807);
	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_241243(p);
		optind_241344(p, result);
		{
			while (1) {
				switch ((*p).tok.toktype) {
				case ((NU8) 2):
				case ((NU8) 114):
				{
					a = parseidentcolonequals_243249(p, 3);
				}
				break;
				case ((NU8) 94):
				{
					goto LA7;
				}
				break;
				default:
				{
					parmessage_241250((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1363));
					goto LA7;
				}
				break;
				}
				addson_227819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA14;
					goto LA7;
				}
				LA14: ;
				gettok_241243(p);
				skipcomment_241258(p, a);
			}
		} LA7: ;
		optpar_241337(p);
		eat_241322(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_198484((*p).tok.ident, ((NimStringDesc*) &TMP1364));
		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_241243(p);
		optind_241344(p, result);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), parsetypedesc_241774(p));
	}
	goto LA23;
	LA27: ;
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = !(retcolon);
		if (!(LOC30)) goto LA31;
		LOC30 = !(hasparle);
		LA31: ;
		if (!LOC30) goto LA32;
		result = emptynode_226807;
	}
	goto LA23;
	LA32: ;
	LA23: ;
	return result;
}

N_NIMCALL(Tnode225809*, optpragmas_243463)(Tparser241205* p) {
	Tnode225809* 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_243130(p);
	}
	goto LA1;
	LA7: ;
	{
		result = emptynode_226807;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsedoblock_243483)(Tparser241205* p) {
	Tnode225809* result;
	Tlineinfo190352 info;
	Tnode225809* params;
	Tnode225809* pragmas;
	Tnode225809* LOC1;
	result = 0;
	info = parlineinfo_241316((&(*p)));
	gettok_241243(p);
	params = parseparamlist_241789(p, NIM_FALSE);
	pragmas = optpragmas_243463(p);
	colcom_241951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_241767(p);
	result = newprocnode_228058(((NU8) 52), info, LOC1, params, emptynode_226807, emptynode_226807, emptynode_226807, pragmas, emptynode_226807);
	return result;
}

N_NIMCALL(void, parsedoblocks_241781)(Tparser241205* p, Tnode225809* call) {
	{
		Tnode225809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 21))) goto LA3;
		LOC5 = 0;
		LOC5 = parsedoblock_243483(p);
		addson_227819(call, LOC5);
		{
			while (1) {
				NIM_BOOL LOC8;
				Tnode225809* 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_243483(p);
				addson_227819(call, LOC10);
			} LA7: ;
		}
	}
	LA3: ;
}

N_NIMCALL(Tnode225809*, dotexpr_242154)(Tparser241205* p, Tnode225809* a) {
	Tnode225809* result;
	Tlineinfo190352 info;
	Tnode225809* LOC1;
	result = 0;
	info = parlineinfo_241316((&(*p)));
	gettok_241243(p);
	result = newnodei_227351(((NU8) 45), info);
	optind_241344(p, result);
	addson_227819(result, a);
	LOC1 = 0;
	LOC1 = parsesymbol_241367(p, NIM_FALSE);
	addson_227819(result, LOC1);
	return result;
}

N_NIMCALL(Tnode225809*, newstrnodep_241289)(NU8 kind, NimStringDesc* strval, Tparser241205* p) {
	Tnode225809* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_241266(kind, p);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(strval);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	return result;
}

N_NIMCALL(Tnode225809*, parsegstrlit_242563)(Tparser241205* p, Tnode225809* a) {
	Tnode225809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 90):
	{
		Tnode225809* LOC2;
		result = newnodep_241266(((NU8) 28), (&(*p)));
		addson_227819(result, a);
		LOC2 = 0;
		LOC2 = newstrnodep_241289(((NU8) 21), (*p).tok.literal, (&(*p)));
		addson_227819(result, LOC2);
		gettok_241243(p);
	}
	break;
	case ((NU8) 91):
	{
		Tnode225809* LOC4;
		result = newnodep_241266(((NU8) 28), (&(*p)));
		addson_227819(result, a);
		LOC4 = 0;
		LOC4 = newstrnodep_241289(((NU8) 22), (*p).tok.literal, (&(*p)));
		addson_227819(result, LOC4);
		gettok_241243(p);
	}
	break;
	default:
	{
		result = a;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, primarysuffix_242829)(Tparser241205* p, Tnode225809* r, NI baseindent) {
	Tnode225809* 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_242806(p, result, ((NU8) 27), ((NU8) 94));
				{
					NIM_BOOL LOC16;
					NI LOC17;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = len_226098(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_241781(p, result);
				}
				LA14: ;
			}
			break;
			case ((NU8) 21):
			{
				Tnode225809* a;
				a = result;
				result = newnodep_241266(((NU8) 27), (&(*p)));
				addson_227819(result, a);
				parsedoblocks_241781(p, result);
			}
			break;
			case ((NU8) 110):
			{
				result = dotexpr_242154(p, result);
				result = parsegstrlit_242563(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_242806(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_242806(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):
			{
				{
					Tnode225809* a;
					Tnode225809* LOC43;
					if (!((*p).inpragma == ((NI) 0))) goto LA41;
					a = result;
					result = newnodep_241266(((NU8) 26), (&(*p)));
					addson_227819(result, a);
					LOC43 = 0;
					LOC43 = parseexpr_241760(p);
					addson_227819(result, LOC43);
				}
				LA41: ;
				goto LA1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		} LA2: ;
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsetuple_243335)(Tparser241205* p, NIM_BOOL indentallowed) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 134), (&(*p)));
	gettok_241243(p);
	{
		if (!((*p).tok.toktype == ((NU8) 95))) goto LA3;
		gettok_241243(p);
		optind_241344(p, result);
		{
			while (1) {
				Tnode225809* a;
				if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA6;
				a = parseidentcolonequals_243249(p, 0);
				addson_227819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA9;
					goto LA5;
				}
				LA9: ;
				gettok_241243(p);
				skipcomment_241258(p, a);
			} LA6: ;
		} LA5: ;
		optpar_241337(p);
		eat_241322(p, ((NU8) 96));
	}
	goto LA1;
	LA3: ;
	{
		if (!indentallowed) goto LA12;
		skipcomment_241258(p, result);
		{
			NI oldind_243376;
			if (!((*p).currind < (*p).tok.indent)) goto LA16;
			oldind_243376 = (*p).currind;
			(*p).currind = (*p).tok.indent;
			rawskipcomment_241504(p, result);
			{
				while (1) {
					switch ((*p).tok.toktype) {
					case ((NU8) 2):
					case ((NU8) 114):
					{
						Tnode225809* a;
						a = parseidentcolonequals_243249(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_241504(p, a);
						}
						LA25: ;
						addson_227819(result, a);
					}
					break;
					case ((NU8) 1):
					{
						goto LA18;
					}
					break;
					default:
					{
						parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
						goto LA18;
					}
					break;
					}
					{
						if (!!(((*p).tok.indent == (*p).currind))) goto LA31;
						goto LA18;
					}
					LA31: ;
				}
			} LA18: ;
			(*p).currind = oldind_243376;
		}
		LA16: ;
	}
	goto LA1;
	LA12: ;
	{
		result = newnodep_241266(((NU8) 135), (&(*p)));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parseprocexpr_243533)(Tparser241205* p, NIM_BOOL isexpr) {
	Tnode225809* result;
	Tlineinfo190352 info;
	NIM_BOOL hassignature;
	NIM_BOOL LOC1;
	Tnode225809* params;
	Tnode225809* pragmas;
	result = 0;
	info = parlineinfo_241316((&(*p)));
	gettok_241243(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_241789(p, NIM_TRUE);
	pragmas = optpragmas_243463(p);
	{
		NIM_BOOL LOC5;
		Tnode225809* LOC9;
		LOC5 = 0;
		LOC5 = ((*p).tok.toktype == ((NU8) 109));
		if (!(LOC5)) goto LA6;
		LOC5 = isexpr;
		LA6: ;
		if (!LOC5) goto LA7;
		gettok_241243(p);
		skipcomment_241258(p, result);
		LOC9 = 0;
		LOC9 = parsestmt_241767(p);
		result = newprocnode_228058(((NU8) 51), info, LOC9, params, emptynode_226807, emptynode_226807, emptynode_226807, pragmas, emptynode_226807);
	}
	goto LA3;
	LA7: ;
	{
		result = newnodei_227351(((NU8) 147), info);
		{
			if (!hassignature) goto LA13;
			addson_227819(result, params);
			addson_227819(result, pragmas);
		}
		LA13: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, flexcomment_241560)(Tparser241205* p, Tnode225809* 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_241504(p, node);
	}
	LA5: ;
}

N_NIMCALL(Tnode225809*, parseenum_243673)(Tparser241205* p) {
	Tnode225809* result;
{	result = 0;
	result = newnodep_241266(((NU8) 150), (&(*p)));
	gettok_241243(p);
	addson_227819(result, emptynode_226807);
	optind_241344(p, result);
	flexcomment_241560(p, result);
	{
		while (1) {
			Tnode225809* a;
			a = parsesymbol_241367(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_226165(result, a);
				goto LA1;
			}
			LA11: ;
			{
				NIM_BOOL LOC15;
				Tnode225809* b;
				Tnode225809* 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_241243(p);
				optind_241344(p, a);
				b = a;
				a = newnodep_241266(((NU8) 151), (&(*p)));
				addson_227819(a, b);
				LOC19 = 0;
				LOC19 = parseexpr_241760(p);
				addson_227819(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_241504(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_241243(p);
				rawskipcomment_241504(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_241504(p, a);
				}
				LA37: ;
			}
			LA26: ;
			addson_227819(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_226098(result);
		if (!(LOC49 <= ((NI) 1))) goto LA50;
		LOC52 = 0;
		LOC52 = prettytok_216345((&(*p).tok));
		lexmessagetok_216492((&(*p).lex), ((NU16) 20), (&(*p).tok), LOC52);
	}
	LA50: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, validind_244703)(Tparser241205* 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(Tnode225809*, parseobjectwhen_244912)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 140), (&(*p)));
	{
		while (1) {
			Tnode225809* branch;
			Tnode225809* LOC3;
			Tnode225809* LOC4;
			if (!((*p).tok.indent == (*p).currind)) goto LA2;
			gettok_241243(p);
			branch = newnodep_241266(((NU8) 86), (&(*p)));
			optind_241344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_241760(p);
			addson_227819(branch, LOC3);
			colcom_241951(p, branch);
			LOC4 = 0;
			LOC4 = parseobjectpart_244905(p);
			addson_227819(branch, LOC4);
			flexcomment_241560(p, branch);
			addson_227819(result, branch);
			{
				if (!!(((*p).tok.toktype == ((NU8) 22)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		} LA2: ;
	} LA1: ;
	{
		NIM_BOOL LOC11;
		Tnode225809* branch;
		Tnode225809* 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_241266(((NU8) 88), (&(*p)));
		eat_241322(p, ((NU8) 23));
		colcom_241951(p, branch);
		LOC15 = 0;
		LOC15 = parseobjectpart_244905(p);
		addson_227819(branch, LOC15);
		flexcomment_241560(p, branch);
		addson_227819(result, branch);
	}
	LA13: ;
	return result;
}

N_NIMCALL(void, gettoknoind_241602)(Tparser241205* p) {
	gettok_241243(p);
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
	}
	LA3: ;
}

N_NIMCALL(Tnode225809*, parseobjectcase_244950)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	NIM_BOOL wasindented;
	NI oldind;
	result = 0;
	result = newnodep_241266(((NU8) 139), (&(*p)));
	gettoknoind_241602(p);
	a = newnodep_241266(((NU8) 35), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_243219(p);
	addson_227819(a, LOC1);
	eat_241322(p, ((NU8) 107));
	LOC2 = 0;
	LOC2 = parsetypedesc_241774(p);
	addson_227819(a, LOC2);
	addson_227819(a, emptynode_226807);
	addson_227819(result, a);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA5;
		gettok_241243(p);
	}
	LA5: ;
	flexcomment_241560(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) {
			Tnode225809* b;
			Tnode225809* fields;
			if (!((*p).tok.indent == (*p).currind)) goto LA12;
			b = 0;
			switch ((*p).tok.toktype) {
			case ((NU8) 50):
			{
				b = newnodep_241266(((NU8) 85), (&(*p)));
				exprlist_242107(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 23):
			{
				b = newnodep_241266(((NU8) 88), (&(*p)));
				gettok_241243(p);
			}
			break;
			default:
			{
				goto LA11;
			}
			break;
			}
			colcom_241951(p, b);
			fields = parseobjectpart_244905(p);
			{
				if (!((*fields).kind == ((NU8) 1))) goto LA18;
				parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
				fields = newnodep_241266(((NU8) 23), (&(*p)));
			}
			LA18: ;
			addson_227819(b, fields);
			addson_227819(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(Tnode225809*, parseobjectpart_244905)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	{
		NI oldind_245007;
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		result = newnodep_241266(((NU8) 138), (&(*p)));
		oldind_245007 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		rawskipcomment_241504(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):
				{
					Tnode225809* LOC8;
					LOC8 = 0;
					LOC8 = parseobjectpart_244905(p);
					addson_227819(result, LOC8);
				}
				break;
				default:
				{
					parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
					goto LA5;
				}
				break;
				}
			} LA6: ;
		} LA5: ;
		(*p).currind = oldind_245007;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).tok.toktype) {
		case ((NU8) 67):
		{
			result = parseobjectwhen_244912(p);
		}
		break;
		case ((NU8) 11):
		{
			result = parseobjectcase_244950(p);
		}
		break;
		case ((NU8) 2):
		case ((NU8) 114):
		{
			result = parseidentcolonequals_243249(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_241504(p, result);
			}
			LA18: ;
		}
		break;
		case ((NU8) 46):
		case ((NU8) 18):
		{
			result = newnodep_241266(((NU8) 23), (&(*p)));
			gettok_241243(p);
		}
		break;
		default:
		{
			result = emptynode_226807;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parseobject_243680)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC25;
{	result = 0;
	result = newnodep_241266(((NU8) 133), (&(*p)));
	gettok_241243(p);
	{
		NIM_BOOL LOC3;
		Tnode225809* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC3)) goto LA4;
		LOC3 = validind_244703(p);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = parsepragma_243130(p);
		addson_227819(result, LOC7);
	}
	goto LA1;
	LA5: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA1: ;
	{
		NIM_BOOL LOC11;
		Tnode225809* a;
		Tnode225809* 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_241266(((NU8) 77), (&(*p)));
		gettok_241243(p);
		LOC15 = 0;
		LOC15 = parsetypedesc_241774(p);
		addson_227819(a, LOC15);
		addson_227819(result, a);
	}
	goto LA9;
	LA13: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA9: ;
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA19;
		skipcomment_241258(p, result);
	}
	LA19: ;
	{
		if (!!(((*p).currind < (*p).tok.indent))) goto LA23;
		addson_227819(result, emptynode_226807);
		goto BeforeRet;
	}
	LA23: ;
	LOC25 = 0;
	LOC25 = parseobjectpart_244905(p);
	addson_227819(result, LOC25);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsetypeclassparam_245061)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	{
		Tnode225809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 66))) goto LA3;
		result = newnodep_241266(((NU8) 143), (&(*p)));
		gettok_241243(p);
		LOC5 = 0;
		LOC5 = parsesymbol_241367(p, NIM_FALSE);
		addson_227819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = parsesymbol_241367(p, NIM_FALSE);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsetypeclass_243687)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* args;
	Tnode225809* LOC1;
	result = 0;
	result = newnodep_241266(((NU8) 136), (&(*p)));
	gettok_241243(p);
	args = newnodep_241266(((NU8) 152), (&(*p)));
	addson_227819(result, args);
	LOC1 = 0;
	LOC1 = parsetypeclassparam_245061(p);
	addson_227819(args, LOC1);
	{
		while (1) {
			Tnode225809* LOC4;
			if (!((*p).tok.toktype == ((NU8) 105))) goto LA3;
			gettok_241243(p);
			LOC4 = 0;
			LOC4 = parsetypeclassparam_245061(p);
			addson_227819(args, LOC4);
		} LA3: ;
	}
	{
		NIM_BOOL LOC7;
		Tnode225809* LOC11;
		LOC7 = 0;
		LOC7 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC7)) goto LA8;
		LOC7 = validind_244703(p);
		LA8: ;
		if (!LOC7) goto LA9;
		LOC11 = 0;
		LOC11 = parsepragma_243130(p);
		addson_227819(result, LOC11);
	}
	goto LA5;
	LA9: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		Tnode225809* 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_241266(((NU8) 77), (&(*p)));
		gettok_241243(p);
		{
			while (1) {
				Tnode225809* LOC21;
				LOC21 = 0;
				LOC21 = parsetypedesc_241774(p);
				addson_227819(a, LOC21);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA24;
					goto LA19;
				}
				LA24: ;
				gettok_241243(p);
			}
		} LA19: ;
		addson_227819(result, a);
	}
	goto LA13;
	LA17: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA13: ;
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA29;
		skipcomment_241258(p, result);
	}
	LA29: ;
	{
		if (!!(((*p).currind < (*p).tok.indent))) goto LA33;
		addson_227819(result, emptynode_226807);
	}
	goto LA31;
	LA33: ;
	{
		Tnode225809* LOC36;
		LOC36 = 0;
		LOC36 = parsestmt_241767(p);
		addson_227819(result, LOC36);
	}
	LA31: ;
	return result;
}

N_NIMCALL(void, parsesymbollist_243579)(Tparser241205* p, Tnode225809* result, NIM_BOOL allownil) {
	{
		while (1) {
			Tnode225809* s;
			s = parsesymbol_241367(p, allownil);
			{
				if (!((*s).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_227819(result, s);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_241243(p);
			optind_241344(p, s);
		}
	} LA1: ;
}

N_NIMCALL(Tnode225809*, parsetypedesckaux_243617)(Tparser241205* p, NU8 kind, NU8 mode) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		Tnode225809* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isoperator_241237((&(*p).tok));
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = isexprstart_243569((&(*p)));
		LA5: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = primary_243014(p, mode);
		addson_227819(result, LOC8);
	}
	LA6: ;
	{
		NIM_BOOL LOC11;
		NU8 nodekind;
		Tnode225809* 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_241243(p);
		list = newnodep_241266(nodekind, (&(*p)));
		addson_227819(result, list);
		parsesymbollist_243579(p, list, NIM_TRUE);
	}
	LA13: ;
	return result;
}

N_NIMCALL(Tnode225809*, newintnodep_241273)(NU8 kind, NI64 intval, Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, p);
	(*result).kindU.S1.intval = intval;
	return result;
}

N_NIMCALL(void, setbaseflags_241360)(Tnode225809* 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(Tnode225809*, newfloatnodep_241281)(NU8 kind, NF floatval, Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, p);
	(*result).kindU.S2.floatval = floatval;
	return result;
}

N_NIMCALL(Tnode225809*, exprcoloneqexprlist_242442)(Tparser241205* p, NU8 kind, NU8 endtok) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	exprcoloneqexprlistaux_242187(p, endtok, result);
	return result;
}

N_NIMCALL(void, semistmtlist_242599)(Tparser241205* p, Tnode225809* result) {
	Tnode225809* LOC1;
	(*p).insemistmtlist += ((NI) 1);
	LOC1 = 0;
	LOC1 = complexorsimplestmt_242584(p);
	add_226165(result, LOC1);
	{
		while (1) {
			Tnode225809* LOC4;
			if (!((*p).tok.toktype == ((NU8) 106))) goto LA3;
			gettok_241243(p);
			optind_241344(p, result);
			LOC4 = 0;
			LOC4 = complexorsimplestmt_242584(p);
			add_226165(result, LOC4);
		} LA3: ;
	}
	(*p).insemistmtlist -= ((NI) 1);
	(*result).kind = ((NU8) 126);
}

N_NIMCALL(Tnode225809*, parsepar_242646)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 37), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		if (!((TMP1365[(*p).tok.toktype/8] &(1<<((*p).tok.toktype%8)))!=0)) goto LA3;
		semistmtlist_242599(p, result);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*p).tok.toktype == ((NU8) 106))) goto LA6;
		gettok_241243(p);
		optind_241344(p, result);
		semistmtlist_242599(p, result);
	}
	goto LA1;
	LA6: ;
	{
		Tnode225809* LOC11;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA9;
		LOC11 = 0;
		LOC11 = parsestmtpragma_241390(p);
		add_226165(result, LOC11);
	}
	goto LA1;
	LA9: ;
	{
		Tnode225809* a_242690;
		if (!!(((*p).tok.toktype == ((NU8) 94)))) goto LA13;
		a_242690 = simpleexpr_242591(p, ((NU8) 0));
		{
			Tnode225809* b;
			Tnode225809* asgn;
			if (!((*p).tok.toktype == ((NU8) 109))) goto LA17;
			gettok_241243(p);
			optind_241344(p, result);
			b = parseexpr_241760(p);
			asgn = newnodei_227407(((NU8) 73), (*a_242690).info, ((NI) 2));
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.sons->data[((NI) 0)]), a_242690);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.sons->data[((NI) 1)]), b);
			add_226165(result, asgn);
			{
				if (!((*p).tok.toktype == ((NU8) 106))) goto LA21;
				semistmtlist_242599(p, result);
			}
			LA21: ;
		}
		goto LA15;
		LA17: ;
		{
			if (!((*p).tok.toktype == ((NU8) 106))) goto LA24;
			add_226165(result, a_242690);
			semistmtlist_242599(p, result);
		}
		goto LA15;
		LA24: ;
		{
			a_242690 = colonorequals_242065(p, a_242690);
			add_226165(result, a_242690);
			{
				if (!((*p).tok.toktype == ((NU8) 105))) goto LA29;
				gettok_241243(p);
				skipcomment_241258(p, a_242690);
				{
					while (1) {
						NIM_BOOL LOC33;
						Tnode225809* 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_242095(p);
						addson_227819(result, a);
						{
							if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA37;
							goto LA31;
						}
						LA37: ;
						gettok_241243(p);
						skipcomment_241258(p, a);
					} LA32: ;
				} LA31: ;
			}
			LA29: ;
		}
		LA15: ;
	}
	goto LA1;
	LA13: ;
	LA1: ;
	optpar_241337(p);
	eat_241322(p, ((NU8) 94));
	return result;
}

N_NIMCALL(Tnode225809*, setortableconstr_242455)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 39), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		gettok_241243(p);
		(*result).kind = ((NU8) 54);
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				Tnode225809* a;
				if (!!(((*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 1)))) goto LA7;
				a = exprcoloneqexpr_242095(p);
				{
					if (!((*a).kind == ((NU8) 34))) goto LA10;
					(*result).kind = ((NU8) 54);
				}
				LA10: ;
				addson_227819(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA14;
					goto LA6;
				}
				LA14: ;
				gettok_241243(p);
				skipcomment_241258(p, a);
			} LA7: ;
		} LA6: ;
	}
	LA1: ;
	optpar_241337(p);
	eat_241322(p, ((NU8) 98));
	return result;
}

N_NIMCALL(Tnode225809*, parsecast_242512)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	result = 0;
	result = newnodep_241266(((NU8) 61), (&(*p)));
	gettok_241243(p);
	eat_241322(p, ((NU8) 95));
	optind_241344(p, result);
	LOC1 = 0;
	LOC1 = parsetypedesc_241774(p);
	addson_227819(result, LOC1);
	optpar_241337(p);
	eat_241322(p, ((NU8) 96));
	eat_241322(p, ((NU8) 93));
	optind_241344(p, result);
	LOC2 = 0;
	LOC2 = parseexpr_241760(p);
	addson_227819(result, LOC2);
	optpar_241337(p);
	eat_241322(p, ((NU8) 94));
	return result;
}

N_NIMCALL(Tnode225809*, identorliteral_242775)(Tparser241205* p, NU8 mode) {
	Tnode225809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 64):
	case ((NU8) 3):
	{
		result = newidentnodep_241297((*p).tok.ident, (&(*p)));
		gettok_241243(p);
		result = parsegstrlit_242563(p, result);
	}
	break;
	case ((NU8) 114):
	{
		result = parsesymbol_241367(p, NIM_FALSE);
	}
	break;
	case ((NU8) 73):
	{
		result = newintnodep_241273(((NU8) 6), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 74):
	{
		result = newintnodep_241273(((NU8) 7), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 75):
	{
		result = newintnodep_241273(((NU8) 8), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 76):
	{
		result = newintnodep_241273(((NU8) 9), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 77):
	{
		result = newintnodep_241273(((NU8) 10), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 78):
	{
		result = newintnodep_241273(((NU8) 11), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 79):
	{
		result = newintnodep_241273(((NU8) 12), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 80):
	{
		result = newintnodep_241273(((NU8) 13), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 81):
	{
		result = newintnodep_241273(((NU8) 14), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 82):
	{
		result = newintnodep_241273(((NU8) 15), (*p).tok.inumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 83):
	{
		result = newfloatnodep_241281(((NU8) 16), (*p).tok.fnumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 84):
	{
		result = newfloatnodep_241281(((NU8) 17), (*p).tok.fnumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 85):
	{
		result = newfloatnodep_241281(((NU8) 18), (*p).tok.fnumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 86):
	{
		result = newfloatnodep_241281(((NU8) 19), (*p).tok.fnumber, (&(*p)));
		setbaseflags_241360(result, (*p).tok.base);
		gettok_241243(p);
	}
	break;
	case ((NU8) 87):
	{
		result = newstrnodep_241289(((NU8) 20), (*p).tok.literal, (&(*p)));
		gettok_241243(p);
	}
	break;
	case ((NU8) 88):
	{
		result = newstrnodep_241289(((NU8) 21), (*p).tok.literal, (&(*p)));
		gettok_241243(p);
	}
	break;
	case ((NU8) 89):
	{
		result = newstrnodep_241289(((NU8) 22), (*p).tok.literal, (&(*p)));
		gettok_241243(p);
	}
	break;
	case ((NU8) 92):
	{
		result = newintnodep_241273(((NU8) 5), ((NI64) (((NU8)((*p).tok.literal->data[((NI) 0)])))), (&(*p)));
		gettok_241243(p);
	}
	break;
	case ((NU8) 46):
	{
		result = newnodep_241266(((NU8) 23), (&(*p)));
		gettok_241243(p);
	}
	break;
	case ((NU8) 93):
	{
		{
			if (!((6 &(1<<((mode)&7)))!=0)) goto LA25;
			result = exprcoloneqexprlist_242442(p, ((NU8) 37), ((NU8) 94));
		}
		goto LA23;
		LA25: ;
		{
			result = parsepar_242646(p);
		}
		LA23: ;
	}
	break;
	case ((NU8) 97):
	{
		result = setortableconstr_242455(p);
	}
	break;
	case ((NU8) 95):
	{
		result = exprcoloneqexprlist_242442(p, ((NU8) 41), ((NU8) 96));
	}
	break;
	case ((NU8) 12):
	{
		result = parsecast_242512(p);
	}
	break;
	default:
	{
		parmessage_241459((&(*p)), ((NU16) 62), (&(*p).tok));
		gettok_241243(p);
		result = emptynode_226807;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, primary_243014)(Tparser241205* p, NU8 mode) {
	Tnode225809* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL issigil;
		Tnode225809* a;
		LOC3 = 0;
		LOC3 = isoperator_241237((&(*p).tok));
		if (!LOC3) goto LA4;
		issigil = issigillike_241797((&(*p).tok));
		result = newnodep_241266(((NU8) 30), (&(*p)));
		a = newidentnodep_241297((*p).tok.ident, (&(*p)));
		addson_227819(result, a);
		gettok_241243(p);
		optind_241344(p, a);
		{
			NI baseind;
			Tnode225809* LOC10;
			if (!issigil) goto LA8;
			baseind = (*p).lex.currlineindent;
			LOC10 = 0;
			LOC10 = primary_243014(p, ((NU8) 3));
			addson_227819(result, LOC10);
			result = primarysuffix_242829(p, result, baseind);
		}
		goto LA6;
		LA8: ;
		{
			Tnode225809* LOC12;
			LOC12 = 0;
			LOC12 = primary_243014(p, ((NU8) 0));
			addson_227819(result, LOC12);
		}
		LA6: ;
		goto BeforeRet;
	}
	LA4: ;
	switch ((*p).tok.toktype) {
	case ((NU8) 63):
	{
		result = parsetuple_243335(p, (mode == ((NU8) 2)));
	}
	break;
	case ((NU8) 53):
	{
		result = parseprocexpr_243533(p, !(((6 &(1<<((mode)&7)))!=0)));
	}
	break;
	case ((NU8) 40):
	{
		result = parseprocexpr_243533(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_243673(p);
		}
		goto LA22;
		LA24: ;
		{
			result = newnodep_241266(((NU8) 150), (&(*p)));
			gettok_241243(p);
		}
		LA22: ;
	}
	break;
	case ((NU8) 49):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA30;
			result = parseobject_243680(p);
		}
		goto LA28;
		LA30: ;
		{
			result = newnodep_241266(((NU8) 133), (&(*p)));
			gettok_241243(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_243687(p);
			{
				if (!wasgeneric) goto LA40;
				(*result).flags |= ((NU16)1)<<((((NU8) 1))%(sizeof(NU16)*8));
			}
			LA40: ;
		}
		goto LA34;
		LA36: ;
		{
			parmessage_241459((&(*p)), ((NU16) 12), (&(*p).tok));
		}
		LA34: ;
	}
	break;
	case ((NU8) 60):
	{
		Tlineinfo190352 info;
		Tnode225809* next;
		info = parlineinfo_241316((&(*p)));
		gettoknoind_241602(p);
		next = primary_243014(p, ((NU8) 0));
		{
			NIM_BOOL LOC46;
			NI LOC48;
			Tnodeseq225803* LOC51;
			TY243880 LOC52;
			LOC46 = 0;
			LOC46 = ((*next).kind == ((NU8) 41));
			if (!(LOC46)) goto LA47;
			LOC48 = 0;
			LOC48 = sonslen_228387(next);
			LOC46 = (LOC48 == ((NI) 1));
			LA47: ;
			if (!LOC46) goto LA49;
			LOC51 = 0;
			LOC51 = (Tnodeseq225803*) newSeq((&NTI225803), 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_227607(((NU8) 137), info, LOC51, NIM_NIL);
		}
		goto LA44;
		LA49: ;
		{
			Tnodeseq225803* LOC54;
			TY243880 LOC55;
			LOC54 = 0;
			LOC54 = (Tnodeseq225803*) newSeq((&NTI225803), 1);
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = next;
			asgnRefNoCycle((void**) (&LOC54->data[0]), LOC55[0]);
			result = newnode_227607(((NU8) 62), info, LOC54, NIM_NIL);
		}
		LA44: ;
	}
	break;
	case ((NU8) 8):
	{
		Tnode225809* LOC57;
		result = newnodep_241266(((NU8) 55), (&(*p)));
		gettok_241243(p);
		optind_241344(p, result);
		LOC57 = 0;
		LOC57 = primary_243014(p, ((NU8) 0));
		addson_227819(result, LOC57);
	}
	break;
	case ((NU8) 66):
	{
		result = parsetypedesckaux_243617(p, ((NU8) 143), mode);
	}
	break;
	case ((NU8) 56):
	{
		result = parsetypedesckaux_243617(p, ((NU8) 141), mode);
	}
	break;
	case ((NU8) 54):
	{
		result = parsetypedesckaux_243617(p, ((NU8) 142), mode);
	}
	break;
	case ((NU8) 19):
	{
		result = parsetypedesckaux_243617(p, ((NU8) 146), mode);
	}
	break;
	default:
	{
		NI baseind;
		baseind = (*p).lex.currlineindent;
		result = identorliteral_242775(p, mode);
		{
			if (!!((mode == ((NU8) 3)))) goto LA65;
			result = primarysuffix_242829(p, result, baseind);
		}
		LA65: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, getprecedence_241835)(Ttoken216181* 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_241900)(Tparser241205* 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_241250(p, ((NU16) 241), ((NimStringDesc*) &TMP1366));
		}
		LA9: ;
	}
	LA7: ;
	return result;
}

static N_INLINE(void, checkbinary_241921)(Tparser241205* 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_216345((&(*p).tok));
			LOC14 = 0;
			LOC14 = nsuFormatSingleElem(((NimStringDesc*) &TMP1367), LOC13);
			parmessage_241250(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_241250(p, ((NU16) 4), ((NimStringDesc*) &TMP1368));
		}
		goto LA7;
		LA16: ;
		LA7: ;
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isrightassociative_241816)(Ttoken216181* 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(Tnode225809*, parseoperators_243031)(Tparser241205* p, Tnode225809* headnode, NI limit, NU8 mode) {
	Tnode225809* result;
	NI opprec;
	NU8 modeb;
	result = 0;
	result = headnode;
	opprec = getprecedence_241835((&(*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;
			Tnode225809* a;
			Tnode225809* opnode;
			Tnode225809* 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_241900((&(*p)));
			LOC8 = !(LOC12);
			LA11: ;
			if (!LOC8) goto LA7;
			checkbinary_241921((&(*p)));
			LOC13 = 0;
			LOC13 = isrightassociative_241816((&(*p).tok));
			leftassoc = (NI)(((NI) 1) - ((NI) (LOC13)));
			a = newnodep_241266(((NU8) 29), (&(*p)));
			opnode = newidentnodep_241297((*p).tok.ident, (&(*p)));
			gettok_241243(p);
			optind_241344(p, a);
			b = simpleexpraux_243022(p, (NI)(opprec + leftassoc), modeb);
			addson_227819(a, opnode);
			addson_227819(a, result);
			addson_227819(a, b);
			result = a;
			opprec = getprecedence_241835((&(*p).tok), (*p).strongspaces);
		} LA7: ;
	}
	return result;
}

N_NIMCALL(Tnode225809*, simpleexpraux_243022)(Tparser241205* p, NI limit, NU8 mode) {
	Tnode225809* result;
	result = 0;
	result = primary_243014(p, mode);
	result = parseoperators_243031(p, result, limit, mode);
	return result;
}

N_NIMCALL(Tnode225809*, simpleexpr_242591)(Tparser241205* p, NU8 mode) {
	Tnode225809* result;
	result = 0;
	result = simpleexpraux_243022(p, ((NI) -1), mode);
	return result;
}

N_NIMCALL(Tnode225809*, makecall_243945)(Tnode225809* n) {
	Tnode225809* 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_227351(((NU8) 27), (*n).info);
		add_226165(result, n);
	}
	LA1: ;
	return result;
}

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

N_NIMCALL(Tnode225809*, parsemacrocolon_242821)(Tparser241205* p, Tnode225809* x) {
	Tnode225809* result;
	result = 0;
	result = x;
	{
		NIM_BOOL LOC3;
		Tnode225809* 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_243945(result);
		gettok_241243(p);
		skipcomment_241258(p, result);
		stmtlist = newnodep_241266(((NU8) 115), (&(*p)));
		{
			Tnode225809* 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_241767(p);
			add_226165(stmtlist, body);
		}
		LA9: ;
		{
			while (1) {
				Tnode225809* b;
				Tnode225809* LOC19;
				if (!((*p).tok.indent == (*p).currind)) goto LA12;
				b = 0;
				switch ((*p).tok.toktype) {
				case ((NU8) 50):
				{
					b = newnodep_241266(((NU8) 85), (&(*p)));
					exprlist_242107(p, ((NU8) 107), b);
				}
				break;
				case ((NU8) 22):
				{
					Tnode225809* LOC15;
					b = newnodep_241266(((NU8) 86), (&(*p)));
					gettok_241243(p);
					optind_241344(p, b);
					LOC15 = 0;
					LOC15 = parseexpr_241760(p);
					addson_227819(b, LOC15);
				}
				break;
				case ((NU8) 26):
				{
					b = newnodep_241266(((NU8) 87), (&(*p)));
					exprlist_242107(p, ((NU8) 107), b);
				}
				break;
				case ((NU8) 23):
				{
					b = newnodep_241266(((NU8) 88), (&(*p)));
					gettok_241243(p);
				}
				break;
				default:
				{
					goto LA11;
				}
				break;
				}
				eat_241322(p, ((NU8) 107));
				LOC19 = 0;
				LOC19 = parsestmt_241767(p);
				addson_227819(b, LOC19);
				addson_227819(stmtlist, b);
				{
					if (!((*b).kind == ((NU8) 88))) goto LA22;
					goto LA11;
				}
				LA22: ;
			} LA12: ;
		} LA11: ;
		{
			NIM_BOOL LOC26;
			NI LOC27;
			Tnode225809* LOC29;
			Tnode225809* LOC32;
			LOC26 = 0;
			LOC27 = 0;
			LOC27 = len_226098(stmtlist);
			LOC26 = (LOC27 == ((NI) 1));
			if (!(LOC26)) goto LA28;
			LOC29 = 0;
			LOC29 = HEX5BHEX5D_226244(stmtlist, ((NI) 0));
			LOC26 = ((*LOC29).kind == ((NU8) 115));
			LA28: ;
			if (!LOC26) goto LA30;
			LOC32 = 0;
			LOC32 = HEX5BHEX5D_226244(stmtlist, ((NI) 0));
			add_226165(result, LOC32);
		}
		goto LA24;
		LA30: ;
		{
			add_226165(result, stmtlist);
		}
		LA24: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode225809*, parseexprstmt_244031)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
{	result = 0;
	a = simpleexpr_242591(p, ((NU8) 0));
	{
		Tnode225809* b;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA3;
		gettok_241243(p);
		optind_241344(p, result);
		b = parseexpr_241760(p);
		result = newnodei_227351(((NU8) 73), (*a).info);
		addson_227819(result, a);
		addson_227819(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) {
					Tnode225809* e;
					gettok_241243(p);
					optind_241344(p, result);
					e = parseexpr_241760(p);
					addson_227819(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_243569((&(*p)));
			LA22: ;
			if (!LOC21) goto LA23;
			{
				if (!((*a).kind == ((NU8) 26))) goto LA27;
				result = a;
			}
			goto LA25;
			LA27: ;
			{
				Tnodeseq225803* LOC30;
				TY243880 LOC31;
				LOC30 = 0;
				LOC30 = (Tnodeseq225803*) newSeq((&NTI225803), 1);
				memset((void*)LOC31, 0, sizeof(LOC31));
				LOC31[0] = a;
				asgnRefNoCycle((void**) (&LOC30->data[0]), LOC31[0]);
				result = newnode_227607(((NU8) 26), (*a).info, LOC30, NIM_NIL);
			}
			LA25: ;
			{
				while (1) {
					Tnode225809* e;
					e = parseexpr_241760(p);
					addson_227819(result, e);
					{
						if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA36;
						goto LA32;
					}
					LA36: ;
					gettok_241243(p);
					optind_241344(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_243945(result);
			parsedoblocks_241781(p, result);
			goto BeforeRet;
		}
		LA43: ;
		result = parsemacrocolon_242821(p, result);
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, simplestmt_245295)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 57):
	{
		result = parsereturnorraise_244349(p, ((NU8) 109));
	}
	break;
	case ((NU8) 55):
	{
		result = parsereturnorraise_244349(p, ((NU8) 108));
	}
	break;
	case ((NU8) 72):
	{
		result = parsereturnorraise_244349(p, ((NU8) 104));
	}
	break;
	case ((NU8) 18):
	{
		result = parsereturnorraise_244349(p, ((NU8) 114));
	}
	break;
	case ((NU8) 10):
	{
		result = parsereturnorraise_244349(p, ((NU8) 110));
	}
	break;
	case ((NU8) 15):
	{
		result = parsereturnorraise_244349(p, ((NU8) 111));
	}
	break;
	case ((NU8) 101):
	{
		result = parsestmtpragma_241390(p);
	}
	break;
	case ((NU8) 34):
	{
		result = parseimport_244207(p, ((NU8) 116));
	}
	break;
	case ((NU8) 27):
	{
		result = parseimport_244207(p, ((NU8) 118));
	}
	break;
	case ((NU8) 30):
	{
		result = parsefromstmt_244312(p);
	}
	break;
	case ((NU8) 36):
	{
		result = parseincludestmt_244275(p);
	}
	break;
	case ((NU8) 113):
	{
		result = newcommentstmt_244763(p);
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = isexprstart_243569((&(*p)));
			if (!LOC16) goto LA17;
			result = parseexprstmt_244031(p);
		}
		goto LA14;
		LA17: ;
		{
			result = emptynode_226807;
		}
		LA14: ;
	}
	break;
	}
	{
		if (!!(((*result).kind == ((NU8) 1) || (*result).kind == ((NU8) 125)))) goto LA22;
		skipcomment_241258(p, result);
	}
	LA22: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsestmt_241767)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	{
		NI oldind_245344;
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		result = newnodep_241266(((NU8) 115), (&(*p)));
		oldind_245344 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		{
			while (1) {
				Tnode225809* a;
				{
					if (!((*p).tok.indent == (*p).currind)) goto LA9;
				}
				goto LA7;
				LA9: ;
				{
					if (!((*p).tok.toktype == ((NU8) 106))) goto LA12;
					gettok_241243(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_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
					}
					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_242584(p);
				{
					if (!!(((*a).kind == ((NU8) 1)))) goto LA34;
					addson_227819(result, a);
				}
				goto LA32;
				LA34: ;
				{
					parmessage_241459((&(*p)), ((NU16) 62), (&(*p).tok));
					gettok_241243(p);
				}
				LA32: ;
			}
		} LA5: ;
		(*p).currind = oldind_245344;
	}
	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_241250((&(*p)), ((NU16) 157), ((NimStringDesc*) &TMP1234));
			result = emptynode_226807;
		}
		break;
		default:
		{
			{
				if (!(((NI) 0) < (*p).insemistmtlist)) goto LA42;
				result = simplestmt_245295(p);
				{
					if (!((*result).kind == ((NU8) 1))) goto LA46;
					parmessage_241459((&(*p)), ((NU16) 62), (&(*p).tok));
				}
				LA46: ;
			}
			goto LA40;
			LA42: ;
			{
				result = newnodep_241266(((NU8) 115), (&(*p)));
				{
					while (1) {
						Tnode225809* a;
						{
							if (!(((NI) 0) <= (*p).tok.indent)) goto LA53;
							parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
						}
						LA53: ;
						a = simplestmt_245295(p);
						{
							if (!((*a).kind == ((NU8) 1))) goto LA57;
							parmessage_241459((&(*p)), ((NU16) 62), (&(*p).tok));
						}
						LA57: ;
						add_226165(result, a);
						{
							if (!!(((*p).tok.toktype == ((NU8) 106)))) goto LA61;
							goto LA49;
						}
						LA61: ;
						gettok_241243(p);
					}
				} LA49: ;
			}
			LA40: ;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsecase_241383)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* b;
	NIM_BOOL inelif;
	NIM_BOOL wasindented;
	Tnode225809* LOC1;
	NI oldind;
	result = 0;
	b = 0;
	inelif = NIM_FALSE;
	wasindented = NIM_FALSE;
	result = newnodep_241266(((NU8) 97), (&(*p)));
	gettok_241243(p);
	LOC1 = 0;
	LOC1 = parseexpr_241760(p);
	addson_227819(result, LOC1);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA4;
		gettok_241243(p);
	}
	LA4: ;
	skipcomment_241258(p, result);
	oldind = (*p).currind;
	{
		if (!((*p).currind < (*p).tok.indent)) goto LA8;
		(*p).currind = (*p).tok.indent;
		wasindented = NIM_TRUE;
	}
	LA8: ;
	{
		while (1) {
			Tnode225809* 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_241266(((NU8) 85), (&(*p)));
				exprlist_242107(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 22):
			{
				Tnode225809* LOC18;
				inelif = NIM_TRUE;
				b = newnodep_241266(((NU8) 86), (&(*p)));
				gettok_241243(p);
				optind_241344(p, b);
				LOC18 = 0;
				LOC18 = parseexpr_241760(p);
				addson_227819(b, LOC18);
			}
			break;
			case ((NU8) 23):
			{
				b = newnodep_241266(((NU8) 88), (&(*p)));
				gettok_241243(p);
			}
			break;
			default:
			{
				goto LA10;
			}
			break;
			}
			colcom_241951(p, b);
			LOC21 = 0;
			LOC21 = parsestmt_241767(p);
			addson_227819(b, LOC21);
			addson_227819(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(Tnode225809*, parsetry_241375)(Tparser241205* p, NIM_BOOL isexpr) {
	Tnode225809* result;
	Tnode225809* LOC1;
	Tnode225809* b;
	result = 0;
	result = newnodep_241266(((NU8) 106), (&(*p)));
	gettok_241243(p);
	colcom_241951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_241767(p);
	addson_227819(result, LOC1);
	b = NIM_NIL;
	{
		while (1) {
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			Tnode225809* 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_241266(((NU8) 87), (&(*p)));
				exprlist_242107(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 28):
			{
				b = newnodep_241266(((NU8) 107), (&(*p)));
				gettok_241243(p);
			}
			break;
			default:
			{
				goto LA2;
			}
			break;
			}
			colcom_241951(p, b);
			LOC11 = 0;
			LOC11 = parsestmt_241767(p);
			addson_227819(b, LOC11);
			addson_227819(result, b);
			{
				if (!((*b).kind == ((NU8) 107))) goto LA14;
				goto LA2;
			}
			LA14: ;
		} LA3: ;
	} LA2: ;
	{
		if (!(b == NIM_NIL)) goto LA18;
		parmessage_241250((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1369));
	}
	LA18: ;
	return result;
}

N_NIMCALL(Tnode225809*, parseexpr_241760)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 33):
	{
		result = parseifexpr_243100(p, ((NU8) 48));
	}
	break;
	case ((NU8) 67):
	{
		result = parseifexpr_243100(p, ((NU8) 93));
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_241383(p);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetry_241375(p, NIM_TRUE);
	}
	break;
	default:
	{
		result = simpleexpr_242591(p, ((NU8) 0));
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, parseiforwhen_244370)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	{
		while (1) {
			Tnode225809* branch;
			Tnode225809* LOC3;
			Tnode225809* LOC4;
			gettok_241243(p);
			branch = newnodep_241266(((NU8) 86), (&(*p)));
			optind_241344(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_241760(p);
			addson_227819(branch, LOC3);
			colcom_241951(p, branch);
			LOC4 = 0;
			LOC4 = parsestmt_241767(p);
			addson_227819(branch, LOC4);
			skipcomment_241258(p, branch);
			addson_227819(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;
		Tnode225809* branch;
		Tnode225809* 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_241266(((NU8) 88), (&(*p)));
		eat_241322(p, ((NU8) 23));
		colcom_241951(p, branch);
		LOC21 = 0;
		LOC21 = parsestmt_241767(p);
		addson_227819(branch, LOC21);
		addson_227819(result, branch);
	}
	LA19: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsewhile_244409)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	result = 0;
	result = newnodep_241266(((NU8) 96), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	LOC1 = 0;
	LOC1 = parseexpr_241760(p);
	addson_227819(result, LOC1);
	colcom_241951(p, result);
	LOC2 = 0;
	LOC2 = parsestmt_241767(p);
	addson_227819(result, LOC2);
	return result;
}

N_NIMCALL(Tnode225809*, parseexceptblock_244503)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	Tnode225809* LOC1;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	gettok_241243(p);
	colcom_241951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_241767(p);
	addson_227819(result, LOC1);
	return result;
}

N_NIMCALL(Tnode225809*, parsefor_244515)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
	Tnode225809* LOC3;
	Tnode225809* LOC4;
	result = 0;
	result = newnodep_241266(((NU8) 94), (&(*p)));
	gettoknoind_241602(p);
	a = identwithpragma_243219(p);
	addson_227819(result, a);
	{
		while (1) {
			if (!((*p).tok.toktype == ((NU8) 105))) goto LA2;
			gettok_241243(p);
			optind_241344(p, a);
			a = identwithpragma_243219(p);
			addson_227819(result, a);
		} LA2: ;
	}
	eat_241322(p, ((NU8) 35));
	LOC3 = 0;
	LOC3 = parseexpr_241760(p);
	addson_227819(result, LOC3);
	colcom_241951(p, result);
	LOC4 = 0;
	LOC4 = parsestmt_241767(p);
	addson_227819(result, LOC4);
	return result;
}

N_NIMCALL(Tnode225809*, parseblock_244543)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC7;
	result = 0;
	result = newnodep_241266(((NU8) 112), (&(*p)));
	gettoknoind_241602(p);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		addson_227819(result, emptynode_226807);
	}
	goto LA1;
	LA3: ;
	{
		Tnode225809* LOC6;
		LOC6 = 0;
		LOC6 = parsesymbol_241367(p, NIM_FALSE);
		addson_227819(result, LOC6);
	}
	LA1: ;
	colcom_241951(p, result);
	LOC7 = 0;
	LOC7 = parsestmt_241767(p);
	addson_227819(result, LOC7);
	return result;
}

N_NIMCALL(Tnode225809*, parsestaticordefer_244563)(Tparser241205* p, NU8 k) {
	Tnode225809* result;
	Tnode225809* LOC1;
	result = 0;
	result = newnodep_241266(k, (&(*p)));
	gettok_241243(p);
	colcom_241951(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_241767(p);
	addson_227819(result, LOC1);
	return result;
}

N_NIMCALL(Tnode225809*, parseasm_244575)(Tparser241205* p) {
	Tnode225809* result;
{	result = 0;
	result = newnodep_241266(((NU8) 89), (&(*p)));
	gettoknoind_241602(p);
	{
		Tnode225809* LOC5;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA3;
		LOC5 = 0;
		LOC5 = parsepragma_243130(p);
		addson_227819(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA1: ;
	switch ((*p).tok.toktype) {
	case ((NU8) 87):
	{
		Tnode225809* LOC8;
		LOC8 = 0;
		LOC8 = newstrnodep_241289(((NU8) 20), (*p).tok.literal, (&(*p)));
		addson_227819(result, LOC8);
	}
	break;
	case ((NU8) 88):
	{
		Tnode225809* LOC10;
		LOC10 = 0;
		LOC10 = newstrnodep_241289(((NU8) 21), (*p).tok.literal, (&(*p)));
		addson_227819(result, LOC10);
	}
	break;
	case ((NU8) 89):
	{
		Tnode225809* LOC12;
		LOC12 = 0;
		LOC12 = newstrnodep_241289(((NU8) 22), (*p).tok.literal, (&(*p)));
		addson_227819(result, LOC12);
	}
	break;
	default:
	{
		parmessage_241250((&(*p)), ((NU16) 6), ((NimStringDesc*) &TMP1234));
		addson_227819(result, emptynode_226807);
		goto BeforeRet;
	}
	break;
	}
	gettok_241243(p);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsepattern_244692)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	eat_241322(p, ((NU8) 97));
	result = parsestmt_241767(p);
	eat_241322(p, ((NU8) 98));
	return result;
}

N_NIMCALL(Tnode225809*, parsegenericparam_244595)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* a;
{	result = 0;
	a = 0;
	result = newnodep_241266(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).tok.toktype) {
			case ((NU8) 2):
			case ((NU8) 114):
			{
				a = parsesymbol_241367(p, NIM_FALSE);
				{
					if (!((*a).kind == ((NU8) 1))) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA11;
				goto LA1;
			}
			LA11: ;
			gettok_241243(p);
			optind_241344(p, a);
		}
	} LA1: ;
	{
		Tnode225809* LOC17;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA15;
		gettok_241243(p);
		optind_241344(p, result);
		LOC17 = 0;
		LOC17 = parseexpr_241760(p);
		addson_227819(result, LOC17);
	}
	goto LA13;
	LA15: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA13: ;
	{
		Tnode225809* LOC23;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA21;
		gettok_241243(p);
		optind_241344(p, result);
		LOC23 = 0;
		LOC23 = parseexpr_241760(p);
		addson_227819(result, LOC23);
	}
	goto LA19;
	LA21: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA19: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsegenericparamlist_244651)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 75), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			Tnode225809* a;
			if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA2;
			a = parsegenericparam_244595(p);
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_241243(p);
			skipcomment_241258(p, a);
		} LA2: ;
	} LA1: ;
	optpar_241337(p);
	eat_241322(p, ((NU8) 96));
	return result;
}

N_NIMCALL(void, indandcomment_241352)(Tparser241205* p, Tnode225809* n) {
	{
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		{
			if (!((*p).tok.toktype == ((NU8) 113))) goto LA7;
			rawskipcomment_241504(p, n);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		skipcomment_241258(p, n);
	}
	LA1: ;
}

N_NIMCALL(Tnode225809*, parseroutine_244714)(Tparser241205* p, NU8 kind) {
	Tnode225809* result;
	Tnode225809* LOC1;
	Tnode225809* LOC18;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	LOC1 = 0;
	LOC1 = identvis_243198(p);
	addson_227819(result, LOC1);
	{
		NIM_BOOL LOC4;
		Tnode225809* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 97));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_244703(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsepattern_244692(p);
		addson_227819(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA2: ;
	{
		NIM_BOOL LOC12;
		Tnode225809* LOC16;
		LOC12 = 0;
		LOC12 = ((*p).tok.toktype == ((NU8) 95));
		if (!(LOC12)) goto LA13;
		LOC12 = validind_244703(p);
		LA13: ;
		if (!LOC12) goto LA14;
		LOC16 = 0;
		LOC16 = parsegenericparamlist_244651(p);
		add_226165(result, LOC16);
	}
	goto LA10;
	LA14: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA10: ;
	LOC18 = 0;
	LOC18 = parseparamlist_241789(p, NIM_TRUE);
	addson_227819(result, LOC18);
	{
		NIM_BOOL LOC21;
		Tnode225809* LOC25;
		LOC21 = 0;
		LOC21 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC21)) goto LA22;
		LOC21 = validind_244703(p);
		LA22: ;
		if (!LOC21) goto LA23;
		LOC25 = 0;
		LOC25 = parsepragma_243130(p);
		addson_227819(result, LOC25);
	}
	goto LA19;
	LA23: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA19: ;
	addson_227819(result, emptynode_226807);
	{
		NIM_BOOL LOC29;
		Tnode225809* LOC33;
		LOC29 = 0;
		LOC29 = ((*p).tok.toktype == ((NU8) 109));
		if (!(LOC29)) goto LA30;
		LOC29 = validind_244703(p);
		LA30: ;
		if (!LOC29) goto LA31;
		gettok_241243(p);
		skipcomment_241258(p, result);
		LOC33 = 0;
		LOC33 = parsestmt_241767(p);
		addson_227819(result, LOC33);
	}
	goto LA27;
	LA31: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA27: ;
	indandcomment_241352(p, result);
	return result;
}

N_NIMCALL(Tnode225809*, parsesection_244783)(Tparser241205* p, NU8 kind, Tdefparser244776 defparser) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(kind, (&(*p)));
	{
		if (!!((kind == ((NU8) 98)))) goto LA3;
		gettok_241243(p);
	}
	LA3: ;
	skipcomment_241258(p, result);
	{
		NI oldind_244800;
		if (!((*p).currind < (*p).tok.indent)) goto LA7;
		oldind_244800 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		skipcomment_241258(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):
				{
					Tnode225809* a;
					a = defparser(p);
					skipcomment_241258(p, a);
					addson_227819(result, a);
				}
				break;
				case ((NU8) 113):
				{
					Tnode225809* a;
					a = newcommentstmt_244763(p);
					addson_227819(result, a);
				}
				break;
				default:
				{
					parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
					goto LA9;
				}
				break;
				}
			} LA10: ;
		} LA9: ;
		(*p).currind = oldind_244800;
		{
			NI LOC16;
			LOC16 = 0;
			LOC16 = len_226098(result);
			if (!(LOC16 == ((NI) 0))) goto LA17;
			parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
		}
		LA17: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		Tnode225809* 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_227819(result, LOC24);
	}
	goto LA5;
	LA22: ;
	{
		parmessage_241459((&(*p)), ((NU16) 20), (&(*p).tok));
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsetypedefaux_243934)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = simpleexpr_242591(p, ((NU8) 2));
	return result;
}

N_NIMCALL(Tnode225809*, parsetypedef_245154)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC1;
	result = 0;
	result = newnodep_241266(((NU8) 103), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_243219(p);
	addson_227819(result, LOC1);
	{
		NIM_BOOL LOC4;
		Tnode225809* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 95));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_244703(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsegenericparamlist_244651(p);
		addson_227819(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA2: ;
	{
		Tnode225809* LOC14;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA12;
		gettok_241243(p);
		optind_241344(p, result);
		LOC14 = 0;
		LOC14 = parsetypedefaux_243934(p);
		addson_227819(result, LOC14);
	}
	goto LA10;
	LA12: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA10: ;
	indandcomment_241352(p, result);
	return result;
}

N_NIMCALL(Tnode225809*, parseconstant_244828)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC1;
	Tnode225809* LOC8;
	result = 0;
	result = newnodep_241266(((NU8) 102), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_243219(p);
	addson_227819(result, LOC1);
	{
		Tnode225809* LOC6;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA4;
		gettok_241243(p);
		optind_241344(p, result);
		LOC6 = 0;
		LOC6 = parsetypedesc_241774(p);
		addson_227819(result, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		addson_227819(result, emptynode_226807);
	}
	LA2: ;
	eat_241322(p, ((NU8) 109));
	optind_241344(p, result);
	LOC8 = 0;
	LOC8 = parseexpr_241760(p);
	addson_227819(result, LOC8);
	indandcomment_241352(p, result);
	return result;
}

N_NIMCALL(Tnode225809*, parsevartuple_245183)(Tparser241205* p) {
	Tnode225809* result;
	Tnode225809* LOC7;
	result = 0;
	result = newnodep_241266(((NU8) 36), (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			Tnode225809* a;
			if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA2;
			a = identwithpragma_243219(p);
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_241243(p);
			skipcomment_241258(p, a);
		} LA2: ;
	} LA1: ;
	addson_227819(result, emptynode_226807);
	optpar_241337(p);
	eat_241322(p, ((NU8) 94));
	eat_241322(p, ((NU8) 109));
	optind_241344(p, result);
	LOC7 = 0;
	LOC7 = parseexpr_241760(p);
	addson_227819(result, LOC7);
	return result;
}

N_NIMCALL(Tnode225809*, parsevariable_245222)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	{
		if (!((*p).tok.toktype == ((NU8) 93))) goto LA3;
		result = parsevartuple_245183(p);
	}
	goto LA1;
	LA3: ;
	{
		result = parseidentcolonequals_243249(p, 1);
	}
	LA1: ;
	indandcomment_241352(p, result);
	return result;
}

N_NIMCALL(Tnode225809*, qualifiedident_242167)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = parsesymbol_241367(p, NIM_FALSE);
	{
		if (!((*p).tok.toktype == ((NU8) 110))) goto LA3;
		result = dotexpr_242154(p, result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsebind_245243)(Tparser241205* p, NU8 k) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(k, (&(*p)));
	gettok_241243(p);
	optind_241344(p, result);
	{
		while (1) {
			Tnode225809* a;
			a = qualifiedident_242167(p);
			addson_227819(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_241243(p);
			optind_241344(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, complexorsimplestmt_242584)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 33):
	{
		result = parseiforwhen_244370(p, ((NU8) 92));
	}
	break;
	case ((NU8) 68):
	{
		result = parsewhile_244409(p);
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_241383(p);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetry_241375(p, NIM_FALSE);
	}
	break;
	case ((NU8) 28):
	{
		result = parseexceptblock_244503(p, ((NU8) 107));
	}
	break;
	case ((NU8) 26):
	{
		result = parseexceptblock_244503(p, ((NU8) 87));
	}
	break;
	case ((NU8) 29):
	{
		result = parsefor_244515(p);
	}
	break;
	case ((NU8) 9):
	{
		result = parseblock_244543(p);
	}
	break;
	case ((NU8) 60):
	{
		result = parsestaticordefer_244563(p, ((NU8) 113));
	}
	break;
	case ((NU8) 17):
	{
		result = parsestaticordefer_244563(p, ((NU8) 105));
	}
	break;
	case ((NU8) 6):
	{
		result = parseasm_244575(p);
	}
	break;
	case ((NU8) 53):
	{
		result = parseroutine_244714(p, ((NU8) 79));
	}
	break;
	case ((NU8) 43):
	{
		result = parseroutine_244714(p, ((NU8) 80));
	}
	break;
	case ((NU8) 40):
	{
		result = parseroutine_244714(p, ((NU8) 84));
	}
	break;
	case ((NU8) 42):
	{
		result = parseroutine_244714(p, ((NU8) 82));
	}
	break;
	case ((NU8) 61):
	{
		result = parseroutine_244714(p, ((NU8) 83));
	}
	break;
	case ((NU8) 16):
	{
		result = parseroutine_244714(p, ((NU8) 81));
	}
	break;
	case ((NU8) 64):
	{
		gettok_241243(p);
		{
			Tnode225809* LOC23;
			if (!((*p).tok.toktype == ((NU8) 93))) goto LA21;
			gettok_241243(p);
			result = newnodep_241266(((NU8) 132), (&(*p)));
			LOC23 = 0;
			LOC23 = primary_243014(p, ((NU8) 1));
			addson_227819(result, LOC23);
			eat_241322(p, ((NU8) 94));
			result = parseoperators_243031(p, result, ((NI) -1), ((NU8) 0));
		}
		goto LA19;
		LA21: ;
		{
			result = parsesection_244783(p, ((NU8) 98), parsetypedef_245154);
		}
		LA19: ;
	}
	break;
	case ((NU8) 14):
	{
		result = parsesection_244783(p, ((NU8) 101), parseconstant_244828);
	}
	break;
	case ((NU8) 41):
	{
		result = parsesection_244783(p, ((NU8) 100), parsevariable_245222);
	}
	break;
	case ((NU8) 67):
	{
		result = parseiforwhen_244370(p, ((NU8) 93));
	}
	break;
	case ((NU8) 66):
	{
		result = parsesection_244783(p, ((NU8) 99), parsevariable_245222);
	}
	break;
	case ((NU8) 8):
	{
		result = parsebind_245243(p, ((NU8) 122));
	}
	break;
	case ((NU8) 44):
	{
		result = parsebind_245243(p, ((NU8) 123));
	}
	break;
	case ((NU8) 65):
	{
		result = parsebind_245243(p, ((NU8) 124));
	}
	break;
	default:
	{
		result = simplestmt_245295(p);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, parseall_241216)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = newnodep_241266(((NU8) 115), (&(*p)));
	{
		while (1) {
			Tnode225809* a;
			if (!!(((*p).tok.toktype == ((NU8) 1)))) goto LA2;
			a = complexorsimplestmt_242584(p);
			{
				if (!!(((*a).kind == ((NU8) 1)))) goto LA5;
				addson_227819(result, a);
			}
			goto LA3;
			LA5: ;
			{
				parmessage_241459((&(*p)), ((NU16) 62), (&(*p).tok));
				gettok_241243(p);
			}
			LA3: ;
			{
				if (!!(((*p).tok.indent == ((NI) 0)))) goto LA10;
				parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
			}
			LA10: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, closeparser_241223)(Tparser241205* p) {
	closelexer_216422((&(*p).lex));
}

N_NIMCALL(Tnode225809*, parsetoplevelstmt_241230)(Tparser241205* p) {
	Tnode225809* result;
	result = 0;
	result = emptynode_226807;
	{
		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_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
				}
				goto LA7;
				LA14: ;
				LA7: ;
			}
			LA5: ;
			(*p).firsttok = NIM_FALSE;
			switch ((*p).tok.toktype) {
			case ((NU8) 106):
			{
				gettok_241243(p);
				{
					if (!((*p).tok.indent <= ((NI) 0))) goto LA19;
				}
				goto LA17;
				LA19: ;
				{
					parmessage_241250((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1234));
				}
				LA17: ;
				(*p).firsttok = NIM_TRUE;
			}
			break;
			case ((NU8) 1):
			{
				goto LA1;
			}
			break;
			default:
			{
				result = complexorsimplestmt_242584(p);
				{
					if (!((*result).kind == ((NU8) 1))) goto LA26;
					parmessage_241459((&(*p)), ((NU16) 62), (&(*p).tok));
				}
				LA26: ;
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, parsestring_245506)(NimStringDesc* s, NimStringDesc* filename, NI line, Terrorhandler216183 errorhandler) {
	Tnode225809* result;
	Tllstream213204* stream;
	Tparser241205 parser;
	result = 0;
	stream = llstreamopen_213220(s);
	(*stream).lineoffset = line;
	memset((void*)(&parser), 0, sizeof(parser));
	objectInit((&parser), (&NTI241205));
	parser.lex.errorhandler.ClEnv = errorhandler.ClEnv;
	parser.lex.errorhandler.ClPrc = errorhandler.ClPrc;
	openparser_241424((&parser), filename, stream, NIM_FALSE);
	result = parseall_241216((&parser));
	closeparser_241223((&parser));
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_parserInit000)(void) {
}

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

