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

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
typedef struct Tparser228202 Tparser228202;
typedef struct Tlexer205173 Tlexer205173;
typedef struct Tbaselexer203015 Tbaselexer203015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tllstream202204 Tllstream202204;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Ttoken205169 Ttoken205169;
typedef struct Tident189012 Tident189012;
typedef struct Tnode214790 Tnode214790;
typedef struct Ttype214828 Ttype214828;
typedef struct Tsym214822 Tsym214822;
typedef struct Tnodeseq214784 Tnodeseq214784;
typedef struct Cell47505 Cell47505;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Tidobj189006 Tidobj189006;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct Tscope214816 Tscope214816;
typedef struct TY214925 TY214925;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Tlib214808 Tlib214808;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct TY214913 TY214913;
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tbaselexer203015  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream202204* 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) (Tlineinfo182337 info, NU16 msg, NimStringDesc* arg, void* ClEnv);
void* ClEnv;
} Terrorhandler205171;
struct  Tlexer205173  {
  Tbaselexer203015 Sup;
NI32 fileidx;
NI indentahead;
NI currlineindent;
NIM_BOOL strongspaces;
Terrorhandler205171 errorhandler;
};
struct  Ttoken205169  {
NU8 toktype;
NI indent;
Tident189012* ident;
NI64 inumber;
NF fnumber;
NU8 base;
NI8 strongspacea;
NI8 strongspaceb;
NimStringDesc* literal;
NI line;
NI col;
};
struct  Tparser228202  {
NI currind;
NIM_BOOL firsttok;
NIM_BOOL strongspaces;
Tlexer205173 lex;
Ttoken205169 tok;
NI inpragma;
NI insemistmtlist;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
typedef NimStringDesc* TY205163[119];
typedef NU8 TY228609[15];
struct  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
typedef Tnode214790* TY230280[1];
typedef N_NIMCALL_PTR(Tnode214790*, Tdefparser231002) (Tparser228202* p);
struct  Tllstream202204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, openparser_228322)(Tparser228202* p, NI32 fileidx, Tllstream202204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(void, inittoken_205306)(Ttoken205169* L);
N_NIMCALL(void, openlexer_205314)(Tlexer205173* lex, NI32 fileidx, Tllstream202204* inputstream);
N_NIMCALL(void, gettok_228225)(Tparser228202* p);
N_NIMCALL(void, rawgettok_208824)(Tlexer205173* L, Ttoken205169* tok);
N_NIMCALL(NI32, fileinfoidx_183016)(NimStringDesc* filename);
N_NIMCALL(Tnode214790*, newnodep_228239)(NU8 kind, Tparser228202* p);
N_NIMCALL(Tnode214790*, newnodei_216248)(NU8 kind, Tlineinfo182337 info);
N_NIMCALL(Tlineinfo182337, parlineinfo_228268)(Tparser228202* p);
static N_INLINE(Tlineinfo182337, getlineinfo_205200)(Tlexer205173* L, Ttoken205169* tok);
N_NIMCALL(Tlineinfo182337, newlineinfo_183023)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(Tnode214790*, complexorsimplestmt_229333)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseiforwhen_230722)(Tparser228202* p, NU8 kind);
N_NIMCALL(void, optind_228284)(Tparser228202* p, Tnode214790* n);
N_NIMCALL(void, skipcomment_228234)(Tparser228202* p, Tnode214790* node);
N_NIMCALL(void, rawskipcomment_228375)(Tparser228202* p, Tnode214790* node);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, parmessage_228229)(Tparser228202* p, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, lexmessagetok_205375)(Tlexer205173* L, NU16 msg, Ttoken205169* tok, NimStringDesc* arg);
N_NIMCALL(void, skipind_228276)(Tparser228202* p);
N_NIMCALL(void, addson_216807)(Tnode214790* father, Tnode214790* son);
N_NIMCALL(Tnode214790*, parseexpr_228519)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseifexpr_229658)(Tparser228202* p, NU8 kind);
N_NIMCALL(void, colcom_228825)(Tparser228202* p, Tnode214790* n);
N_NIMCALL(void, eat_228271)(Tparser228202* p, NU8 toktype);
N_NIMCALL(Tnode214790*, parsecase_228308)(Tparser228202* p);
N_NIMCALL(void, exprlist_228927)(Tparser228202* p, NU8 endtok, Tnode214790* result);
N_NIMCALL(Tnode214790*, parsestmt_228523)(Tparser228202* p);
N_NIMCALL(void, parmessage_228348)(Tparser228202* p, NU16 msg, Ttoken205169* tok);
N_NIMCALL(NimStringDesc*, prettytok_205297)(Ttoken205169* tok);
N_NIMCALL(Tnode214790*, simplestmt_231379)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsereturnorraise_230707)(Tparser228202* p, NU8 kind);
N_NIMCALL(NIM_BOOL, isexprstart_230016)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsestmtpragma_228312)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsepragma_229676)(Tparser228202* p);
N_NIMCALL(Tnode214790*, exprcoloneqexpr_228921)(Tparser228202* p);
N_NIMCALL(Tnode214790*, colonorequals_228897)(Tparser228202* p, Tnode214790* a);
N_NIMCALL(void, optpar_228280)(Tparser228202* p);
N_NIMCALL(void, add_215114)(Tnode214790* father, Tnode214790* son);
N_NIMCALL(Tnode214790*, parseimport_230601)(Tparser228202* p, NU8 kind);
N_NIMCALL(Tnode214790*, parsemodulename_230482)(Tparser228202* p, NU8 kind);
N_NIMCALL(Tnode214790*, parsefromstmt_230682)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseincludestmt_230657)(Tparser228202* p);
N_NIMCALL(Tnode214790*, newcommentstmt_230995)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseexprstmt_230395)(Tparser228202* p);
N_NIMCALL(Tnode214790*, simpleexpr_229337)(Tparser228202* p, NU8 mode);
N_NIMCALL(Tnode214790*, simpleexpraux_229607)(Tparser228202* p, NI limit, NU8 mode);
N_NIMCALL(Tnode214790*, primary_229602)(Tparser228202* p, NU8 mode);
N_NIMCALL(NIM_BOOL, isoperator_228222)(Ttoken205169* tok);
static N_INLINE(NIM_BOOL, issigillike_228541)(Ttoken205169* tok);
N_NIMCALL(Tnode214790*, newidentnodep_228258)(Tident189012* ident, Tparser228202* p);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tnode214790*, primarysuffix_229533)(Tparser228202* p, Tnode214790* r, NI baseindent);
N_NIMCALL(Tnode214790*, namedparams_229519)(Tparser228202* p, Tnode214790* callee, NU8 kind, NU8 endtok);
N_NIMCALL(void, exprcoloneqexprlistaux_228983)(Tparser228202* p, NU8 endtok, Tnode214790* result);
static N_INLINE(NI, len_215059)(Tnode214790* n);
N_NIMCALL(void, parsedoblocks_228531)(Tparser228202* p, Tnode214790* call);
N_NIMCALL(Tnode214790*, parsedoblock_229954)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseparamlist_228536)(Tparser228202* p, NIM_BOOL retcolon);
N_NIMCALL(Tnode214790*, parseidentcolonequals_229768)(Tparser228202* p, NU8 flags);
N_NIMCALL(Tnode214790*, identwithpragma_229747)(Tparser228202* p);
N_NIMCALL(Tnode214790*, identvis_229732)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsesymbol_228298)(Tparser228202* p, NIM_BOOL allownil);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, toktostr_205281)(Ttoken205169* tok);
N_NIMCALL(Tident189012*, getident_189441)(NimStringDesc* identifier);
N_NIMCALL(NIM_BOOL, iskeyword_205205)(NU8 kind);
N_NIMCALL(Tnode214790*, parsetypedesc_228527)(Tparser228202* p);
N_NIMCALL(NIM_BOOL, identeq_189450)(Tident189012* id, NimStringDesc* name);
N_NIMCALL(Tnode214790*, optpragmas_229940)(Tparser228202* p);
N_NIMCALL(Tnode214790*, newprocnode_217040)(NU8 kind, Tlineinfo182337 info, Tnode214790* body, Tnode214790* params, Tnode214790* name, Tnode214790* pattern, Tnode214790* genericparams, Tnode214790* pragmas, Tnode214790* exceptions);
N_NIMCALL(Tnode214790*, dotexpr_228962)(Tparser228202* p, Tnode214790* a);
N_NIMCALL(Tnode214790*, parsegstrlit_229321)(Tparser228202* p, Tnode214790* a);
N_NIMCALL(Tnode214790*, newstrnodep_228253)(NU8 kind, NimStringDesc* strval, Tparser228202* p);
N_NIMCALL(Tnode214790*, parsetuple_229842)(Tparser228202* p, NIM_BOOL indentallowed);
N_NIMCALL(Tnode214790*, parseprocexpr_229986)(Tparser228202* p, NIM_BOOL isexpr);
N_NIMCALL(Tnode214790*, parseenum_230090)(Tparser228202* p);
N_NIMCALL(void, flexcomment_228409)(Tparser228202* p, Tnode214790* node);
N_NIMCALL(Tnode214790*, parseobject_230094)(Tparser228202* p);
N_NIMCALL(NIM_BOOL, validind_230947)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseobjectpart_231098)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseobjectwhen_231102)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseobjectcase_231128)(Tparser228202* p);
N_NIMCALL(void, gettoknoind_228427)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsetypeclass_230098)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsetypeclassparam_231209)(Tparser228202* p);
N_NIMCALL(NI, sonslen_217351)(Tnode214790* n);
N_NIMCALL(Tnode214790*, newnode_216601)(NU8 kind, Tlineinfo182337 info, Tnodeseq214784* sons, Ttype214828* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tnode214790*, parsetypedesckaux_230046)(Tparser228202* p, NU8 kind, NU8 mode);
N_NIMCALL(void, parsesymbollist_230020)(Tparser228202* p, Tnode214790* result, NIM_BOOL allownil);
N_NIMCALL(Tnode214790*, identorliteral_229494)(Tparser228202* p, NU8 mode);
N_NIMCALL(Tnode214790*, newintnodep_228243)(NU8 kind, NI64 intval, Tparser228202* p);
N_NIMCALL(void, setbaseflags_228294)(Tnode214790* n, NU8 base);
N_NIMCALL(Tnode214790*, newfloatnodep_228248)(NU8 kind, NF floatval, Tparser228202* p);
N_NIMCALL(Tnode214790*, exprcoloneqexprlist_229230)(Tparser228202* p, NU8 kind, NU8 endtok);
N_NIMCALL(Tnode214790*, parsepar_229377)(Tparser228202* p);
N_NIMCALL(void, semistmtlist_229342)(Tparser228202* p, Tnode214790* result);
N_NIMCALL(Tnode214790*, newnodei_216401)(NU8 kind, Tlineinfo182337 info, NI children);
N_NIMCALL(Tnode214790*, setortableconstr_229237)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsecast_229282)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseoperators_229613)(Tparser228202* p, Tnode214790* headnode, NI limit, NU8 mode);
N_NIMCALL(NI, getprecedence_228567)(Ttoken205169* tok, NIM_BOOL strongspaces);
N_NIMCALL(NIM_BOOL, isunary_228620)(Tparser228202* p);
static N_INLINE(void, checkbinary_228801)(Tparser228202* p);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
static N_INLINE(NIM_BOOL, isrightassociative_228554)(Ttoken205169* tok);
N_NIMCALL(Tnode214790*, makecall_230327)(Tnode214790* n);
N_NIMCALL(Tnode214790*, parsemacrocolon_229528)(Tparser228202* p, Tnode214790* x);
static N_INLINE(Tnode214790*, HEX5BHEX5D_215238)(Tnode214790* n, NI i);
N_NIMCALL(Tnode214790*, parsetry_228303)(Tparser228202* p, NIM_BOOL isexpr);
N_NIMCALL(Tnode214790*, parsewhile_230749)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseexceptblock_230813)(Tparser228202* p, NU8 kind);
N_NIMCALL(Tnode214790*, parsefor_230819)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseblock_230835)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsestaticordefer_230849)(Tparser228202* p, NU8 k);
N_NIMCALL(Tnode214790*, parseasm_230855)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseroutine_230952)(Tparser228202* p, NU8 kind);
N_NIMCALL(Tnode214790*, parsepattern_230942)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsegenericparamlist_230913)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsegenericparam_230869)(Tparser228202* p);
N_NIMCALL(void, indandcomment_228289)(Tparser228202* p, Tnode214790* n);
N_NIMCALL(Tnode214790*, parsesection_231006)(Tparser228202* p, NU8 kind, Tdefparser231002 defparser);
N_NIMCALL(Tnode214790*, parsetypedef_231280)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsetypedefaux_230322)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parseconstant_231039)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsevariable_231330)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsevartuple_231303)(Tparser228202* p);
N_NIMCALL(Tnode214790*, parsebind_231345)(Tparser228202* p, NU8 k);
N_NIMCALL(Tnode214790*, qualifiedident_228969)(Tparser228202* p);
N_NIMCALL(void, closelexer_205335)(Tlexer205173* lex);
N_NIMCALL(Tllstream202204*, llstreamopen_202217)(NimStringDesc* data);
N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_NIMCALL(void, openparser_228331)(Tparser228202* p, NimStringDesc* filename, Tllstream202204* inputstream, NIM_BOOL strongspaces);
N_NIMCALL(Tnode214790*, parseall_228210)(Tparser228202* p);
N_NIMCALL(void, closeparser_228214)(Tparser228202* p);
STRING_LITERAL(TMP1267, "", 0);
STRING_LITERAL(TMP1268, "skipComment", 11);
extern NIM_CONST TY205163 Toktypetostr_205160;
STRING_LITERAL(TMP1393, ".}", 2);
static NIM_CONST TY228609 TMP1394 = {
0x30, 0x00, 0x10, 0x00, 0xC8, 0xA0, 0x0D, 0x0C,
0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01}
;
STRING_LITERAL(TMP1395, ")", 1);
STRING_LITERAL(TMP1396, "->", 2);
static NIM_CONST TY228609 TMP1397 = {
0x00, 0x4A, 0x06, 0x34, 0x12, 0x12, 0x00, 0x40,
0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP1398, "Number of spaces around \'$#\' not consistent", 43);
STRING_LITERAL(TMP1399, "Number of spaces must be 0,1,2,4 or 8", 37);
STRING_LITERAL(TMP1400, "except", 6);
TNimType NTI228202; /* TParser */
extern TNimType NTI104; /* int */
extern TNimType NTI130; /* bool */
extern TNimType NTI205173; /* TLexer */
extern TNimType NTI205169; /* TToken */
extern Gcheap49818 gch_49859;
extern Tnode214790* emptynode_215801;
extern TNimType NTI214784; /* TNodeSeq */

N_NIMCALL(void, gettok_228225)(Tparser228202* p) {
	rawgettok_208824((&(*p).lex), (&(*p).tok));
}

N_NIMCALL(void, openparser_228322)(Tparser228202* p, NI32 fileidx, Tllstream202204* inputstream, NIM_BOOL strongspaces) {
	inittoken_205306((&(*p).tok));
	openlexer_205314((&(*p).lex), fileidx, inputstream);
	gettok_228225(p);
	(*p).firsttok = NIM_TRUE;
	(*p).strongspaces = strongspaces;
}

N_NIMCALL(void, openparser_228331)(Tparser228202* p, NimStringDesc* filename, Tllstream202204* inputstream, NIM_BOOL strongspaces) {
	NI32 LOC1;
	LOC1 = 0;
	LOC1 = fileinfoidx_183016(filename);
	openparser_228322(p, LOC1, inputstream, strongspaces);
}

static N_INLINE(Tlineinfo182337, getlineinfo_205200)(Tlexer205173* L, Ttoken205169* tok) {
	Tlineinfo182337 result;
	memset((void*)(&result), 0, sizeof(result));
	result = newlineinfo_183023((*L).fileidx, (*tok).line, (*tok).col);
	return result;
}

N_NIMCALL(Tlineinfo182337, parlineinfo_228268)(Tparser228202* p) {
	Tlineinfo182337 result;
	memset((void*)(&result), 0, sizeof(result));
	result = getlineinfo_205200((&(*p).lex), (&(*p).tok));
	return result;
}

N_NIMCALL(Tnode214790*, newnodep_228239)(NU8 kind, Tparser228202* p) {
	Tnode214790* result;
	Tlineinfo182337 LOC1;
	result = 0;
	LOC1 = parlineinfo_228268(p);
	result = newnodei_216248(kind, LOC1);
	return result;
}

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

static N_INLINE(void, rtladdzct_53001)(Cell47505* c) {
	addzct_51417((&gch_49859.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47505* c;
	c = usrtocell_51440(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	LA3: ;
}

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_228229)(Tparser228202* p, NU16 msg, NimStringDesc* arg) {
	lexmessagetok_205375((&(*p).lex), msg, (&(*p).tok), arg);
}

N_NIMCALL(void, rawskipcomment_228375)(Tparser228202* p, Tnode214790* 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*) &TMP1267));
				if (LOC13) nimGCunrefNoCycle(LOC13);
			}
			LA11: ;
			(*node).comment = resizeString((*node).comment, (*p).tok.literal->Sup.len + 0);
appendString((*node).comment, (*p).tok.literal);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_228229((&(*p)), ((NU16) 2), ((NimStringDesc*) &TMP1268));
		}
		LA5: ;
		gettok_228225(p);
	}
	LA3: ;
}

N_NIMCALL(void, skipcomment_228234)(Tparser228202* p, Tnode214790* node) {
	{
		if (!((*p).tok.indent < ((NI) 0))) goto LA3;
		rawskipcomment_228375(p, node);
	}
	LA3: ;
}

N_NIMCALL(void, skipind_228276)(Tparser228202* p) {
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		{
			if (!!(((*p).currind < (*p).tok.indent))) goto LA7;
			parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, optind_228284)(Tparser228202* p, Tnode214790* n) {
	skipcomment_228234(p, n);
	skipind_228276(p);
}

N_NIMCALL(void, eat_228271)(Tparser228202* p, NU8 toktype) {
	{
		if (!((*p).tok.toktype == toktype)) goto LA3;
		gettok_228225(p);
	}
	goto LA1;
	LA3: ;
	{
		lexmessagetok_205375((&(*p).lex), ((NU16) 24), (&(*p).tok), Toktypetostr_205160[(toktype)- 0]);
	}
	LA1: ;
}

N_NIMCALL(void, colcom_228825)(Tparser228202* p, Tnode214790* n) {
	eat_228271(p, ((NU8) 107));
	skipcomment_228234(p, n);
}

N_NIMCALL(Tnode214790*, parseifexpr_229658)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	Tnode214790* branch;
	Tnode214790* LOC9;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	{
		while (1) {
			Tnode214790* branch;
			Tnode214790* LOC3;
			Tnode214790* LOC4;
			gettok_228225(p);
			branch = newnodep_228239(((NU8) 49), (&(*p)));
			LOC3 = 0;
			LOC3 = parseexpr_228519(p);
			addson_216807(branch, LOC3);
			colcom_228825(p, branch);
			LOC4 = 0;
			LOC4 = parseexpr_228519(p);
			addson_216807(branch, LOC4);
			optind_228284(p, branch);
			addson_216807(result, branch);
			{
				if (!!(((*p).tok.toktype == ((NU8) 22)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		}
	} LA1: ;
	branch = newnodep_228239(((NU8) 50), (&(*p)));
	eat_228271(p, ((NU8) 23));
	colcom_228825(p, branch);
	LOC9 = 0;
	LOC9 = parseexpr_228519(p);
	addson_216807(branch, LOC9);
	addson_216807(result, branch);
	return result;
}

N_NIMCALL(void, exprlist_228927)(Tparser228202* p, NU8 endtok, Tnode214790* result) {
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			Tnode214790* 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_228519(p);
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_228225(p);
			optind_228284(p, a);
		} LA2: ;
	} LA1: ;
}

N_NIMCALL(void, parmessage_228348)(Tparser228202* p, NU16 msg, Ttoken205169* tok) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = prettytok_205297(tok);
	parmessage_228229(p, msg, LOC1);
}

N_NIMCALL(NIM_BOOL, isexprstart_230016)(Tparser228202* 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):
	case ((NU8) 52):
	{
		result = NIM_TRUE;
	}
	break;
	default:
	{
		result = NIM_FALSE;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, parsereturnorraise_230707)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	gettok_228225(p);
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA3;
		skipcomment_228234(p, result);
		addson_216807(result, emptynode_215801);
	}
	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_230016((&(*p)));
		LOC6 = !(LOC10);
		LA9: ;
		if (!LOC6) goto LA11;
		addson_216807(result, emptynode_215801);
	}
	goto LA1;
	LA11: ;
	{
		Tnode214790* LOC14;
		LOC14 = 0;
		LOC14 = parseexpr_228519(p);
		addson_216807(result, LOC14);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, colonorequals_228897)(Tparser228202* p, Tnode214790* a) {
	Tnode214790* result;
	result = 0;
	{
		Tnode214790* LOC5;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		result = newnodep_228239(((NU8) 34), (&(*p)));
		gettok_228225(p);
		addson_216807(result, a);
		LOC5 = 0;
		LOC5 = parseexpr_228519(p);
		addson_216807(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		Tnode214790* LOC9;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA7;
		result = newnodep_228239(((NU8) 33), (&(*p)));
		gettok_228225(p);
		addson_216807(result, a);
		LOC9 = 0;
		LOC9 = parseexpr_228519(p);
		addson_216807(result, LOC9);
	}
	goto LA1;
	LA7: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, exprcoloneqexpr_228921)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
	result = 0;
	a = parseexpr_228519(p);
	result = colonorequals_228897(p, a);
	return result;
}

N_NIMCALL(void, optpar_228280)(Tparser228202* p) {
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		{
			if (!((*p).tok.indent < (*p).currind)) goto LA7;
			parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(Tnode214790*, parsepragma_229676)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 90), (&(*p)));
	(*p).inpragma += ((NI) 1);
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			Tnode214790* a;
			if (!!(((*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 1)))) goto LA2;
			a = exprcoloneqexpr_228921(p);
			addson_216807(result, a);
			{
				if (!((*p).tok.toktype == ((NU8) 105))) goto LA5;
				gettok_228225(p);
				skipcomment_228234(p, a);
			}
			LA5: ;
		} LA2: ;
	}
	optpar_228280(p);
	{
		if (!((*p).tok.toktype == ((NU8) 102) || (*p).tok.toktype == ((NU8) 98))) goto LA9;
		gettok_228225(p);
	}
	goto LA7;
	LA9: ;
	{
		parmessage_228229((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1393));
	}
	LA7: ;
	(*p).inpragma -= ((NI) 1);
	return result;
}

N_NIMCALL(Tnode214790*, parsestmtpragma_228312)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = parsepragma_229676(p);
	{
		NIM_BOOL LOC3;
		Tnode214790* a;
		Tnode214790* 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_216248(((NU8) 91), (*a).info);
		gettok_228225(p);
		skipcomment_228234(p, result);
		add_215114(result, a);
		LOC7 = 0;
		LOC7 = parsestmt_228523(p);
		add_215114(result, LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsemodulename_230482)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	result = 0;
	result = parseexpr_228519(p);
	return result;
}

N_NIMCALL(Tnode214790*, parseimport_230601)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	Tnode214790* a;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	a = parsemodulename_230482(p, kind);
	addson_216807(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_228225(p);
		optind_228284(p, result);
		{
			while (1) {
				a = parsemodulename_230482(p, kind);
				{
					if (!((*a).kind == ((NU8) 1))) goto LA13;
					goto LA9;
				}
				LA13: ;
				addson_216807(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA17;
					goto LA9;
				}
				LA17: ;
				gettok_228225(p);
				optind_228284(p, a);
			}
		} LA9: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsefromstmt_230682)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
	result = 0;
	result = newnodep_228239(((NU8) 120), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	a = parsemodulename_230482(p, ((NU8) 116));
	addson_216807(result, a);
	eat_228271(p, ((NU8) 34));
	optind_228284(p, result);
	{
		while (1) {
			a = parseexpr_228519(p);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_228225(p);
			optind_228284(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parseincludestmt_230657)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 121), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			Tnode214790* a;
			a = parseexpr_228519(p);
			{
				if (!((*a).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_228225(p);
			optind_228284(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, newcommentstmt_230995)(Tparser228202* p) {
	Tnode214790* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_228239(((NU8) 125), (&(*p)));
	LOC1 = 0;
	LOC1 = (*result).comment; (*result).comment = copyStringRC1((*p).tok.literal);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	gettok_228225(p);
	return result;
}

N_NIMCALL(NIM_BOOL, isoperator_228222)(Ttoken205169* tok) {
	NIM_BOOL result;
	result = 0;
	result = ((TMP1394[(NU)((*tok).toktype)>>3] &(1U<<((NU)((*tok).toktype)&7U)))!=0);
	return result;
}

static N_INLINE(NIM_BOOL, issigillike_228541)(Ttoken205169* 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) {
	{
		Cell47505* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47505* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Tnode214790*, newidentnodep_228258)(Tident189012* ident, Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 2), p);
	asgnRefNoCycle((void**) (&(*result).kindU.S5.ident), ident);
	return result;
}

N_NIMCALL(void, exprcoloneqexprlistaux_228983)(Tparser228202* p, NU8 endtok, Tnode214790* result) {
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			NIM_BOOL LOC3;
			Tnode214790* 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_228921(p);
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA7;
				goto LA1;
			}
			LA7: ;
			gettok_228225(p);
			skipcomment_228234(p, a);
		} LA2: ;
	} LA1: ;
	optpar_228280(p);
	eat_228271(p, endtok);
}

N_NIMCALL(Tnode214790*, namedparams_229519)(Tparser228202* p, Tnode214790* callee, NU8 kind, NU8 endtok) {
	Tnode214790* result;
	Tnode214790* a;
	result = 0;
	a = callee;
	result = newnodep_228239(kind, (&(*p)));
	addson_216807(result, a);
	exprcoloneqexprlistaux_228983(p, endtok, result);
	return result;
}

static N_INLINE(NI, len_215059)(Tnode214790* 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(Tnode214790*, parsesymbol_228298)(Tparser228202* p, NIM_BOOL allownil) {
	Tnode214790* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 3):
	case ((NU8) 64):
	{
		result = newidentnodep_228258((*p).tok.ident, (&(*p)));
		gettok_228225(p);
	}
	break;
	case ((NU8) 114):
	{
		result = newnodep_228239(((NU8) 53), (&(*p)));
		gettok_228225(p);
		{
			while (1) {
				switch ((*p).tok.toktype) {
				case ((NU8) 114):
				{
					{
						NI LOC8;
						LOC8 = 0;
						LOC8 = len_215059(result);
						if (!(LOC8 == ((NI) 0))) goto LA9;
						parmessage_228348((&(*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;
					Tident189012* LOC15;
					Tnode214790* LOC16;
					accm = copyString(((NimStringDesc*) &TMP1267));
					{
						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_205281((&(*p).tok));
							accm = resizeString(accm, LOC14->Sup.len + 0);
appendString(accm, LOC14);
							gettok_228225(p);
						} LA13: ;
					}
					LOC15 = 0;
					LOC15 = getident_189441(accm);
					LOC16 = 0;
					LOC16 = newidentnodep_228258(LOC15, (&(*p)));
					add_215114(result, LOC16);
				}
				break;
				case ((NU8) 3) ... ((NU8) 72):
				case ((NU8) 2):
				case ((NU8) 73) ... ((NU8) 92):
				{
					NimStringDesc* LOC18;
					Tident189012* LOC19;
					Tnode214790* LOC20;
					LOC18 = 0;
					LOC18 = toktostr_205281((&(*p).tok));
					LOC19 = 0;
					LOC19 = getident_189441(LOC18);
					LOC20 = 0;
					LOC20 = newidentnodep_228258(LOC19, (&(*p)));
					add_215114(result, LOC20);
					gettok_228225(p);
				}
				break;
				default:
				{
					parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
				}
				break;
				}
			}
		} LA3: ;
		eat_228271(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_228239(((NU8) 23), (&(*p)));
			gettok_228225(p);
		}
		goto LA23;
		LA27: ;
		{
			parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
			{
				NIM_BOOL LOC32;
				LOC32 = 0;
				LOC32 = iskeyword_205205((*p).tok.toktype);
				if (!!(LOC32)) goto LA33;
				gettok_228225(p);
			}
			LA33: ;
			result = emptynode_215801;
		}
		LA23: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, identvis_229732)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
	result = 0;
	a = parsesymbol_228298(p, NIM_FALSE);
	{
		Tnode214790* LOC5;
		if (!((*p).tok.toktype == ((NU8) 112))) goto LA3;
		result = newnodep_228239(((NU8) 31), (&(*p)));
		LOC5 = 0;
		LOC5 = newidentnodep_228258((*p).tok.ident, (&(*p)));
		addson_216807(result, LOC5);
		addson_216807(result, a);
		gettok_228225(p);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, identwithpragma_229747)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
	result = 0;
	a = identvis_229732(p);
	{
		Tnode214790* LOC5;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA3;
		result = newnodep_228239(((NU8) 43), (&(*p)));
		addson_216807(result, a);
		LOC5 = 0;
		LOC5 = parsepragma_229676(p);
		addson_216807(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsetypedesc_228527)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = simpleexpr_229337(p, ((NU8) 1));
	return result;
}

N_NIMCALL(Tnode214790*, parseidentcolonequals_229768)(Tparser228202* p, NU8 flags) {
	Tnode214790* result;
	Tnode214790* a;
{	result = 0;
	a = 0;
	result = newnodep_228239(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).tok.toktype) {
			case ((NU8) 2):
			case ((NU8) 114):
			{
				{
					if (!((flags &(1U<<((NU)(((NU8) 0))&7U)))!=0)) goto LA6;
					a = identwithpragma_229747(p);
				}
				goto LA4;
				LA6: ;
				{
					a = parsesymbol_228298(p, NIM_FALSE);
				}
				LA4: ;
				{
					if (!((*a).kind == ((NU8) 1))) goto LA11;
					goto BeforeRet;
				}
				LA11: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA16;
				goto LA1;
			}
			LA16: ;
			gettok_228225(p);
			optind_228284(p, a);
		}
	} LA1: ;
	{
		Tnode214790* LOC22;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA20;
		gettok_228225(p);
		optind_228284(p, result);
		LOC22 = 0;
		LOC22 = parsetypedesc_228527(p);
		addson_216807(result, LOC22);
	}
	goto LA18;
	LA20: ;
	{
		addson_216807(result, emptynode_215801);
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = !(((*p).tok.toktype == ((NU8) 109)));
			if (!(LOC26)) goto LA27;
			LOC26 = !(((flags &(1U<<((NU)(((NU8) 1))&7U)))!=0));
			LA27: ;
			if (!LOC26) goto LA28;
			parmessage_228348((&(*p)), ((NU16) 61), (&(*p).tok));
		}
		LA28: ;
	}
	LA18: ;
	{
		Tnode214790* LOC34;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA32;
		gettok_228225(p);
		optind_228284(p, result);
		LOC34 = 0;
		LOC34 = parseexpr_228519(p);
		addson_216807(result, LOC34);
	}
	goto LA30;
	LA32: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA30: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, parseparamlist_228536)(Tparser228202* p, NIM_BOOL retcolon) {
	Tnode214790* result;
	Tnode214790* a;
	NIM_BOOL hasparle;
	NIM_BOOL LOC1;
	NIM_BOOL hasret;
	result = 0;
	a = 0;
	result = newnodep_228239(((NU8) 76), (&(*p)));
	addson_216807(result, emptynode_215801);
	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_228225(p);
		optind_228284(p, result);
		{
			while (1) {
				switch ((*p).tok.toktype) {
				case ((NU8) 2):
				case ((NU8) 114):
				{
					a = parseidentcolonequals_229768(p, 3);
				}
				break;
				case ((NU8) 94):
				{
					goto LA7;
				}
				break;
				default:
				{
					parmessage_228229((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1395));
					goto LA7;
				}
				break;
				}
				addson_216807(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA14;
					goto LA7;
				}
				LA14: ;
				gettok_228225(p);
				skipcomment_228234(p, a);
			}
		} LA7: ;
		optpar_228280(p);
		eat_228271(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_189450((*p).tok.ident, ((NimStringDesc*) &TMP1396));
		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_228225(p);
		optind_228284(p, result);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), parsetypedesc_228527(p));
	}
	goto LA23;
	LA27: ;
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = !(retcolon);
		if (!(LOC30)) goto LA31;
		LOC30 = !(hasparle);
		LA31: ;
		if (!LOC30) goto LA32;
		result = emptynode_215801;
	}
	goto LA23;
	LA32: ;
	LA23: ;
	return result;
}

N_NIMCALL(Tnode214790*, optpragmas_229940)(Tparser228202* p) {
	Tnode214790* 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_229676(p);
	}
	goto LA1;
	LA7: ;
	{
		result = emptynode_215801;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsedoblock_229954)(Tparser228202* p) {
	Tnode214790* result;
	Tlineinfo182337 info;
	Tnode214790* params;
	Tnode214790* pragmas;
	Tnode214790* LOC1;
	result = 0;
	info = parlineinfo_228268((&(*p)));
	gettok_228225(p);
	params = parseparamlist_228536(p, NIM_FALSE);
	pragmas = optpragmas_229940(p);
	colcom_228825(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_228523(p);
	result = newprocnode_217040(((NU8) 52), info, LOC1, params, emptynode_215801, emptynode_215801, emptynode_215801, pragmas, emptynode_215801);
	return result;
}

N_NIMCALL(void, parsedoblocks_228531)(Tparser228202* p, Tnode214790* call) {
	{
		Tnode214790* LOC5;
		if (!((*p).tok.toktype == ((NU8) 21))) goto LA3;
		LOC5 = 0;
		LOC5 = parsedoblock_229954(p);
		addson_216807(call, LOC5);
		{
			while (1) {
				NIM_BOOL LOC8;
				Tnode214790* 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_229954(p);
				addson_216807(call, LOC10);
			} LA7: ;
		}
	}
	LA3: ;
}

N_NIMCALL(Tnode214790*, dotexpr_228962)(Tparser228202* p, Tnode214790* a) {
	Tnode214790* result;
	Tlineinfo182337 info;
	Tnode214790* LOC1;
	result = 0;
	info = parlineinfo_228268((&(*p)));
	gettok_228225(p);
	result = newnodei_216248(((NU8) 45), info);
	optind_228284(p, result);
	addson_216807(result, a);
	LOC1 = 0;
	LOC1 = parsesymbol_228298(p, NIM_FALSE);
	addson_216807(result, LOC1);
	return result;
}

N_NIMCALL(Tnode214790*, newstrnodep_228253)(NU8 kind, NimStringDesc* strval, Tparser228202* p) {
	Tnode214790* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodep_228239(kind, p);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(strval);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	return result;
}

N_NIMCALL(Tnode214790*, parsegstrlit_229321)(Tparser228202* p, Tnode214790* a) {
	Tnode214790* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 90):
	{
		Tnode214790* LOC2;
		result = newnodep_228239(((NU8) 28), (&(*p)));
		addson_216807(result, a);
		LOC2 = 0;
		LOC2 = newstrnodep_228253(((NU8) 21), (*p).tok.literal, (&(*p)));
		addson_216807(result, LOC2);
		gettok_228225(p);
	}
	break;
	case ((NU8) 91):
	{
		Tnode214790* LOC4;
		result = newnodep_228239(((NU8) 28), (&(*p)));
		addson_216807(result, a);
		LOC4 = 0;
		LOC4 = newstrnodep_228253(((NU8) 22), (*p).tok.literal, (&(*p)));
		addson_216807(result, LOC4);
		gettok_228225(p);
	}
	break;
	default:
	{
		result = a;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, primarysuffix_229533)(Tparser228202* p, Tnode214790* r, NI baseindent) {
	Tnode214790* 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_229519(p, result, ((NU8) 27), ((NU8) 94));
				{
					NIM_BOOL LOC16;
					NI LOC17;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = len_215059(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_228531(p, result);
				}
				LA14: ;
			}
			break;
			case ((NU8) 21):
			{
				Tnode214790* a;
				a = result;
				result = newnodep_228239(((NU8) 27), (&(*p)));
				addson_216807(result, a);
				parsedoblocks_228531(p, result);
			}
			break;
			case ((NU8) 110):
			{
				result = dotexpr_228962(p, result);
				result = parsegstrlit_229321(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_229519(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_229519(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):
			{
				{
					Tnode214790* a;
					Tnode214790* LOC43;
					if (!((*p).inpragma == ((NI) 0))) goto LA41;
					a = result;
					result = newnodep_228239(((NU8) 26), (&(*p)));
					addson_216807(result, a);
					LOC43 = 0;
					LOC43 = parseexpr_228519(p);
					addson_216807(result, LOC43);
				}
				LA41: ;
				goto LA1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		} LA2: ;
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsetuple_229842)(Tparser228202* p, NIM_BOOL indentallowed) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 134), (&(*p)));
	gettok_228225(p);
	{
		if (!((*p).tok.toktype == ((NU8) 95))) goto LA3;
		gettok_228225(p);
		optind_228284(p, result);
		{
			while (1) {
				Tnode214790* a;
				if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA6;
				a = parseidentcolonequals_229768(p, 0);
				addson_216807(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA9;
					goto LA5;
				}
				LA9: ;
				gettok_228225(p);
				skipcomment_228234(p, a);
			} LA6: ;
		} LA5: ;
		optpar_228280(p);
		eat_228271(p, ((NU8) 96));
	}
	goto LA1;
	LA3: ;
	{
		if (!indentallowed) goto LA12;
		skipcomment_228234(p, result);
		{
			NI oldind_229883;
			if (!((*p).currind < (*p).tok.indent)) goto LA16;
			oldind_229883 = (*p).currind;
			(*p).currind = (*p).tok.indent;
			rawskipcomment_228375(p, result);
			{
				while (1) {
					switch ((*p).tok.toktype) {
					case ((NU8) 2):
					case ((NU8) 114):
					{
						Tnode214790* a;
						a = parseidentcolonequals_229768(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_228375(p, a);
						}
						LA25: ;
						addson_216807(result, a);
					}
					break;
					case ((NU8) 1):
					{
						goto LA18;
					}
					break;
					default:
					{
						parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
						goto LA18;
					}
					break;
					}
					{
						if (!!(((*p).tok.indent == (*p).currind))) goto LA31;
						goto LA18;
					}
					LA31: ;
				}
			} LA18: ;
			(*p).currind = oldind_229883;
		}
		LA16: ;
	}
	goto LA1;
	LA12: ;
	{
		result = newnodep_228239(((NU8) 135), (&(*p)));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parseprocexpr_229986)(Tparser228202* p, NIM_BOOL isexpr) {
	Tnode214790* result;
	Tlineinfo182337 info;
	NIM_BOOL hassignature;
	NIM_BOOL LOC1;
	Tnode214790* params;
	Tnode214790* pragmas;
	result = 0;
	info = parlineinfo_228268((&(*p)));
	gettok_228225(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_228536(p, NIM_TRUE);
	pragmas = optpragmas_229940(p);
	{
		NIM_BOOL LOC5;
		Tnode214790* LOC9;
		LOC5 = 0;
		LOC5 = ((*p).tok.toktype == ((NU8) 109));
		if (!(LOC5)) goto LA6;
		LOC5 = isexpr;
		LA6: ;
		if (!LOC5) goto LA7;
		gettok_228225(p);
		skipcomment_228234(p, result);
		LOC9 = 0;
		LOC9 = parsestmt_228523(p);
		result = newprocnode_217040(((NU8) 51), info, LOC9, params, emptynode_215801, emptynode_215801, emptynode_215801, pragmas, emptynode_215801);
	}
	goto LA3;
	LA7: ;
	{
		result = newnodei_216248(((NU8) 147), info);
		{
			if (!hassignature) goto LA13;
			addson_216807(result, params);
			addson_216807(result, pragmas);
		}
		LA13: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, flexcomment_228409)(Tparser228202* p, Tnode214790* 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_228375(p, node);
	}
	LA5: ;
}

N_NIMCALL(Tnode214790*, parseenum_230090)(Tparser228202* p) {
	Tnode214790* result;
{	result = 0;
	result = newnodep_228239(((NU8) 150), (&(*p)));
	gettok_228225(p);
	addson_216807(result, emptynode_215801);
	optind_228284(p, result);
	flexcomment_228409(p, result);
	{
		while (1) {
			Tnode214790* a;
			a = parsesymbol_228298(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_215114(result, a);
				goto LA1;
			}
			LA11: ;
			{
				NIM_BOOL LOC15;
				Tnode214790* b;
				Tnode214790* 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_228225(p);
				optind_228284(p, a);
				b = a;
				a = newnodep_228239(((NU8) 151), (&(*p)));
				addson_216807(a, b);
				LOC19 = 0;
				LOC19 = parseexpr_228519(p);
				addson_216807(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_228375(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_228225(p);
				rawskipcomment_228375(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_228375(p, a);
				}
				LA37: ;
			}
			LA26: ;
			addson_216807(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_215059(result);
		if (!(LOC49 <= ((NI) 1))) goto LA50;
		LOC52 = 0;
		LOC52 = prettytok_205297((&(*p).tok));
		lexmessagetok_205375((&(*p).lex), ((NU16) 20), (&(*p).tok), LOC52);
	}
	LA50: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, validind_230947)(Tparser228202* 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(Tnode214790*, parseobjectwhen_231102)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 140), (&(*p)));
	{
		while (1) {
			Tnode214790* branch;
			Tnode214790* LOC3;
			Tnode214790* LOC4;
			if (!((*p).tok.indent == (*p).currind)) goto LA2;
			gettok_228225(p);
			branch = newnodep_228239(((NU8) 86), (&(*p)));
			optind_228284(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_228519(p);
			addson_216807(branch, LOC3);
			colcom_228825(p, branch);
			LOC4 = 0;
			LOC4 = parseobjectpart_231098(p);
			addson_216807(branch, LOC4);
			flexcomment_228409(p, branch);
			addson_216807(result, branch);
			{
				if (!!(((*p).tok.toktype == ((NU8) 22)))) goto LA7;
				goto LA1;
			}
			LA7: ;
		} LA2: ;
	} LA1: ;
	{
		NIM_BOOL LOC11;
		Tnode214790* branch;
		Tnode214790* 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_228239(((NU8) 88), (&(*p)));
		eat_228271(p, ((NU8) 23));
		colcom_228825(p, branch);
		LOC15 = 0;
		LOC15 = parseobjectpart_231098(p);
		addson_216807(branch, LOC15);
		flexcomment_228409(p, branch);
		addson_216807(result, branch);
	}
	LA13: ;
	return result;
}

N_NIMCALL(void, gettoknoind_228427)(Tparser228202* p) {
	gettok_228225(p);
	{
		if (!(((NI) 0) <= (*p).tok.indent)) goto LA3;
		parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
	}
	LA3: ;
}

N_NIMCALL(Tnode214790*, parseobjectcase_231128)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
	Tnode214790* LOC1;
	Tnode214790* LOC2;
	NIM_BOOL wasindented;
	NI oldind;
	result = 0;
	result = newnodep_228239(((NU8) 139), (&(*p)));
	gettoknoind_228427(p);
	a = newnodep_228239(((NU8) 35), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_229747(p);
	addson_216807(a, LOC1);
	eat_228271(p, ((NU8) 107));
	LOC2 = 0;
	LOC2 = parsetypedesc_228527(p);
	addson_216807(a, LOC2);
	addson_216807(a, emptynode_215801);
	addson_216807(result, a);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA5;
		gettok_228225(p);
	}
	LA5: ;
	flexcomment_228409(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) {
			Tnode214790* b;
			Tnode214790* fields;
			if (!((*p).tok.indent == (*p).currind)) goto LA12;
			b = 0;
			switch ((*p).tok.toktype) {
			case ((NU8) 50):
			{
				b = newnodep_228239(((NU8) 85), (&(*p)));
				exprlist_228927(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 23):
			{
				b = newnodep_228239(((NU8) 88), (&(*p)));
				gettok_228225(p);
			}
			break;
			default:
			{
				goto LA11;
			}
			break;
			}
			colcom_228825(p, b);
			fields = parseobjectpart_231098(p);
			{
				if (!((*fields).kind == ((NU8) 1))) goto LA18;
				parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
				fields = newnodep_228239(((NU8) 23), (&(*p)));
			}
			LA18: ;
			addson_216807(b, fields);
			addson_216807(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(Tnode214790*, parseobjectpart_231098)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	{
		NI oldind_231173;
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		result = newnodep_228239(((NU8) 138), (&(*p)));
		oldind_231173 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		rawskipcomment_228375(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):
				{
					Tnode214790* LOC8;
					LOC8 = 0;
					LOC8 = parseobjectpart_231098(p);
					addson_216807(result, LOC8);
				}
				break;
				default:
				{
					parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
					goto LA5;
				}
				break;
				}
			} LA6: ;
		} LA5: ;
		(*p).currind = oldind_231173;
	}
	goto LA1;
	LA3: ;
	{
		switch ((*p).tok.toktype) {
		case ((NU8) 67):
		{
			result = parseobjectwhen_231102(p);
		}
		break;
		case ((NU8) 11):
		{
			result = parseobjectcase_231128(p);
		}
		break;
		case ((NU8) 2):
		case ((NU8) 114):
		{
			result = parseidentcolonequals_229768(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_228375(p, result);
			}
			LA18: ;
		}
		break;
		case ((NU8) 46):
		case ((NU8) 18):
		{
			result = newnodep_228239(((NU8) 23), (&(*p)));
			gettok_228225(p);
		}
		break;
		default:
		{
			result = emptynode_215801;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parseobject_230094)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC25;
{	result = 0;
	result = newnodep_228239(((NU8) 133), (&(*p)));
	gettok_228225(p);
	{
		NIM_BOOL LOC3;
		Tnode214790* LOC7;
		LOC3 = 0;
		LOC3 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC3)) goto LA4;
		LOC3 = validind_230947(p);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = parsepragma_229676(p);
		addson_216807(result, LOC7);
	}
	goto LA1;
	LA5: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA1: ;
	{
		NIM_BOOL LOC11;
		Tnode214790* a;
		Tnode214790* 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_228239(((NU8) 77), (&(*p)));
		gettok_228225(p);
		LOC15 = 0;
		LOC15 = parsetypedesc_228527(p);
		addson_216807(a, LOC15);
		addson_216807(result, a);
	}
	goto LA9;
	LA13: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA9: ;
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA19;
		skipcomment_228234(p, result);
	}
	LA19: ;
	{
		if (!!(((*p).currind < (*p).tok.indent))) goto LA23;
		addson_216807(result, emptynode_215801);
		goto BeforeRet;
	}
	LA23: ;
	LOC25 = 0;
	LOC25 = parseobjectpart_231098(p);
	addson_216807(result, LOC25);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsetypeclassparam_231209)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	{
		Tnode214790* LOC5;
		if (!((*p).tok.toktype == ((NU8) 52) || (*p).tok.toktype == ((NU8) 66))) goto LA3;
		result = newnodep_228239(((NU8) 143), (&(*p)));
		gettok_228225(p);
		LOC5 = 0;
		LOC5 = parsesymbol_228298(p, NIM_FALSE);
		addson_216807(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		result = parsesymbol_228298(p, NIM_FALSE);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsetypeclass_230098)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* args;
	Tnode214790* LOC1;
	result = 0;
	result = newnodep_228239(((NU8) 136), (&(*p)));
	gettok_228225(p);
	args = newnodep_228239(((NU8) 152), (&(*p)));
	addson_216807(result, args);
	LOC1 = 0;
	LOC1 = parsetypeclassparam_231209(p);
	addson_216807(args, LOC1);
	{
		while (1) {
			Tnode214790* LOC4;
			if (!((*p).tok.toktype == ((NU8) 105))) goto LA3;
			gettok_228225(p);
			LOC4 = 0;
			LOC4 = parsetypeclassparam_231209(p);
			addson_216807(args, LOC4);
		} LA3: ;
	}
	{
		NIM_BOOL LOC7;
		Tnode214790* LOC11;
		LOC7 = 0;
		LOC7 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC7)) goto LA8;
		LOC7 = validind_230947(p);
		LA8: ;
		if (!LOC7) goto LA9;
		LOC11 = 0;
		LOC11 = parsepragma_229676(p);
		addson_216807(result, LOC11);
	}
	goto LA5;
	LA9: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		Tnode214790* 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_228239(((NU8) 77), (&(*p)));
		gettok_228225(p);
		{
			while (1) {
				Tnode214790* LOC21;
				LOC21 = 0;
				LOC21 = parsetypedesc_228527(p);
				addson_216807(a, LOC21);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA24;
					goto LA19;
				}
				LA24: ;
				gettok_228225(p);
			}
		} LA19: ;
		addson_216807(result, a);
	}
	goto LA13;
	LA17: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA13: ;
	{
		if (!((*p).tok.toktype == ((NU8) 113))) goto LA29;
		skipcomment_228234(p, result);
	}
	LA29: ;
	{
		if (!!(((*p).currind < (*p).tok.indent))) goto LA33;
		addson_216807(result, emptynode_215801);
	}
	goto LA31;
	LA33: ;
	{
		Tnode214790* LOC36;
		LOC36 = 0;
		LOC36 = parsestmt_228523(p);
		addson_216807(result, LOC36);
	}
	LA31: ;
	return result;
}

N_NIMCALL(void, parsesymbollist_230020)(Tparser228202* p, Tnode214790* result, NIM_BOOL allownil) {
	{
		while (1) {
			Tnode214790* s;
			s = parsesymbol_228298(p, allownil);
			{
				if (!((*s).kind == ((NU8) 1))) goto LA5;
				goto LA1;
			}
			LA5: ;
			addson_216807(result, s);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA9;
				goto LA1;
			}
			LA9: ;
			gettok_228225(p);
			optind_228284(p, s);
		}
	} LA1: ;
}

N_NIMCALL(Tnode214790*, parsetypedesckaux_230046)(Tparser228202* p, NU8 kind, NU8 mode) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		Tnode214790* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isoperator_228222((&(*p).tok));
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = isexprstart_230016((&(*p)));
		LA5: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = primary_229602(p, mode);
		addson_216807(result, LOC8);
	}
	LA6: ;
	{
		NIM_BOOL LOC11;
		NU8 nodekind;
		Tnode214790* 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_228225(p);
		list = newnodep_228239(nodekind, (&(*p)));
		addson_216807(result, list);
		parsesymbollist_230020(p, list, NIM_TRUE);
	}
	LA13: ;
	return result;
}

N_NIMCALL(Tnode214790*, newintnodep_228243)(NU8 kind, NI64 intval, Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, p);
	(*result).kindU.S1.intval = intval;
	return result;
}

N_NIMCALL(void, setbaseflags_228294)(Tnode214790* 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(Tnode214790*, newfloatnodep_228248)(NU8 kind, NF floatval, Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, p);
	(*result).kindU.S2.floatval = floatval;
	return result;
}

N_NIMCALL(Tnode214790*, exprcoloneqexprlist_229230)(Tparser228202* p, NU8 kind, NU8 endtok) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	exprcoloneqexprlistaux_228983(p, endtok, result);
	return result;
}

N_NIMCALL(void, semistmtlist_229342)(Tparser228202* p, Tnode214790* result) {
	Tnode214790* LOC1;
	(*p).insemistmtlist += ((NI) 1);
	LOC1 = 0;
	LOC1 = complexorsimplestmt_229333(p);
	add_215114(result, LOC1);
	{
		while (1) {
			Tnode214790* LOC4;
			if (!((*p).tok.toktype == ((NU8) 106))) goto LA3;
			gettok_228225(p);
			optind_228284(p, result);
			LOC4 = 0;
			LOC4 = complexorsimplestmt_229333(p);
			add_215114(result, LOC4);
		} LA3: ;
	}
	(*p).insemistmtlist -= ((NI) 1);
	(*result).kind = ((NU8) 126);
}

N_NIMCALL(Tnode214790*, parsepar_229377)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 37), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		if (!((TMP1397[(NU)((*p).tok.toktype)>>3] &(1U<<((NU)((*p).tok.toktype)&7U)))!=0)) goto LA3;
		semistmtlist_229342(p, result);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*p).tok.toktype == ((NU8) 106))) goto LA6;
		gettok_228225(p);
		optind_228284(p, result);
		semistmtlist_229342(p, result);
	}
	goto LA1;
	LA6: ;
	{
		Tnode214790* LOC11;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA9;
		LOC11 = 0;
		LOC11 = parsestmtpragma_228312(p);
		add_215114(result, LOC11);
	}
	goto LA1;
	LA9: ;
	{
		Tnode214790* a_229421;
		if (!!(((*p).tok.toktype == ((NU8) 94)))) goto LA13;
		a_229421 = simpleexpr_229337(p, ((NU8) 0));
		{
			Tnode214790* b;
			Tnode214790* asgn;
			if (!((*p).tok.toktype == ((NU8) 109))) goto LA17;
			gettok_228225(p);
			optind_228284(p, result);
			b = parseexpr_228519(p);
			asgn = newnodei_216401(((NU8) 73), (*a_229421).info, ((NI) 2));
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.sons->data[((NI) 0)]), a_229421);
			asgnRefNoCycle((void**) (&(*asgn).kindU.S6.sons->data[((NI) 1)]), b);
			add_215114(result, asgn);
			{
				if (!((*p).tok.toktype == ((NU8) 106))) goto LA21;
				semistmtlist_229342(p, result);
			}
			LA21: ;
		}
		goto LA15;
		LA17: ;
		{
			if (!((*p).tok.toktype == ((NU8) 106))) goto LA24;
			add_215114(result, a_229421);
			semistmtlist_229342(p, result);
		}
		goto LA15;
		LA24: ;
		{
			a_229421 = colonorequals_228897(p, a_229421);
			add_215114(result, a_229421);
			{
				if (!((*p).tok.toktype == ((NU8) 105))) goto LA29;
				gettok_228225(p);
				skipcomment_228234(p, a_229421);
				{
					while (1) {
						NIM_BOOL LOC33;
						Tnode214790* 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_228921(p);
						addson_216807(result, a);
						{
							if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA37;
							goto LA31;
						}
						LA37: ;
						gettok_228225(p);
						skipcomment_228234(p, a);
					} LA32: ;
				} LA31: ;
			}
			LA29: ;
		}
		LA15: ;
	}
	goto LA1;
	LA13: ;
	LA1: ;
	optpar_228280(p);
	eat_228271(p, ((NU8) 94));
	return result;
}

N_NIMCALL(Tnode214790*, setortableconstr_229237)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 39), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		gettok_228225(p);
		(*result).kind = ((NU8) 54);
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				Tnode214790* a;
				if (!!(((*p).tok.toktype == ((NU8) 98) || (*p).tok.toktype == ((NU8) 1)))) goto LA7;
				a = exprcoloneqexpr_228921(p);
				{
					if (!((*a).kind == ((NU8) 34))) goto LA10;
					(*result).kind = ((NU8) 54);
				}
				LA10: ;
				addson_216807(result, a);
				{
					if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA14;
					goto LA6;
				}
				LA14: ;
				gettok_228225(p);
				skipcomment_228234(p, a);
			} LA7: ;
		} LA6: ;
	}
	LA1: ;
	optpar_228280(p);
	eat_228271(p, ((NU8) 98));
	return result;
}

N_NIMCALL(Tnode214790*, parsecast_229282)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC1;
	Tnode214790* LOC2;
	result = 0;
	result = newnodep_228239(((NU8) 61), (&(*p)));
	gettok_228225(p);
	eat_228271(p, ((NU8) 95));
	optind_228284(p, result);
	LOC1 = 0;
	LOC1 = parsetypedesc_228527(p);
	addson_216807(result, LOC1);
	optpar_228280(p);
	eat_228271(p, ((NU8) 96));
	eat_228271(p, ((NU8) 93));
	optind_228284(p, result);
	LOC2 = 0;
	LOC2 = parseexpr_228519(p);
	addson_216807(result, LOC2);
	optpar_228280(p);
	eat_228271(p, ((NU8) 94));
	return result;
}

N_NIMCALL(Tnode214790*, identorliteral_229494)(Tparser228202* p, NU8 mode) {
	Tnode214790* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 2):
	case ((NU8) 64):
	case ((NU8) 3):
	{
		result = newidentnodep_228258((*p).tok.ident, (&(*p)));
		gettok_228225(p);
		result = parsegstrlit_229321(p, result);
	}
	break;
	case ((NU8) 114):
	{
		result = parsesymbol_228298(p, NIM_FALSE);
	}
	break;
	case ((NU8) 73):
	{
		result = newintnodep_228243(((NU8) 6), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 74):
	{
		result = newintnodep_228243(((NU8) 7), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 75):
	{
		result = newintnodep_228243(((NU8) 8), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 76):
	{
		result = newintnodep_228243(((NU8) 9), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 77):
	{
		result = newintnodep_228243(((NU8) 10), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 78):
	{
		result = newintnodep_228243(((NU8) 11), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 79):
	{
		result = newintnodep_228243(((NU8) 12), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 80):
	{
		result = newintnodep_228243(((NU8) 13), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 81):
	{
		result = newintnodep_228243(((NU8) 14), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 82):
	{
		result = newintnodep_228243(((NU8) 15), (*p).tok.inumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 83):
	{
		result = newfloatnodep_228248(((NU8) 16), (*p).tok.fnumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 84):
	{
		result = newfloatnodep_228248(((NU8) 17), (*p).tok.fnumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 85):
	{
		result = newfloatnodep_228248(((NU8) 18), (*p).tok.fnumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 86):
	{
		result = newfloatnodep_228248(((NU8) 19), (*p).tok.fnumber, (&(*p)));
		setbaseflags_228294(result, (*p).tok.base);
		gettok_228225(p);
	}
	break;
	case ((NU8) 87):
	{
		result = newstrnodep_228253(((NU8) 20), (*p).tok.literal, (&(*p)));
		gettok_228225(p);
	}
	break;
	case ((NU8) 88):
	{
		result = newstrnodep_228253(((NU8) 21), (*p).tok.literal, (&(*p)));
		gettok_228225(p);
	}
	break;
	case ((NU8) 89):
	{
		result = newstrnodep_228253(((NU8) 22), (*p).tok.literal, (&(*p)));
		gettok_228225(p);
	}
	break;
	case ((NU8) 92):
	{
		result = newintnodep_228243(((NU8) 5), ((NI64) (((NU8)((*p).tok.literal->data[((NI) 0)])))), (&(*p)));
		gettok_228225(p);
	}
	break;
	case ((NU8) 46):
	{
		result = newnodep_228239(((NU8) 23), (&(*p)));
		gettok_228225(p);
	}
	break;
	case ((NU8) 93):
	{
		{
			if (!((6 &(1U<<((NU)(mode)&7U)))!=0)) goto LA25;
			result = exprcoloneqexprlist_229230(p, ((NU8) 37), ((NU8) 94));
		}
		goto LA23;
		LA25: ;
		{
			result = parsepar_229377(p);
		}
		LA23: ;
	}
	break;
	case ((NU8) 97):
	{
		result = setortableconstr_229237(p);
	}
	break;
	case ((NU8) 95):
	{
		result = exprcoloneqexprlist_229230(p, ((NU8) 41), ((NU8) 96));
	}
	break;
	case ((NU8) 12):
	{
		result = parsecast_229282(p);
	}
	break;
	default:
	{
		parmessage_228348((&(*p)), ((NU16) 62), (&(*p).tok));
		gettok_228225(p);
		result = emptynode_215801;
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, primary_229602)(Tparser228202* p, NU8 mode) {
	Tnode214790* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL issigil;
		Tnode214790* a;
		LOC3 = 0;
		LOC3 = isoperator_228222((&(*p).tok));
		if (!LOC3) goto LA4;
		issigil = issigillike_228541((&(*p).tok));
		result = newnodep_228239(((NU8) 30), (&(*p)));
		a = newidentnodep_228258((*p).tok.ident, (&(*p)));
		addson_216807(result, a);
		gettok_228225(p);
		optind_228284(p, a);
		{
			NI baseind;
			Tnode214790* LOC10;
			if (!issigil) goto LA8;
			baseind = (*p).lex.currlineindent;
			LOC10 = 0;
			LOC10 = primary_229602(p, ((NU8) 3));
			addson_216807(result, LOC10);
			result = primarysuffix_229533(p, result, baseind);
		}
		goto LA6;
		LA8: ;
		{
			Tnode214790* LOC12;
			LOC12 = 0;
			LOC12 = primary_229602(p, ((NU8) 0));
			addson_216807(result, LOC12);
		}
		LA6: ;
		goto BeforeRet;
	}
	LA4: ;
	switch ((*p).tok.toktype) {
	case ((NU8) 63):
	{
		result = parsetuple_229842(p, (mode == ((NU8) 2)));
	}
	break;
	case ((NU8) 53):
	{
		result = parseprocexpr_229986(p, !(((6 &(1U<<((NU)(mode)&7U)))!=0)));
	}
	break;
	case ((NU8) 40):
	{
		result = parseprocexpr_229986(p, !(((6 &(1U<<((NU)(mode)&7U)))!=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_230090(p);
		}
		goto LA22;
		LA24: ;
		{
			result = newnodep_228239(((NU8) 150), (&(*p)));
			gettok_228225(p);
		}
		LA22: ;
	}
	break;
	case ((NU8) 49):
	{
		{
			if (!(mode == ((NU8) 2))) goto LA30;
			result = parseobject_230094(p);
		}
		goto LA28;
		LA30: ;
		{
			result = newnodep_228239(((NU8) 133), (&(*p)));
			gettok_228225(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_230098(p);
			{
				if (!wasgeneric) goto LA40;
				(*result).flags |= ((NU16)1)<<((((NU8) 1))%(sizeof(NU16)*8));
			}
			LA40: ;
		}
		goto LA34;
		LA36: ;
		{
			parmessage_228348((&(*p)), ((NU16) 12), (&(*p).tok));
		}
		LA34: ;
	}
	break;
	case ((NU8) 60):
	{
		Tlineinfo182337 info;
		Tnode214790* next;
		info = parlineinfo_228268((&(*p)));
		gettoknoind_228427(p);
		next = primary_229602(p, ((NU8) 0));
		{
			NIM_BOOL LOC46;
			NI LOC48;
			Tnodeseq214784* LOC51;
			TY230280 LOC52;
			LOC46 = 0;
			LOC46 = ((*next).kind == ((NU8) 41));
			if (!(LOC46)) goto LA47;
			LOC48 = 0;
			LOC48 = sonslen_217351(next);
			LOC46 = (LOC48 == ((NI) 1));
			LA47: ;
			if (!LOC46) goto LA49;
			LOC51 = 0;
			LOC51 = (Tnodeseq214784*) newSeq((&NTI214784), 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_216601(((NU8) 137), info, LOC51, NIM_NIL);
		}
		goto LA44;
		LA49: ;
		{
			Tnodeseq214784* LOC54;
			TY230280 LOC55;
			LOC54 = 0;
			LOC54 = (Tnodeseq214784*) newSeq((&NTI214784), 1);
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = next;
			asgnRefNoCycle((void**) (&LOC54->data[0]), LOC55[0]);
			result = newnode_216601(((NU8) 62), info, LOC54, NIM_NIL);
		}
		LA44: ;
	}
	break;
	case ((NU8) 8):
	{
		Tnode214790* LOC57;
		result = newnodep_228239(((NU8) 55), (&(*p)));
		gettok_228225(p);
		optind_228284(p, result);
		LOC57 = 0;
		LOC57 = primary_229602(p, ((NU8) 0));
		addson_216807(result, LOC57);
	}
	break;
	case ((NU8) 66):
	{
		result = parsetypedesckaux_230046(p, ((NU8) 143), mode);
	}
	break;
	case ((NU8) 52):
	{
		result = parsetypedesckaux_230046(p, ((NU8) 143), mode);
	}
	break;
	case ((NU8) 56):
	{
		result = parsetypedesckaux_230046(p, ((NU8) 141), mode);
	}
	break;
	case ((NU8) 54):
	{
		result = parsetypedesckaux_230046(p, ((NU8) 142), mode);
	}
	break;
	case ((NU8) 19):
	{
		result = parsetypedesckaux_230046(p, ((NU8) 146), mode);
	}
	break;
	default:
	{
		NI baseind;
		baseind = (*p).lex.currlineindent;
		result = identorliteral_229494(p, mode);
		{
			if (!!((mode == ((NU8) 3)))) goto LA66;
			result = primarysuffix_229533(p, result, baseind);
		}
		LA66: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, getprecedence_228567)(Ttoken205169* 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_228620)(Tparser228202* 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;
		result = NIM_TRUE;
	}
	LA7: ;
	return result;
}

static N_INLINE(void, checkbinary_228801)(Tparser228202* 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_205297((&(*p).tok));
			LOC14 = 0;
			LOC14 = nsuFormatSingleElem(((NimStringDesc*) &TMP1398), LOC13);
			parmessage_228229(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_228229(p, ((NU16) 4), ((NimStringDesc*) &TMP1399));
		}
		goto LA7;
		LA16: ;
		LA7: ;
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isrightassociative_228554)(Ttoken205169* 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(Tnode214790*, parseoperators_229613)(Tparser228202* p, Tnode214790* headnode, NI limit, NU8 mode) {
	Tnode214790* result;
	NI opprec;
	NU8 modeb;
	result = 0;
	result = headnode;
	opprec = getprecedence_228567((&(*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;
			Tnode214790* a;
			Tnode214790* opnode;
			Tnode214790* 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_228620((&(*p)));
			LOC8 = !(LOC12);
			LA11: ;
			if (!LOC8) goto LA7;
			checkbinary_228801((&(*p)));
			LOC13 = 0;
			LOC13 = isrightassociative_228554((&(*p).tok));
			leftassoc = (NI)(((NI) 1) - ((NI) (LOC13)));
			a = newnodep_228239(((NU8) 29), (&(*p)));
			opnode = newidentnodep_228258((*p).tok.ident, (&(*p)));
			gettok_228225(p);
			optind_228284(p, a);
			b = simpleexpraux_229607(p, (NI)(opprec + leftassoc), modeb);
			addson_216807(a, opnode);
			addson_216807(a, result);
			addson_216807(a, b);
			result = a;
			opprec = getprecedence_228567((&(*p).tok), (*p).strongspaces);
		} LA7: ;
	}
	return result;
}

N_NIMCALL(Tnode214790*, simpleexpraux_229607)(Tparser228202* p, NI limit, NU8 mode) {
	Tnode214790* result;
	result = 0;
	result = primary_229602(p, mode);
	result = parseoperators_229613(p, result, limit, mode);
	return result;
}

N_NIMCALL(Tnode214790*, simpleexpr_229337)(Tparser228202* p, NU8 mode) {
	Tnode214790* result;
	result = 0;
	result = simpleexpraux_229607(p, ((NI) -1), mode);
	return result;
}

N_NIMCALL(Tnode214790*, makecall_230327)(Tnode214790* n) {
	Tnode214790* 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_216248(((NU8) 27), (*n).info);
		add_215114(result, n);
	}
	LA1: ;
	return result;
}

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

N_NIMCALL(Tnode214790*, parsemacrocolon_229528)(Tparser228202* p, Tnode214790* x) {
	Tnode214790* result;
	result = 0;
	result = x;
	{
		NIM_BOOL LOC3;
		Tnode214790* 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_230327(result);
		gettok_228225(p);
		skipcomment_228234(p, result);
		stmtlist = newnodep_228239(((NU8) 115), (&(*p)));
		{
			Tnode214790* 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_228523(p);
			add_215114(stmtlist, body);
		}
		LA9: ;
		{
			while (1) {
				Tnode214790* b;
				Tnode214790* LOC19;
				if (!((*p).tok.indent == (*p).currind)) goto LA12;
				b = 0;
				switch ((*p).tok.toktype) {
				case ((NU8) 50):
				{
					b = newnodep_228239(((NU8) 85), (&(*p)));
					exprlist_228927(p, ((NU8) 107), b);
				}
				break;
				case ((NU8) 22):
				{
					Tnode214790* LOC15;
					b = newnodep_228239(((NU8) 86), (&(*p)));
					gettok_228225(p);
					optind_228284(p, b);
					LOC15 = 0;
					LOC15 = parseexpr_228519(p);
					addson_216807(b, LOC15);
				}
				break;
				case ((NU8) 26):
				{
					b = newnodep_228239(((NU8) 87), (&(*p)));
					exprlist_228927(p, ((NU8) 107), b);
				}
				break;
				case ((NU8) 23):
				{
					b = newnodep_228239(((NU8) 88), (&(*p)));
					gettok_228225(p);
				}
				break;
				default:
				{
					goto LA11;
				}
				break;
				}
				eat_228271(p, ((NU8) 107));
				LOC19 = 0;
				LOC19 = parsestmt_228523(p);
				addson_216807(b, LOC19);
				addson_216807(stmtlist, b);
				{
					if (!((*b).kind == ((NU8) 88))) goto LA22;
					goto LA11;
				}
				LA22: ;
			} LA12: ;
		} LA11: ;
		{
			NIM_BOOL LOC26;
			NI LOC27;
			Tnode214790* LOC29;
			Tnode214790* LOC32;
			LOC26 = 0;
			LOC27 = 0;
			LOC27 = len_215059(stmtlist);
			LOC26 = (LOC27 == ((NI) 1));
			if (!(LOC26)) goto LA28;
			LOC29 = 0;
			LOC29 = HEX5BHEX5D_215238(stmtlist, ((NI) 0));
			LOC26 = ((*LOC29).kind == ((NU8) 115));
			LA28: ;
			if (!LOC26) goto LA30;
			LOC32 = 0;
			LOC32 = HEX5BHEX5D_215238(stmtlist, ((NI) 0));
			add_215114(result, LOC32);
		}
		goto LA24;
		LA30: ;
		{
			add_215114(result, stmtlist);
		}
		LA24: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode214790*, parseexprstmt_230395)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
{	result = 0;
	a = simpleexpr_229337(p, ((NU8) 0));
	{
		Tnode214790* b;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA3;
		gettok_228225(p);
		optind_228284(p, result);
		b = parseexpr_228519(p);
		result = newnodei_216248(((NU8) 73), (*a).info);
		addson_216807(result, a);
		addson_216807(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) {
					Tnode214790* e;
					gettok_228225(p);
					optind_228284(p, result);
					e = parseexpr_228519(p);
					addson_216807(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_230016((&(*p)));
			LA22: ;
			if (!LOC21) goto LA23;
			{
				if (!((*a).kind == ((NU8) 26))) goto LA27;
				result = a;
			}
			goto LA25;
			LA27: ;
			{
				Tnodeseq214784* LOC30;
				TY230280 LOC31;
				LOC30 = 0;
				LOC30 = (Tnodeseq214784*) newSeq((&NTI214784), 1);
				memset((void*)LOC31, 0, sizeof(LOC31));
				LOC31[0] = a;
				asgnRefNoCycle((void**) (&LOC30->data[0]), LOC31[0]);
				result = newnode_216601(((NU8) 26), (*a).info, LOC30, NIM_NIL);
			}
			LA25: ;
			{
				while (1) {
					Tnode214790* e;
					e = parseexpr_228519(p);
					addson_216807(result, e);
					{
						if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA36;
						goto LA32;
					}
					LA36: ;
					gettok_228225(p);
					optind_228284(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_230327(result);
			parsedoblocks_228531(p, result);
			goto BeforeRet;
		}
		LA43: ;
		result = parsemacrocolon_229528(p, result);
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, simplestmt_231379)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 57):
	{
		result = parsereturnorraise_230707(p, ((NU8) 109));
	}
	break;
	case ((NU8) 55):
	{
		result = parsereturnorraise_230707(p, ((NU8) 108));
	}
	break;
	case ((NU8) 72):
	{
		result = parsereturnorraise_230707(p, ((NU8) 104));
	}
	break;
	case ((NU8) 18):
	{
		result = parsereturnorraise_230707(p, ((NU8) 114));
	}
	break;
	case ((NU8) 10):
	{
		result = parsereturnorraise_230707(p, ((NU8) 110));
	}
	break;
	case ((NU8) 15):
	{
		result = parsereturnorraise_230707(p, ((NU8) 111));
	}
	break;
	case ((NU8) 101):
	{
		result = parsestmtpragma_228312(p);
	}
	break;
	case ((NU8) 34):
	{
		result = parseimport_230601(p, ((NU8) 116));
	}
	break;
	case ((NU8) 27):
	{
		result = parseimport_230601(p, ((NU8) 118));
	}
	break;
	case ((NU8) 30):
	{
		result = parsefromstmt_230682(p);
	}
	break;
	case ((NU8) 36):
	{
		result = parseincludestmt_230657(p);
	}
	break;
	case ((NU8) 113):
	{
		result = newcommentstmt_230995(p);
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = isexprstart_230016((&(*p)));
			if (!LOC16) goto LA17;
			result = parseexprstmt_230395(p);
		}
		goto LA14;
		LA17: ;
		{
			result = emptynode_215801;
		}
		LA14: ;
	}
	break;
	}
	{
		if (!!(((*result).kind == ((NU8) 1) || (*result).kind == ((NU8) 125)))) goto LA22;
		skipcomment_228234(p, result);
	}
	LA22: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsestmt_228523)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	{
		NI oldind_231416;
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		result = newnodep_228239(((NU8) 115), (&(*p)));
		oldind_231416 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		{
			while (1) {
				Tnode214790* a;
				{
					if (!((*p).tok.indent == (*p).currind)) goto LA9;
				}
				goto LA7;
				LA9: ;
				{
					if (!((*p).tok.toktype == ((NU8) 106))) goto LA12;
					gettok_228225(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_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
					}
					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_229333(p);
				{
					if (!!(((*a).kind == ((NU8) 1)))) goto LA34;
					addson_216807(result, a);
				}
				goto LA32;
				LA34: ;
				{
					parmessage_228348((&(*p)), ((NU16) 62), (&(*p).tok));
					gettok_228225(p);
				}
				LA32: ;
			}
		} LA5: ;
		(*p).currind = oldind_231416;
	}
	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_228229((&(*p)), ((NU16) 157), ((NimStringDesc*) &TMP1267));
			result = emptynode_215801;
		}
		break;
		default:
		{
			{
				if (!(((NI) 0) < (*p).insemistmtlist)) goto LA42;
				result = simplestmt_231379(p);
				{
					if (!((*result).kind == ((NU8) 1))) goto LA46;
					parmessage_228348((&(*p)), ((NU16) 62), (&(*p).tok));
				}
				LA46: ;
			}
			goto LA40;
			LA42: ;
			{
				result = newnodep_228239(((NU8) 115), (&(*p)));
				{
					while (1) {
						Tnode214790* a;
						{
							if (!(((NI) 0) <= (*p).tok.indent)) goto LA53;
							parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
						}
						LA53: ;
						a = simplestmt_231379(p);
						{
							if (!((*a).kind == ((NU8) 1))) goto LA57;
							parmessage_228348((&(*p)), ((NU16) 62), (&(*p).tok));
						}
						LA57: ;
						add_215114(result, a);
						{
							if (!!(((*p).tok.toktype == ((NU8) 106)))) goto LA61;
							goto LA49;
						}
						LA61: ;
						gettok_228225(p);
					}
				} LA49: ;
			}
			LA40: ;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsecase_228308)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* b;
	NIM_BOOL inelif;
	NIM_BOOL wasindented;
	Tnode214790* LOC1;
	NI oldind;
	result = 0;
	b = 0;
	inelif = NIM_FALSE;
	wasindented = NIM_FALSE;
	result = newnodep_228239(((NU8) 97), (&(*p)));
	gettok_228225(p);
	LOC1 = 0;
	LOC1 = parseexpr_228519(p);
	addson_216807(result, LOC1);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA4;
		gettok_228225(p);
	}
	LA4: ;
	skipcomment_228234(p, result);
	oldind = (*p).currind;
	{
		if (!((*p).currind < (*p).tok.indent)) goto LA8;
		(*p).currind = (*p).tok.indent;
		wasindented = NIM_TRUE;
	}
	LA8: ;
	{
		while (1) {
			Tnode214790* 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_228239(((NU8) 85), (&(*p)));
				exprlist_228927(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 22):
			{
				Tnode214790* LOC18;
				inelif = NIM_TRUE;
				b = newnodep_228239(((NU8) 86), (&(*p)));
				gettok_228225(p);
				optind_228284(p, b);
				LOC18 = 0;
				LOC18 = parseexpr_228519(p);
				addson_216807(b, LOC18);
			}
			break;
			case ((NU8) 23):
			{
				b = newnodep_228239(((NU8) 88), (&(*p)));
				gettok_228225(p);
			}
			break;
			default:
			{
				goto LA10;
			}
			break;
			}
			colcom_228825(p, b);
			LOC21 = 0;
			LOC21 = parsestmt_228523(p);
			addson_216807(b, LOC21);
			addson_216807(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(Tnode214790*, parsetry_228303)(Tparser228202* p, NIM_BOOL isexpr) {
	Tnode214790* result;
	Tnode214790* LOC1;
	Tnode214790* b;
	result = 0;
	result = newnodep_228239(((NU8) 106), (&(*p)));
	gettok_228225(p);
	colcom_228825(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_228523(p);
	addson_216807(result, LOC1);
	b = NIM_NIL;
	{
		while (1) {
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			Tnode214790* 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_228239(((NU8) 87), (&(*p)));
				exprlist_228927(p, ((NU8) 107), b);
			}
			break;
			case ((NU8) 28):
			{
				b = newnodep_228239(((NU8) 107), (&(*p)));
				gettok_228225(p);
			}
			break;
			default:
			{
				goto LA2;
			}
			break;
			}
			colcom_228825(p, b);
			LOC11 = 0;
			LOC11 = parsestmt_228523(p);
			addson_216807(b, LOC11);
			addson_216807(result, b);
			{
				if (!((*b).kind == ((NU8) 107))) goto LA14;
				goto LA2;
			}
			LA14: ;
		} LA3: ;
	} LA2: ;
	{
		if (!(b == NIM_NIL)) goto LA18;
		parmessage_228229((&(*p)), ((NU16) 24), ((NimStringDesc*) &TMP1400));
	}
	LA18: ;
	return result;
}

N_NIMCALL(Tnode214790*, parseexpr_228519)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 33):
	{
		result = parseifexpr_229658(p, ((NU8) 48));
	}
	break;
	case ((NU8) 67):
	{
		result = parseifexpr_229658(p, ((NU8) 93));
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_228308(p);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetry_228303(p, NIM_TRUE);
	}
	break;
	default:
	{
		result = simpleexpr_229337(p, ((NU8) 0));
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, parseiforwhen_230722)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	{
		while (1) {
			Tnode214790* branch;
			Tnode214790* LOC3;
			Tnode214790* LOC4;
			gettok_228225(p);
			branch = newnodep_228239(((NU8) 86), (&(*p)));
			optind_228284(p, branch);
			LOC3 = 0;
			LOC3 = parseexpr_228519(p);
			addson_216807(branch, LOC3);
			colcom_228825(p, branch);
			LOC4 = 0;
			LOC4 = parsestmt_228523(p);
			addson_216807(branch, LOC4);
			skipcomment_228234(p, branch);
			addson_216807(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;
		Tnode214790* branch;
		Tnode214790* 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_228239(((NU8) 88), (&(*p)));
		eat_228271(p, ((NU8) 23));
		colcom_228825(p, branch);
		LOC21 = 0;
		LOC21 = parsestmt_228523(p);
		addson_216807(branch, LOC21);
		addson_216807(result, branch);
	}
	LA19: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsewhile_230749)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC1;
	Tnode214790* LOC2;
	result = 0;
	result = newnodep_228239(((NU8) 96), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	LOC1 = 0;
	LOC1 = parseexpr_228519(p);
	addson_216807(result, LOC1);
	colcom_228825(p, result);
	LOC2 = 0;
	LOC2 = parsestmt_228523(p);
	addson_216807(result, LOC2);
	return result;
}

N_NIMCALL(Tnode214790*, parseexceptblock_230813)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	Tnode214790* LOC1;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	gettok_228225(p);
	colcom_228825(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_228523(p);
	addson_216807(result, LOC1);
	return result;
}

N_NIMCALL(Tnode214790*, parsefor_230819)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
	Tnode214790* LOC3;
	Tnode214790* LOC4;
	result = 0;
	result = newnodep_228239(((NU8) 94), (&(*p)));
	gettoknoind_228427(p);
	a = identwithpragma_229747(p);
	addson_216807(result, a);
	{
		while (1) {
			if (!((*p).tok.toktype == ((NU8) 105))) goto LA2;
			gettok_228225(p);
			optind_228284(p, a);
			a = identwithpragma_229747(p);
			addson_216807(result, a);
		} LA2: ;
	}
	eat_228271(p, ((NU8) 35));
	LOC3 = 0;
	LOC3 = parseexpr_228519(p);
	addson_216807(result, LOC3);
	colcom_228825(p, result);
	LOC4 = 0;
	LOC4 = parsestmt_228523(p);
	addson_216807(result, LOC4);
	return result;
}

N_NIMCALL(Tnode214790*, parseblock_230835)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC7;
	result = 0;
	result = newnodep_228239(((NU8) 112), (&(*p)));
	gettoknoind_228427(p);
	{
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA3;
		addson_216807(result, emptynode_215801);
	}
	goto LA1;
	LA3: ;
	{
		Tnode214790* LOC6;
		LOC6 = 0;
		LOC6 = parsesymbol_228298(p, NIM_FALSE);
		addson_216807(result, LOC6);
	}
	LA1: ;
	colcom_228825(p, result);
	LOC7 = 0;
	LOC7 = parsestmt_228523(p);
	addson_216807(result, LOC7);
	return result;
}

N_NIMCALL(Tnode214790*, parsestaticordefer_230849)(Tparser228202* p, NU8 k) {
	Tnode214790* result;
	Tnode214790* LOC1;
	result = 0;
	result = newnodep_228239(k, (&(*p)));
	gettok_228225(p);
	colcom_228825(p, result);
	LOC1 = 0;
	LOC1 = parsestmt_228523(p);
	addson_216807(result, LOC1);
	return result;
}

N_NIMCALL(Tnode214790*, parseasm_230855)(Tparser228202* p) {
	Tnode214790* result;
{	result = 0;
	result = newnodep_228239(((NU8) 89), (&(*p)));
	gettoknoind_228427(p);
	{
		Tnode214790* LOC5;
		if (!((*p).tok.toktype == ((NU8) 101))) goto LA3;
		LOC5 = 0;
		LOC5 = parsepragma_229676(p);
		addson_216807(result, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA1: ;
	switch ((*p).tok.toktype) {
	case ((NU8) 87):
	{
		Tnode214790* LOC8;
		LOC8 = 0;
		LOC8 = newstrnodep_228253(((NU8) 20), (*p).tok.literal, (&(*p)));
		addson_216807(result, LOC8);
	}
	break;
	case ((NU8) 88):
	{
		Tnode214790* LOC10;
		LOC10 = 0;
		LOC10 = newstrnodep_228253(((NU8) 21), (*p).tok.literal, (&(*p)));
		addson_216807(result, LOC10);
	}
	break;
	case ((NU8) 89):
	{
		Tnode214790* LOC12;
		LOC12 = 0;
		LOC12 = newstrnodep_228253(((NU8) 22), (*p).tok.literal, (&(*p)));
		addson_216807(result, LOC12);
	}
	break;
	default:
	{
		parmessage_228229((&(*p)), ((NU16) 6), ((NimStringDesc*) &TMP1267));
		addson_216807(result, emptynode_215801);
		goto BeforeRet;
	}
	break;
	}
	gettok_228225(p);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsepattern_230942)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	eat_228271(p, ((NU8) 97));
	result = parsestmt_228523(p);
	eat_228271(p, ((NU8) 98));
	return result;
}

N_NIMCALL(Tnode214790*, parsegenericparam_230869)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* a;
{	result = 0;
	a = 0;
	result = newnodep_228239(((NU8) 35), (&(*p)));
	{
		while (1) {
			switch ((*p).tok.toktype) {
			case ((NU8) 2):
			case ((NU8) 114):
			{
				a = parsesymbol_228298(p, NIM_FALSE);
				{
					if (!((*a).kind == ((NU8) 1))) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA11;
				goto LA1;
			}
			LA11: ;
			gettok_228225(p);
			optind_228284(p, a);
		}
	} LA1: ;
	{
		Tnode214790* LOC17;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA15;
		gettok_228225(p);
		optind_228284(p, result);
		LOC17 = 0;
		LOC17 = parseexpr_228519(p);
		addson_216807(result, LOC17);
	}
	goto LA13;
	LA15: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA13: ;
	{
		Tnode214790* LOC23;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA21;
		gettok_228225(p);
		optind_228284(p, result);
		LOC23 = 0;
		LOC23 = parseexpr_228519(p);
		addson_216807(result, LOC23);
	}
	goto LA19;
	LA21: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA19: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsegenericparamlist_230913)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 75), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			Tnode214790* a;
			if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA2;
			a = parsegenericparam_230869(p);
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105) || (*p).tok.toktype == ((NU8) 106)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_228225(p);
			skipcomment_228234(p, a);
		} LA2: ;
	} LA1: ;
	optpar_228280(p);
	eat_228271(p, ((NU8) 96));
	return result;
}

N_NIMCALL(void, indandcomment_228289)(Tparser228202* p, Tnode214790* n) {
	{
		if (!((*p).currind < (*p).tok.indent)) goto LA3;
		{
			if (!((*p).tok.toktype == ((NU8) 113))) goto LA7;
			rawskipcomment_228375(p, n);
		}
		goto LA5;
		LA7: ;
		{
			parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		skipcomment_228234(p, n);
	}
	LA1: ;
}

N_NIMCALL(Tnode214790*, parseroutine_230952)(Tparser228202* p, NU8 kind) {
	Tnode214790* result;
	Tnode214790* LOC1;
	Tnode214790* LOC18;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	LOC1 = 0;
	LOC1 = identvis_229732(p);
	addson_216807(result, LOC1);
	{
		NIM_BOOL LOC4;
		Tnode214790* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 97));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_230947(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsepattern_230942(p);
		addson_216807(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA2: ;
	{
		NIM_BOOL LOC12;
		Tnode214790* LOC16;
		LOC12 = 0;
		LOC12 = ((*p).tok.toktype == ((NU8) 95));
		if (!(LOC12)) goto LA13;
		LOC12 = validind_230947(p);
		LA13: ;
		if (!LOC12) goto LA14;
		LOC16 = 0;
		LOC16 = parsegenericparamlist_230913(p);
		add_215114(result, LOC16);
	}
	goto LA10;
	LA14: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA10: ;
	LOC18 = 0;
	LOC18 = parseparamlist_228536(p, NIM_TRUE);
	addson_216807(result, LOC18);
	{
		NIM_BOOL LOC21;
		Tnode214790* LOC25;
		LOC21 = 0;
		LOC21 = ((*p).tok.toktype == ((NU8) 101));
		if (!(LOC21)) goto LA22;
		LOC21 = validind_230947(p);
		LA22: ;
		if (!LOC21) goto LA23;
		LOC25 = 0;
		LOC25 = parsepragma_229676(p);
		addson_216807(result, LOC25);
	}
	goto LA19;
	LA23: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA19: ;
	addson_216807(result, emptynode_215801);
	{
		NIM_BOOL LOC29;
		Tnode214790* LOC33;
		LOC29 = 0;
		LOC29 = ((*p).tok.toktype == ((NU8) 109));
		if (!(LOC29)) goto LA30;
		LOC29 = validind_230947(p);
		LA30: ;
		if (!LOC29) goto LA31;
		gettok_228225(p);
		skipcomment_228234(p, result);
		LOC33 = 0;
		LOC33 = parsestmt_228523(p);
		addson_216807(result, LOC33);
	}
	goto LA27;
	LA31: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA27: ;
	indandcomment_228289(p, result);
	return result;
}

N_NIMCALL(Tnode214790*, parsesection_231006)(Tparser228202* p, NU8 kind, Tdefparser231002 defparser) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(kind, (&(*p)));
	{
		if (!!((kind == ((NU8) 98)))) goto LA3;
		gettok_228225(p);
	}
	LA3: ;
	skipcomment_228234(p, result);
	{
		NI oldind_231023;
		if (!((*p).currind < (*p).tok.indent)) goto LA7;
		oldind_231023 = (*p).currind;
		(*p).currind = (*p).tok.indent;
		skipcomment_228234(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):
				{
					Tnode214790* a;
					a = defparser(p);
					skipcomment_228234(p, a);
					addson_216807(result, a);
				}
				break;
				case ((NU8) 113):
				{
					Tnode214790* a;
					a = newcommentstmt_230995(p);
					addson_216807(result, a);
				}
				break;
				default:
				{
					parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
					goto LA9;
				}
				break;
				}
			} LA10: ;
		} LA9: ;
		(*p).currind = oldind_231023;
		{
			NI LOC16;
			LOC16 = 0;
			LOC16 = len_215059(result);
			if (!(LOC16 == ((NI) 0))) goto LA17;
			parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
		}
		LA17: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		Tnode214790* 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_216807(result, LOC24);
	}
	goto LA5;
	LA22: ;
	{
		parmessage_228348((&(*p)), ((NU16) 20), (&(*p).tok));
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsetypedefaux_230322)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = simpleexpr_229337(p, ((NU8) 2));
	return result;
}

N_NIMCALL(Tnode214790*, parsetypedef_231280)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC1;
	result = 0;
	result = newnodep_228239(((NU8) 103), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_229747(p);
	addson_216807(result, LOC1);
	{
		NIM_BOOL LOC4;
		Tnode214790* LOC8;
		LOC4 = 0;
		LOC4 = ((*p).tok.toktype == ((NU8) 95));
		if (!(LOC4)) goto LA5;
		LOC4 = validind_230947(p);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC8 = 0;
		LOC8 = parsegenericparamlist_230913(p);
		addson_216807(result, LOC8);
	}
	goto LA2;
	LA6: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA2: ;
	{
		Tnode214790* LOC14;
		if (!((*p).tok.toktype == ((NU8) 109))) goto LA12;
		gettok_228225(p);
		optind_228284(p, result);
		LOC14 = 0;
		LOC14 = parsetypedefaux_230322(p);
		addson_216807(result, LOC14);
	}
	goto LA10;
	LA12: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA10: ;
	indandcomment_228289(p, result);
	return result;
}

N_NIMCALL(Tnode214790*, parseconstant_231039)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC1;
	Tnode214790* LOC8;
	result = 0;
	result = newnodep_228239(((NU8) 102), (&(*p)));
	LOC1 = 0;
	LOC1 = identwithpragma_229747(p);
	addson_216807(result, LOC1);
	{
		Tnode214790* LOC6;
		if (!((*p).tok.toktype == ((NU8) 107))) goto LA4;
		gettok_228225(p);
		optind_228284(p, result);
		LOC6 = 0;
		LOC6 = parsetypedesc_228527(p);
		addson_216807(result, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		addson_216807(result, emptynode_215801);
	}
	LA2: ;
	eat_228271(p, ((NU8) 109));
	optind_228284(p, result);
	LOC8 = 0;
	LOC8 = parseexpr_228519(p);
	addson_216807(result, LOC8);
	indandcomment_228289(p, result);
	return result;
}

N_NIMCALL(Tnode214790*, parsevartuple_231303)(Tparser228202* p) {
	Tnode214790* result;
	Tnode214790* LOC7;
	result = 0;
	result = newnodep_228239(((NU8) 36), (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			Tnode214790* a;
			if (!((*p).tok.toktype == ((NU8) 2) || (*p).tok.toktype == ((NU8) 114))) goto LA2;
			a = identwithpragma_229747(p);
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_228225(p);
			skipcomment_228234(p, a);
		} LA2: ;
	} LA1: ;
	addson_216807(result, emptynode_215801);
	optpar_228280(p);
	eat_228271(p, ((NU8) 94));
	eat_228271(p, ((NU8) 109));
	optind_228284(p, result);
	LOC7 = 0;
	LOC7 = parseexpr_228519(p);
	addson_216807(result, LOC7);
	return result;
}

N_NIMCALL(Tnode214790*, parsevariable_231330)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	{
		if (!((*p).tok.toktype == ((NU8) 93))) goto LA3;
		result = parsevartuple_231303(p);
	}
	goto LA1;
	LA3: ;
	{
		result = parseidentcolonequals_229768(p, 1);
	}
	LA1: ;
	indandcomment_228289(p, result);
	return result;
}

N_NIMCALL(Tnode214790*, qualifiedident_228969)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = parsesymbol_228298(p, NIM_FALSE);
	{
		if (!((*p).tok.toktype == ((NU8) 110))) goto LA3;
		result = dotexpr_228962(p, result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsebind_231345)(Tparser228202* p, NU8 k) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(k, (&(*p)));
	gettok_228225(p);
	optind_228284(p, result);
	{
		while (1) {
			Tnode214790* a;
			a = qualifiedident_228969(p);
			addson_216807(result, a);
			{
				if (!!(((*p).tok.toktype == ((NU8) 105)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			gettok_228225(p);
			optind_228284(p, a);
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, complexorsimplestmt_229333)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	switch ((*p).tok.toktype) {
	case ((NU8) 33):
	{
		result = parseiforwhen_230722(p, ((NU8) 92));
	}
	break;
	case ((NU8) 68):
	{
		result = parsewhile_230749(p);
	}
	break;
	case ((NU8) 11):
	{
		result = parsecase_228308(p);
	}
	break;
	case ((NU8) 62):
	{
		result = parsetry_228303(p, NIM_FALSE);
	}
	break;
	case ((NU8) 28):
	{
		result = parseexceptblock_230813(p, ((NU8) 107));
	}
	break;
	case ((NU8) 26):
	{
		result = parseexceptblock_230813(p, ((NU8) 87));
	}
	break;
	case ((NU8) 29):
	{
		result = parsefor_230819(p);
	}
	break;
	case ((NU8) 9):
	{
		result = parseblock_230835(p);
	}
	break;
	case ((NU8) 60):
	{
		result = parsestaticordefer_230849(p, ((NU8) 113));
	}
	break;
	case ((NU8) 17):
	{
		result = parsestaticordefer_230849(p, ((NU8) 105));
	}
	break;
	case ((NU8) 6):
	{
		result = parseasm_230855(p);
	}
	break;
	case ((NU8) 53):
	{
		result = parseroutine_230952(p, ((NU8) 79));
	}
	break;
	case ((NU8) 43):
	{
		result = parseroutine_230952(p, ((NU8) 80));
	}
	break;
	case ((NU8) 40):
	{
		result = parseroutine_230952(p, ((NU8) 84));
	}
	break;
	case ((NU8) 42):
	{
		result = parseroutine_230952(p, ((NU8) 82));
	}
	break;
	case ((NU8) 61):
	{
		result = parseroutine_230952(p, ((NU8) 83));
	}
	break;
	case ((NU8) 16):
	{
		result = parseroutine_230952(p, ((NU8) 81));
	}
	break;
	case ((NU8) 64):
	{
		gettok_228225(p);
		{
			Tnode214790* LOC23;
			if (!((*p).tok.toktype == ((NU8) 93))) goto LA21;
			gettok_228225(p);
			result = newnodep_228239(((NU8) 132), (&(*p)));
			LOC23 = 0;
			LOC23 = primary_229602(p, ((NU8) 1));
			addson_216807(result, LOC23);
			eat_228271(p, ((NU8) 94));
			result = parseoperators_229613(p, result, ((NI) -1), ((NU8) 0));
		}
		goto LA19;
		LA21: ;
		{
			result = parsesection_231006(p, ((NU8) 98), parsetypedef_231280);
		}
		LA19: ;
	}
	break;
	case ((NU8) 14):
	{
		result = parsesection_231006(p, ((NU8) 101), parseconstant_231039);
	}
	break;
	case ((NU8) 41):
	{
		result = parsesection_231006(p, ((NU8) 100), parsevariable_231330);
	}
	break;
	case ((NU8) 67):
	{
		result = parseiforwhen_230722(p, ((NU8) 93));
	}
	break;
	case ((NU8) 66):
	{
		result = parsesection_231006(p, ((NU8) 99), parsevariable_231330);
	}
	break;
	case ((NU8) 8):
	{
		result = parsebind_231345(p, ((NU8) 122));
	}
	break;
	case ((NU8) 44):
	{
		result = parsebind_231345(p, ((NU8) 123));
	}
	break;
	case ((NU8) 65):
	{
		result = parsebind_231345(p, ((NU8) 124));
	}
	break;
	default:
	{
		result = simplestmt_231379(p);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, parseall_228210)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = newnodep_228239(((NU8) 115), (&(*p)));
	{
		while (1) {
			Tnode214790* a;
			if (!!(((*p).tok.toktype == ((NU8) 1)))) goto LA2;
			a = complexorsimplestmt_229333(p);
			{
				if (!!(((*a).kind == ((NU8) 1)))) goto LA5;
				addson_216807(result, a);
			}
			goto LA3;
			LA5: ;
			{
				parmessage_228348((&(*p)), ((NU16) 62), (&(*p).tok));
				gettok_228225(p);
			}
			LA3: ;
			{
				if (!!(((*p).tok.indent == ((NI) 0)))) goto LA10;
				parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
			}
			LA10: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, closeparser_228214)(Tparser228202* p) {
	closelexer_205335((&(*p).lex));
}

N_NIMCALL(Tnode214790*, parsetoplevelstmt_228218)(Tparser228202* p) {
	Tnode214790* result;
	result = 0;
	result = emptynode_215801;
	{
		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_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
				}
				goto LA7;
				LA14: ;
				LA7: ;
			}
			LA5: ;
			(*p).firsttok = NIM_FALSE;
			switch ((*p).tok.toktype) {
			case ((NU8) 106):
			{
				gettok_228225(p);
				{
					if (!((*p).tok.indent <= ((NI) 0))) goto LA19;
				}
				goto LA17;
				LA19: ;
				{
					parmessage_228229((&(*p)), ((NU16) 34), ((NimStringDesc*) &TMP1267));
				}
				LA17: ;
				(*p).firsttok = NIM_TRUE;
			}
			break;
			case ((NU8) 1):
			{
				goto LA1;
			}
			break;
			default:
			{
				result = complexorsimplestmt_229333(p);
				{
					if (!((*result).kind == ((NU8) 1))) goto LA26;
					parmessage_228348((&(*p)), ((NU16) 62), (&(*p).tok));
				}
				LA26: ;
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, parsestring_231536)(NimStringDesc* s, NimStringDesc* filename, NI line, Terrorhandler205171 errorhandler) {
	Tnode214790* result;
	Tllstream202204* stream;
	Tparser228202 parser;
	result = 0;
	stream = llstreamopen_202217(s);
	(*stream).lineoffset = line;
	memset((void*)(&parser), 0, sizeof(parser));
	objectInit((&parser), (&NTI228202));
	parser.lex.errorhandler.ClEnv = errorhandler.ClEnv;
	parser.lex.errorhandler.ClPrc = errorhandler.ClPrc;
	openparser_228331((&parser), filename, stream, NIM_FALSE);
	result = parseall_228210((&parser));
	closeparser_228214((&parser));
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_parserInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_parserDatInit000)(void) {
static TNimNode* TMP1208[7];
static TNimNode TMP882[8];
NTI228202.size = sizeof(Tparser228202);
NTI228202.kind = 18;
NTI228202.base = 0;
TMP1208[0] = &TMP882[1];
TMP882[1].kind = 1;
TMP882[1].offset = offsetof(Tparser228202, currind);
TMP882[1].typ = (&NTI104);
TMP882[1].name = "currInd";
TMP1208[1] = &TMP882[2];
TMP882[2].kind = 1;
TMP882[2].offset = offsetof(Tparser228202, firsttok);
TMP882[2].typ = (&NTI130);
TMP882[2].name = "firstTok";
TMP1208[2] = &TMP882[3];
TMP882[3].kind = 1;
TMP882[3].offset = offsetof(Tparser228202, strongspaces);
TMP882[3].typ = (&NTI130);
TMP882[3].name = "strongSpaces";
TMP1208[3] = &TMP882[4];
TMP882[4].kind = 1;
TMP882[4].offset = offsetof(Tparser228202, lex);
TMP882[4].typ = (&NTI205173);
TMP882[4].name = "lex";
TMP1208[4] = &TMP882[5];
TMP882[5].kind = 1;
TMP882[5].offset = offsetof(Tparser228202, tok);
TMP882[5].typ = (&NTI205169);
TMP882[5].name = "tok";
TMP1208[5] = &TMP882[6];
TMP882[6].kind = 1;
TMP882[6].offset = offsetof(Tparser228202, inpragma);
TMP882[6].typ = (&NTI104);
TMP882[6].name = "inPragma";
TMP1208[6] = &TMP882[7];
TMP882[7].kind = 1;
TMP882[7].offset = offsetof(Tparser228202, insemistmtlist);
TMP882[7].typ = (&NTI104);
TMP882[7].name = "inSemiStmtList";
TMP882[0].len = 7; TMP882[0].kind = 2; TMP882[0].sons = &TMP1208[0];
NTI228202.node = &TMP882[0];
}

