/* Generated by Nim Compiler v1.2.4 */
/*   (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw;
typedef struct tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw;
typedef struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw;
typedef struct tyObject_TParsers__WENTuyElSRFloaVOQEDvMg tyObject_TParsers__WENTuyElSRFloaVOQEDvMg;
typedef struct tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw;
typedef struct tyObject_TLexer__PdyFIzn4patQ2zB5OFD9cjw tyObject_TLexer__PdyFIzn4patQ2zB5OFD9cjw;
typedef struct tyObject_TBaseLexer__jTxk7Uc2dfr9aTDL2dZhO9ag tyObject_TBaseLexer__jTxk7Uc2dfr9aTDL2dZhO9ag;
typedef struct RootObj RootObj;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g;
typedef struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q;
typedef struct tyObject_TToken__kLaEEPwLj8cag79cbYQIkHQ tyObject_TToken__kLaEEPwLj8cag79cbYQIkHQ;
typedef struct tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA;
typedef struct tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ;
typedef struct tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w;
typedef struct tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ;
typedef struct tyObject_Target__9abOl5DLX8suLujOaHSvGzw tyObject_Target__9abOl5DLX8suLujOaHSvGzw;
typedef struct tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg;
typedef struct tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A;
typedef struct tySequence__tNFrR3kRuS1FSwuiLGoSSA tySequence__tNFrR3kRuS1FSwuiLGoSSA;
typedef struct tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA;
typedef struct tySequence__7lEisrXlQEzwtUKW5pzRCw tySequence__7lEisrXlQEzwtUKW5pzRCw;
typedef struct tySequence__Zi9cGbCWofbtABoHJ5RbLNQ tySequence__Zi9cGbCWofbtABoHJ5RbLNQ;
typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tySequence__pK3qSsBZwdXd6qyUMkd5Jw tySequence__pK3qSsBZwdXd6qyUMkd5Jw;
typedef struct tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ;
typedef struct tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA;
typedef struct tyTuple__z822nu9bFF1AlQnLrHjdwpA tyTuple__z822nu9bFF1AlQnLrHjdwpA;
typedef struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw tyTuple__xYhUhS7X82rKTqbT9bRfCnw;
typedef struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw;
typedef struct tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg;
typedef NU8 tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw;
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {
NI size;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
struct RootObj {
TNimType* m_type;
};
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct tyObject_TBaseLexer__jTxk7Uc2dfr9aTDL2dZhO9ag {
  RootObj Sup;
NI bufpos;
NimStringDesc* buf;
tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* stream;
NI lineNumber;
NI sentinel;
NI lineStart;
NI offsetBase;
};
typedef NU8 tyEnum_CursorPosition__moKbK9a5baLOKMP3AQAcKoQ;
typedef NU8 tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg, void* ClE_0);
void* ClE_0;
} tyProc__eADjAhqPI0ogAK7A2xrf0A;
struct tyObject_TLexer__PdyFIzn4patQ2zB5OFD9cjw {
  tyObject_TBaseLexer__jTxk7Uc2dfr9aTDL2dZhO9ag Sup;
NI32 fileIdx;
NI indentAhead;
NI currLineIndent;
NIM_BOOL strongSpaces;
NIM_BOOL allowTabs;
tyEnum_CursorPosition__moKbK9a5baLOKMP3AQAcKoQ cursor;
tyProc__eADjAhqPI0ogAK7A2xrf0A errorHandler;
tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache;
tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config;
};
typedef NU8 tyEnum_TTokType__vw8YkgaVtNadqP8v5OpXKA;
typedef NU8 tyEnum_TNumericalBase__9cbxR9czWgoXwHHSzHtd9aV7Q;
struct tyObject_TToken__kLaEEPwLj8cag79cbYQIkHQ {
tyEnum_TTokType__vw8YkgaVtNadqP8v5OpXKA tokType;
NI indent;
tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident;
NI64 iNumber;
NF fNumber;
tyEnum_TNumericalBase__9cbxR9czWgoXwHHSzHtd9aV7Q base;
NI8 strongSpaceA;
NI8 strongSpaceB;
NimStringDesc* literal;
NI line;
NI col;
};
struct tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw {
NI currInd;
NIM_BOOL firstTok;
NIM_BOOL hasProgress;
tyObject_TLexer__PdyFIzn4patQ2zB5OFD9cjw lex;
tyObject_TToken__kLaEEPwLj8cag79cbYQIkHQ tok;
NI inPragma;
NI inSemiStmtList;
tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* emptyNode;
};
struct tyObject_TParsers__WENTuyElSRFloaVOQEDvMg {
tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw skin;
tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw parser;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef NU8 tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg;
struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q {
NU16 line;
NI16 col;
NI32 fileIndex;
};
typedef NU32 tySet_tyEnum_TNodeFlag__jyh9acXHkhZANSSvPIY7ZLg;
typedef NU8 tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw;
struct tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw {
tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ* typ;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info;
tySet_tyEnum_TNodeFlag__jyh9acXHkhZANSSvPIY7ZLg flags;
tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw kind;
union{
struct {NI64 intVal;
} _kind_1;
struct {NF floatVal;
} _kind_2;
struct {NimStringDesc* strVal;
} _kind_3;
struct {tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* sym;
} _kind_4;
struct {tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident;
} _kind_5;
struct {tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ* sons;
} _kind_6;
};
NimStringDesc* comment;
};
typedef NU8 tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag;
typedef NU8 tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ;
struct tyObject_Target__9abOl5DLX8suLujOaHSvGzw {
tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag targetCPU;
tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag hostCPU;
tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ targetOS;
tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ hostOS;
NI intSize;
NI floatSize;
NI ptrSize;
NimStringDesc* tnl;
};
typedef NU32 tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg;
typedef NU64 tySet_tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw;
typedef NU8 tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA;
struct tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA {
tySequence__7lEisrXlQEzwtUKW5pzRCw* data;
NI counter;
};
struct tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A {
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q trackPos;
NIM_BOOL trackPosAttached;
tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA errorOutputs;
tySequence__tNFrR3kRuS1FSwuiLGoSSA* msgContext;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastError;
tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA filenameToIndexTbl;
tySequence__Zi9cGbCWofbtABoHJ5RbLNQ* fileInfos;
NI32 systemFileIdx;
};
typedef NU8 tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw;
typedef NU8 tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw;
typedef NU8 tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ;
typedef NU8 tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ;
struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {
tySequence__4eRCaZmrYLLw2k30GPTiMw* data;
NI counter;
};
typedef NU16 tySet_tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ;
typedef NU8 tySet_tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA;
typedef NU8 tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ;
typedef NU8 tyEnum_TSystemCC__1eWBJUonHMOnlBwsOvpFmA;
typedef NU8 tySet_tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA[9];
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ* result, void* ClE_0);
void* ClE_0;
} tyProc__QYEVXrYc9beQ379crS3rzqRA;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (NimStringDesc* output, void* ClE_0);
void* ClE_0;
} tyProc__Q1W5D85O9cNu3iq9cZ9alS9aWA;
typedef NU8 tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity, void* ClE_0);
void* ClE_0;
} tyProc__22mgIiTBBoqNe1T0FSw9ahQ;
struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw {
tyObject_Target__9abOl5DLX8suLujOaHSvGzw target;
NI linesCompiled;
tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg options;
tySet_tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw globalOptions;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* macrosToExpand;
tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A m;
NI evalTemplateCounter;
NI evalMacroCounter;
NI8 exitcode;
tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw cmd;
tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw selectedGC;
tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ exc;
NI verbosity;
NI numberOfProcessors;
NimStringDesc* evalExpr;
NF lastCmdTime;
tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ symbolFiles;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg cppDefines;
NimStringDesc* headerFile;
tySet_tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ features;
tySet_tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA legacyFeatures;
NimStringDesc* arguments;
tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ ideCmd;
NIM_BOOL oldNewlines;
tyEnum_TSystemCC__1eWBJUonHMOnlBwsOvpFmA cCompiler;
tySet_tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA modifiedyNotes;
tySet_tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA cmdlineNotes;
tySet_tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA foreignPackageNotes;
tySet_tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA notes;
tySet_tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA mainPackageNotes;
NI mainPackageId;
NI errorCounter;
NI hintCounter;
NI warnCounter;
NI errorMax;
NI maxLoopIterationsVM;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* configVars;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* symbols;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* packageCache;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* nimblePaths;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* searchPaths;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* lazyPaths;
NimStringDesc* outFile;
NimStringDesc* outDir;
NimStringDesc* prefixDir;
NimStringDesc* libpath;
NimStringDesc* nimcacheDir;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* dllOverrides;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* moduleOverrides;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* cfileSpecificOptions;
NimStringDesc* projectName;
NimStringDesc* projectPath;
NimStringDesc* projectFull;
NIM_BOOL projectIsStdin;
NI32 projectMainIdx;
NimStringDesc* command;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* commandArgs;
NimStringDesc* commandLine;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* extraCmds;
NIM_BOOL keepComments;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* implicitImports;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* implicitIncludes;
NimStringDesc* docSeeSrcUrl;
NimStringDesc* docRoot;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cIncludes;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cLibs;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cLinkedLibs;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* externalToLink;
NimStringDesc* linkOptionsCmd;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* compileOptionsCmd;
NimStringDesc* linkOptions;
NimStringDesc* compileOptions;
NimStringDesc* cCompilerPath;
tySequence__pK3qSsBZwdXd6qyUMkd5Jw* toCompile;
tyProc__QYEVXrYc9beQ379crS3rzqRA suggestionResultHook;
NI suggestVersion;
NI suggestMaxResults;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastLineInfo;
tyProc__Q1W5D85O9cNu3iq9cZ9alS9aWA writelnHook;
tyProc__22mgIiTBBoqNe1T0FSw9ahQ structuredErrorHook;
NimStringDesc* cppCustomNamespace;
};
typedef NU8 tyEnum_TLLStreamKind__jVcKY16LbOamXE9bxXUD6pQ;
typedef struct {
N_NIMCALL_PTR(NI, ClP_0) (tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* s, void* buf, NI bufLen, void* ClE_0);
void* ClE_0;
} tyProc__vqN8F2I9cNb9agHf5QUpC2lg;
struct tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g {
  RootObj Sup;
tyEnum_TLLStreamKind__jVcKY16LbOamXE9bxXUD6pQ kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineOffset;
tyProc__vqN8F2I9cNb9agHf5QUpC2lg repl;
};
typedef NU8 tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw[21];
struct tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA {
  RootObj Sup;
NI id;
};
struct tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA {
  tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA Sup;
NimStringDesc* s;
tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* next;
NI h;
};
typedef NU8 tySet_tyEnum_TRenderFlag__wrPgUo1ExBlHvFnXN2nSHw;
typedef NU8 tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg;
typedef NimStringDesc* tyArray__cM0k9buRoahrhdhCHJaeg8w[4];
typedef NimStringDesc* tyArray__8GOl8NvXQYALGK9b1NT1qPQ[2];
typedef NU8 tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA;
typedef NimStringDesc* tyArray__8ZvwQIddfpj2THRVPsFzIQ[1];
typedef NU8 tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ;
struct tyTuple__z822nu9bFF1AlQnLrHjdwpA {
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q Field0;
NimStringDesc* Field1;
};
struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw {
NI Field0;
NimStringDesc* Field1;
NI32 Field2;
};
struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw {
NimStringDesc* fullPath;
NimStringDesc* projPath;
NimStringDesc* shortName;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* quotedName;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* quotedFullName;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* lines;
NimStringDesc* dirtyFile;
NimStringDesc* hash;
NIM_BOOL dirty;
};
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
NI Field0;
NimStringDesc* Field1;
};
typedef NU8 tySet_tyEnum_CfileFlag__Vl9c9ayddDuXiWtnWTsEYGsA;
struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg {
NimStringDesc* nimname;
NimStringDesc* cname;
NimStringDesc* obj;
tySet_tyEnum_CfileFlag__Vl9c9ayddDuXiWtnWTsEYGsA flags;
};
struct tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ {
  TGenericSeq Sup;
  tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* data[SEQ_DECL_SIZE];
};
struct tySequence__tNFrR3kRuS1FSwuiLGoSSA {
  TGenericSeq Sup;
  tyTuple__z822nu9bFF1AlQnLrHjdwpA data[SEQ_DECL_SIZE];
};
struct tySequence__7lEisrXlQEzwtUKW5pzRCw {
  TGenericSeq Sup;
  tyTuple__xYhUhS7X82rKTqbT9bRfCnw data[SEQ_DECL_SIZE];
};
struct tySequence__Zi9cGbCWofbtABoHJ5RbLNQ {
  TGenericSeq Sup;
  tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw data[SEQ_DECL_SIZE];
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
  TGenericSeq Sup;
  tyTuple__QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE];
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__pK3qSsBZwdXd6qyUMkd5Jw {
  TGenericSeq Sup;
  tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(void, objectInit)(void* dest, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, setupParsers__2gNWFYMPzEmvk89cUm7cGrQ)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, NI32 fileIdx, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPathConsiderDirty__fr10i3QiqDDNG5EqWBCesA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, open__gq12VLhVO0NBzUTnGgz4nw)(FILE** f, NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
N_LIB_PRIVATE N_NIMCALL(void, rawMessage__h30HgTFwbGq0PsyHmRqZ8g)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_LIB_PRIVATE N_NIMCALL(void, openParsers__yIpcSxqaMQcd6kNqikzXtg)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, NI32 fileIdx, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* inputstream, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parsePipe__8I0pUWXaIJkp9a02xsmaA7w)(NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* inputStream, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config);
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, newNode__PMZ27S9ai4FB3gXOMDXvwsQ)(tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw kind);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, llStreamOpen__knWUQJsEzojha6AJCi6LcA)(NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, llStreamReadLine__7RtV9aJubfIMSghb2POqd9ag)(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* s, NimStringDesc** line);
N_LIB_PRIVATE N_NIMCALL(NI, utf8Bom__W9bilWV9c2aPqoO8VGO8j9aDg)(NimStringDesc* s);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, containsShebang__4VNLl9c9aLr7UITlrm3yuV9bA)(NimStringDesc* s, NI i);
static N_INLINE(NIM_BOOL, nimAddInt)(NI a, NI b, NI* res);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(void, openParser__VZUcy9bQgXXeGGRhyp8109aA)(tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw* p, NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* inputStream, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, llStreamOpen__jzv9bBGhVSDMwEPDegAAa2w)(NimStringDesc* data);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__iGg0RIKceRvsmvq8FUHOEw)(NimStringDesc* s, NI first);
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parseAll__x3UAdSvBfIIO33m4gWdOPg)(tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw* p);
N_LIB_PRIVATE N_NIMCALL(void, closeParser__Xu4eHJ43ZFePtQEl7xNDtQ_5)(tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw* p);
N_LIB_PRIVATE N_NIMCALL(void, llStreamClose__pzACjlxXGrH2rRQU5WrSmg)(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* s);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, evalPipe__X8me6QGn9bmUk4D7Fr4dH1A)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* start);
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, applyFilter__lO9a0smwGhgzbvQh3OJRR0A)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* stdin_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA*, getCallee__5TuEISXkk9cbe8wX26PC16w)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n);
N_LIB_PRIVATE N_NIMCALL(void, localError__NF6kBGchnhQYPbCedyefVA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* arg);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderTree__ppjdh9aQ5L0SGPF8yz1gZ9cA)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, tySet_tyEnum_TRenderFlag__wrPgUo1ExBlHvFnXN2nSHw renderFlags);
N_LIB_PRIVATE N_NIMCALL(tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg, getFilter__rPXazDxX85VaqdXHmAobDQ)(tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_LIB_PRIVATE N_NIMCALL(tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw, getParser__uENfE6ihuht3KQTqFpJv9cg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, filterTmpl__ktXx03A4I583g1JBDSVOmw)(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* stdin_0, NimStringDesc* filename, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* call, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, filterStrip__q3sbyZuBFflBnh9a6RUnDbQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* stdin_0, NimStringDesc* filename, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* call);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, filterReplace__q3sbyZuBFflBnh9a6RUnDbQ_2)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* stdin_0, NimStringDesc* filename, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* call);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasHint__nhq3WvyhDl20egvbLwYMMw_2)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA note);
N_LIB_PRIVATE N_NIMCALL(void, rawMessage__PYBO4jCiD1pa1t49bOFOKuw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc** args, NI argsLen_0);
N_LIB_PRIVATE N_NIMCALL(void, msgWriteln__PO49anyWCbe63GYNOs9cVuvg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s, tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ flags);
N_LIB_PRIVATE N_NIMCALL(void, openParser__FW7ShvhAki8F9b1PK9cXVItg)(tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw* p, NI32 fileIdx, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* inputStream, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, llStreamOpen__ocAqkLNlxt5nOhrSLH4gwQ)(FILE* f);
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parseAll__N9cl8bNz6TaGrhhLXmkyhrw)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p);
N_LIB_PRIVATE N_NIMCALL(void, internalError__5hPl6LjCYJxMYxh9af9b9bXzw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* errMsg);
N_LIB_PRIVATE N_NIMCALL(void, closeParsers__9axSIXPbR9bee4ERYLIPUA2w)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p);
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parseTopLevelStmt__x3UAdSvBfIIO33m4gWdOPg_39)(tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw* p);
N_LIB_PRIVATE TNimType NTI__WENTuyElSRFloaVOQEDvMg_;
N_LIB_PRIVATE TNimType NTI__wHYLpKaSFkZsAwL9crNQqGw_;
extern TNimType NTI__c38t9cDVS8o9b29cOovKwkANw_;
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_6, "cannot open file: ", 18);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_7, "syntaxes.nim(146, 10) `config != nil` ", 38);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_17, "syntaxes.nim(130, 10) `p.config != nil` ", 40);
static NIM_CONST tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw TM__Furs9bKK6tVLoyofH3f4bRw_18 = {
0xec, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_19, "\'sons\' is not accessible using discriminant \'kind\' of type \'TNo"
"de\'", 66);
static NIM_CONST tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw TM__Furs9bKK6tVLoyofH3f4bRw_20 = {
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_21, "\'ident\' is not accessible using discriminant \'kind\' of type \'TN"
"ode\'", 67);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_22, "|", 1);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_23, "invalid filter: ", 16);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_24, "none", 4);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_25, "stdtmpl", 7);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_26, "replace", 7);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_27, "strip", 5);
N_LIB_PRIVATE NIM_CONST tyArray__cM0k9buRoahrhdhCHJaeg8w filterNames__AxTRz7iBqkPgPfZx8TM0IQ = {((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_24),
((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_25),
((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_26),
((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_27)}
;
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_29, "standard", 8);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_30, "endx", 4);
N_LIB_PRIVATE NIM_CONST tyArray__8GOl8NvXQYALGK9b1NT1qPQ parserNames__IVRWib6Nt9c9cDYSS669cL5mA = {((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_29),
((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_30)}
;
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_32, "unknown parser: ", 16);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_33, "syntaxes.nim(122, 12) `p.config != nil` ", 40);
STRING_LITERAL(TM__Furs9bKK6tVLoyofH3f4bRw_35, "parser to implement", 19);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a, v, ((size_t) (size)));
}
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
	nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
	nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	{
		if (!!((src == NIM_NIL))) goto LA3_;
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(NI, utf8Bom__W9bilWV9c2aPqoO8VGO8j9aDg)(NimStringDesc* s) {
	NI result;
	result = (NI)0;
	{
		NIM_BOOL T3_;
		NIM_BOOL T4_;
		NIM_BOOL T5_;
		T3_ = (NIM_BOOL)0;
		T4_ = (NIM_BOOL)0;
		T5_ = (NIM_BOOL)0;
		T5_ = (((NI) 3) <= (s ? s->Sup.len : 0));
		if (!(T5_)) goto LA6_;
		if ((NU)(((NI) 0)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(((NI) 0),(s ? s->Sup.len : 0)-1); }
		T5_ = ((NU8)(s->data[((NI) 0)]) == (NU8)(239));
		LA6_: ;
		T4_ = T5_;
		if (!(T4_)) goto LA7_;
		if ((NU)(((NI) 1)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(((NI) 1),(s ? s->Sup.len : 0)-1); }
		T4_ = ((NU8)(s->data[((NI) 1)]) == (NU8)(187));
		LA7_: ;
		T3_ = T4_;
		if (!(T3_)) goto LA8_;
		if ((NU)(((NI) 2)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(((NI) 2),(s ? s->Sup.len : 0)-1); }
		T3_ = ((NU8)(s->data[((NI) 2)]) == (NU8)(191));
		LA8_: ;
		if (!T3_) goto LA9_;
		result = ((NI) 3);
	}
	goto LA1_;
	LA9_: ;
	{
		result = ((NI) 0);
	}
	LA1_: ;
	return result;
}
static N_INLINE(NIM_BOOL, nimAddInt)(NI a, NI b, NI* res) {
	NIM_BOOL result;
	NI r;
	result = (NIM_BOOL)0;
	r = ((NI) ((NU)((NU64)(((NU) (a))) + (NU64)(((NU) (b))))));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(r ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(r ^ b));
		LA4_: ;
		if (!T3_) goto LA5_;
		(*res) = r;
	}
	goto LA1_;
	LA5_: ;
	{
		result = NIM_TRUE;
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, containsShebang__4VNLl9c9aLr7UITlrm3yuV9bA)(NimStringDesc* s, NI i) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	{
		NIM_BOOL T3_;
		NIM_BOOL T4_;
		NI TM__Furs9bKK6tVLoyofH3f4bRw_8;
		NI TM__Furs9bKK6tVLoyofH3f4bRw_9;
		NI j;
		NI TM__Furs9bKK6tVLoyofH3f4bRw_10;
		T3_ = (NIM_BOOL)0;
		T4_ = (NIM_BOOL)0;
		if (nimAddInt(i, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_8)) { raiseOverflow(); };
		T4_ = ((NI)(TM__Furs9bKK6tVLoyofH3f4bRw_8) < (s ? s->Sup.len : 0));
		if (!(T4_)) goto LA5_;
		if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(i,(s ? s->Sup.len : 0)-1); }
		T4_ = ((NU8)(s->data[i]) == (NU8)(35));
		LA5_: ;
		T3_ = T4_;
		if (!(T3_)) goto LA6_;
		if (nimAddInt(i, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_9)) { raiseOverflow(); };
		if ((NU)((NI)(TM__Furs9bKK6tVLoyofH3f4bRw_9)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__Furs9bKK6tVLoyofH3f4bRw_9),(s ? s->Sup.len : 0)-1); }
		T3_ = ((NU8)(s->data[(NI)(TM__Furs9bKK6tVLoyofH3f4bRw_9)]) == (NU8)(33));
		LA6_: ;
		if (!T3_) goto LA7_;
		if (nimAddInt(i, ((NI) 2), &TM__Furs9bKK6tVLoyofH3f4bRw_10)) { raiseOverflow(); };
		j = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_10);
		{
			while (1) {
				NIM_BOOL T11_;
				NI TM__Furs9bKK6tVLoyofH3f4bRw_11;
				T11_ = (NIM_BOOL)0;
				T11_ = (j < (s ? s->Sup.len : 0));
				if (!(T11_)) goto LA12_;
				if ((NU)(j) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(j,(s ? s->Sup.len : 0)-1); }
				T11_ = (((NU8)(s->data[j])) == ((NU8)(32)) || ((NU8)(s->data[j])) == ((NU8)(9)) || ((NU8)(s->data[j])) == ((NU8)(11)) || ((NU8)(s->data[j])) == ((NU8)(13)) || ((NU8)(s->data[j])) == ((NU8)(10)) || ((NU8)(s->data[j])) == ((NU8)(12)));
				LA12_: ;
				if (!T11_) goto LA10;
				if (nimAddInt(j, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_11)) { raiseOverflow(); };
				j = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_11);
			} LA10: ;
		}
		if ((NU)(j) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(j,(s ? s->Sup.len : 0)-1); }
		result = ((NU8)(s->data[j]) == (NU8)(47));
	}
	LA7_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parsePipe__8I0pUWXaIJkp9a02xsmaA7w)(NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* inputStream, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config) {
	tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* result;
	tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* s;
	result = (tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*)0;
	result = newNode__PMZ27S9ai4FB3gXOMDXvwsQ(((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 1));
	s = llStreamOpen__knWUQJsEzojha6AJCi6LcA(filename, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0));
	{
		NimStringDesc* line;
		NIM_BOOL T5_;
		NI i;
		NI linenumber;
		if (!!((s == NIM_NIL))) goto LA3_;
		line = rawNewString(((NI) 80));
		T5_ = (NIM_BOOL)0;
		T5_ = llStreamReadLine__7RtV9aJubfIMSghb2POqd9ag(s, (&line));
		(void)(T5_);
		i = utf8Bom__W9bilWV9c2aPqoO8VGO8j9aDg(line);
		linenumber = ((NI) 1);
		{
			NIM_BOOL T8_;
			NIM_BOOL T11_;
			NI TM__Furs9bKK6tVLoyofH3f4bRw_12;
			T8_ = (NIM_BOOL)0;
			T8_ = containsShebang__4VNLl9c9aLr7UITlrm3yuV9bA(line, i);
			if (!T8_) goto LA9_;
			T11_ = (NIM_BOOL)0;
			T11_ = llStreamReadLine__7RtV9aJubfIMSghb2POqd9ag(s, (&line));
			(void)(T11_);
			i = ((NI) 0);
			if (nimAddInt(linenumber, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_12)) { raiseOverflow(); };
			linenumber = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_12);
		}
		LA9_: ;
		{
			NIM_BOOL T14_;
			NIM_BOOL T15_;
			NI TM__Furs9bKK6tVLoyofH3f4bRw_13;
			NI TM__Furs9bKK6tVLoyofH3f4bRw_14;
			NI TM__Furs9bKK6tVLoyofH3f4bRw_15;
			tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw q;
			NimStringDesc* T24_;
			tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* T25_;
			T14_ = (NIM_BOOL)0;
			T15_ = (NIM_BOOL)0;
			if (nimAddInt(i, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_13)) { raiseOverflow(); };
			T15_ = ((NI)(TM__Furs9bKK6tVLoyofH3f4bRw_13) < (line ? line->Sup.len : 0));
			if (!(T15_)) goto LA16_;
			if ((NU)(i) >= (NU)(line ? line->Sup.len : 0)){ raiseIndexError2(i,(line ? line->Sup.len : 0)-1); }
			T15_ = ((NU8)(line->data[i]) == (NU8)(35));
			LA16_: ;
			T14_ = T15_;
			if (!(T14_)) goto LA17_;
			if (nimAddInt(i, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_14)) { raiseOverflow(); };
			if ((NU)((NI)(TM__Furs9bKK6tVLoyofH3f4bRw_14)) >= (NU)(line ? line->Sup.len : 0)){ raiseIndexError2((NI)(TM__Furs9bKK6tVLoyofH3f4bRw_14),(line ? line->Sup.len : 0)-1); }
			T14_ = ((NU8)(line->data[(NI)(TM__Furs9bKK6tVLoyofH3f4bRw_14)]) == (NU8)(63));
			LA17_: ;
			if (!T14_) goto LA18_;
			if (nimAddInt(i, ((NI) 2), &TM__Furs9bKK6tVLoyofH3f4bRw_15)) { raiseOverflow(); };
			i = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_15);
			{
				while (1) {
					NIM_BOOL T22_;
					NI TM__Furs9bKK6tVLoyofH3f4bRw_16;
					T22_ = (NIM_BOOL)0;
					T22_ = (i < (line ? line->Sup.len : 0));
					if (!(T22_)) goto LA23_;
					if ((NU)(i) >= (NU)(line ? line->Sup.len : 0)){ raiseIndexError2(i,(line ? line->Sup.len : 0)-1); }
					T22_ = (((NU8)(line->data[i])) == ((NU8)(32)) || ((NU8)(line->data[i])) == ((NU8)(9)) || ((NU8)(line->data[i])) == ((NU8)(11)) || ((NU8)(line->data[i])) == ((NU8)(13)) || ((NU8)(line->data[i])) == ((NU8)(10)) || ((NU8)(line->data[i])) == ((NU8)(12)));
					LA23_: ;
					if (!T22_) goto LA21;
					if (nimAddInt(i, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_16)) { raiseOverflow(); };
					i = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_16);
				} LA21: ;
			}
			nimZeroMem((void*)(&q), sizeof(tyObject_TParser__c38t9cDVS8o9b29cOovKwkANw));
			objectInit((&q), (&NTI__c38t9cDVS8o9b29cOovKwkANw_));
			T24_ = (NimStringDesc*)0;
			T24_ = substr__iGg0RIKceRvsmvq8FUHOEw(line, i);
			T25_ = (tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*)0;
			T25_ = llStreamOpen__jzv9bBGhVSDMwEPDegAAa2w(T24_);
			openParser__VZUcy9bQgXXeGGRhyp8109aA((&q), filename, T25_, cache, config);
			result = parseAll__x3UAdSvBfIIO33m4gWdOPg((&q));
			closeParser__Xu4eHJ43ZFePtQEl7xNDtQ_5((&q));
		}
		LA18_: ;
		llStreamClose__pzACjlxXGrH2rRQU5WrSmg(s);
	}
	LA3_: ;
	return result;
}
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
	int result;
	result = (int)0;
	result = memcmp(a, b, ((size_t) (size)));
	return result;
}
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) {
	NIM_BOOL result;
	int T1_;
	result = (NIM_BOOL)0;
	T1_ = (int)0;
	T1_ = nimCmpMem(a, b, size);
	result = (T1_ == ((NI32) 0));
	return result;
}
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NI alen;
	NI blen;
{	result = (NIM_BOOL)0;
	alen = (a ? a->Sup.len : 0);
	blen = (b ? b->Sup.len : 0);
	{
		if (!(alen == blen)) goto LA3_;
		{
			if (!(alen == ((NI) 0))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
		LA7_: ;
		result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
		goto BeforeRet_;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA*, getCallee__5TuEISXkk9cbe8wX26PC16w)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n) {
	tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* result;
	result = (tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA*)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = ((*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 27) || (*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 29) || (*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 30) || (*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 31) || (*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 26) || (*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 28) || (*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 32));
		if (!(T3_)) goto LA4_;
		if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
		if ((NU)(((NI) 0)) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
		T3_ = ((*(*n)._kind_6.sons->data[((NI) 0)]).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 2));
		LA4_: ;
		if (!T3_) goto LA5_;
		if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
		if ((NU)(((NI) 0)) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
		if (!(((TM__Furs9bKK6tVLoyofH3f4bRw_20[(NU)((*(*n)._kind_6.sons->data[((NI) 0)]).kind)>>3] &(1U<<((NU)((*(*n)._kind_6.sons->data[((NI) 0)]).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_21)); }
		result = (*(*n)._kind_6.sons->data[((NI) 0)])._kind_5.ident;
	}
	goto LA1_;
	LA5_: ;
	{
		if (!((*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 2))) goto LA8_;
		if (!(((TM__Furs9bKK6tVLoyofH3f4bRw_20[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_21)); }
		result = (*n)._kind_5.ident;
	}
	goto LA1_;
	LA8_: ;
	{
		NimStringDesc* T11_;
		NimStringDesc* T12_;
		T11_ = (NimStringDesc*)0;
		T12_ = (NimStringDesc*)0;
		T12_ = renderTree__ppjdh9aQ5L0SGPF8yz1gZ9cA(n, 0);
		T11_ = rawNewString((T12_ ? T12_->Sup.len : 0) + 16);
appendString(T11_, ((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_23));
appendString(T11_, T12_);
		localError__NF6kBGchnhQYPbCedyefVA(conf, (*n).info, T11_);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg, getFilter__rPXazDxX85VaqdXHmAobDQ)(tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident) {
	tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg result;
{	result = (tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg)0;
	{
		tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg i;
		NI res;
		i = (tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg)0;
		res = ((NI) 0);
		{
			while (1) {
				NI TM__Furs9bKK6tVLoyofH3f4bRw_28;
				if (!(res <= ((NI) 3))) goto LA3;
				if ((res) < ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 0) || (res) > ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 3)){ raiseRangeErrorI(res, ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 0), ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 3)); }
				i = ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) (res));
				{
					NI T6_;
					T6_ = (NI)0;
					T6_ = nsuCmpIgnoreStyle((*ident).s, filterNames__AxTRz7iBqkPgPfZx8TM0IQ[(i)- 0]);
					if (!(T6_ == ((NI) 0))) goto LA7_;
					result = i;
					goto BeforeRet_;
				}
				LA7_: ;
				if (nimAddInt(res, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_28)) { raiseOverflow(); };
				res = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_28);
			} LA3: ;
		}
	}
	result = ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 0);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw, getParser__uENfE6ihuht3KQTqFpJv9cg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident) {
	tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw result;
	NimStringDesc* T9_;
{	result = (tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw)0;
	{
		tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw i;
		NI res;
		i = (tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw)0;
		res = ((NI) 0);
		{
			while (1) {
				NI TM__Furs9bKK6tVLoyofH3f4bRw_31;
				if (!(res <= ((NI) 1))) goto LA3;
				if ((res) < ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 0) || (res) > ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 1)){ raiseRangeErrorI(res, ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 0), ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 1)); }
				i = ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) (res));
				{
					NI T6_;
					T6_ = (NI)0;
					T6_ = nsuCmpIgnoreStyle((*ident).s, parserNames__IVRWib6Nt9c9cDYSS669cL5mA[(i)- 0]);
					if (!(T6_ == ((NI) 0))) goto LA7_;
					result = i;
					goto BeforeRet_;
				}
				LA7_: ;
				if (nimAddInt(res, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_31)) { raiseOverflow(); };
				res = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_31);
			} LA3: ;
		}
	}
	T9_ = (NimStringDesc*)0;
	T9_ = rawNewString(((*ident).s ? (*ident).s->Sup.len : 0) + 16);
appendString(T9_, ((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_32));
appendString(T9_, (*ident).s);
	localError__NF6kBGchnhQYPbCedyefVA(conf, (*n).info, T9_);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, applyFilter__lO9a0smwGhgzbvQh3OJRR0A)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* stdin_0) {
	tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* result;
	tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident;
	tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg f;
	result = (tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*)0;
	ident = getCallee__5TuEISXkk9cbe8wX26PC16w((*p).parser.lex.config, n);
	f = getFilter__rPXazDxX85VaqdXHmAobDQ(ident);
	switch (f) {
	case ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 0):
	{
		(*p).skin = getParser__uENfE6ihuht3KQTqFpJv9cg((*p).parser.lex.config, n, ident);
		result = stdin_0;
	}
	break;
	case ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 1):
	{
		result = filterTmpl__ktXx03A4I583g1JBDSVOmw(stdin_0, filename, n, (*p).parser.lex.config);
	}
	break;
	case ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 3):
	{
		result = filterStrip__q3sbyZuBFflBnh9a6RUnDbQ((*p).parser.lex.config, stdin_0, filename, n);
	}
	break;
	case ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 2):
	{
		result = filterReplace__q3sbyZuBFflBnh9a6RUnDbQ_2((*p).parser.lex.config, stdin_0, filename, n);
	}
	break;
	}
	{
		if (!!((f == ((tyEnum_TFilterKind__mET0MuvrWCLPKR0e9cWMjNg) 0)))) goto LA7_;
		{
			if (!!(!(((*p).parser.lex.config == NIM_NIL)))) goto LA11_;
			failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_33));
		}
		LA11_: ;
		{
			NIM_BOOL T15_;
			tyArray__8ZvwQIddfpj2THRVPsFzIQ T18_;
			tyArray__8ZvwQIddfpj2THRVPsFzIQ T19_;
			T15_ = (NIM_BOOL)0;
			T15_ = hasHint__nhq3WvyhDl20egvbLwYMMw_2((*p).parser.lex.config, ((tyEnum_TMsgKind__9aTDTIqNJIW9bjpBdW7rixiA) 60));
			if (!T15_) goto LA16_;
			nimZeroMem((void*)T18_, sizeof(tyArray__8ZvwQIddfpj2THRVPsFzIQ));
			rawMessage__PYBO4jCiD1pa1t49bOFOKuw((*p).parser.lex.config, ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 60), T18_, 0);
			msgWriteln__PO49anyWCbe63GYNOs9cVuvg((*p).parser.lex.config, (*result).s, 0);
			nimZeroMem((void*)T19_, sizeof(tyArray__8ZvwQIddfpj2THRVPsFzIQ));
			rawMessage__PYBO4jCiD1pa1t49bOFOKuw((*p).parser.lex.config, ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 61), T19_, 0);
		}
		LA16_: ;
	}
	LA7_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*, evalPipe__X8me6QGn9bmUk4D7Fr4dH1A)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, NimStringDesc* filename, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* start) {
	tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* result;
{	result = (tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*)0;
	{
		if (!!(!(((*p).parser.lex.config == NIM_NIL)))) goto LA3_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_17));
	}
	LA3_: ;
	result = start;
	{
		if (!((*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 1))) goto LA7_;
		goto BeforeRet_;
	}
	LA7_: ;
	{
		NIM_BOOL T11_;
		NIM_BOOL T12_;
		T11_ = (NIM_BOOL)0;
		T12_ = (NIM_BOOL)0;
		T12_ = ((*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 29));
		if (!(T12_)) goto LA13_;
		if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
		if ((NU)(((NI) 0)) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
		T12_ = ((*(*n)._kind_6.sons->data[((NI) 0)]).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 2));
		LA13_: ;
		T11_ = T12_;
		if (!(T11_)) goto LA14_;
		if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
		if ((NU)(((NI) 0)) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
		if (!(((TM__Furs9bKK6tVLoyofH3f4bRw_20[(NU)((*(*n)._kind_6.sons->data[((NI) 0)]).kind)>>3] &(1U<<((NU)((*(*n)._kind_6.sons->data[((NI) 0)]).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_21)); }
		T11_ = eqStrings((*(*(*n)._kind_6.sons->data[((NI) 0)])._kind_5.ident).s, ((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_22));
		LA14_: ;
		if (!T11_) goto LA15_;
		{
			NI i;
			NI res;
			i = (NI)0;
			res = ((NI) 1);
			{
				while (1) {
					NI TM__Furs9bKK6tVLoyofH3f4bRw_34;
					if (!(res <= ((NI) 2))) goto LA19;
					i = res;
					{
						if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
						if ((NU)(i) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(i,((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
						if (!((*(*n)._kind_6.sons->data[i]).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 29))) goto LA22_;
						if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
						if ((NU)(i) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(i,((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
						result = evalPipe__X8me6QGn9bmUk4D7Fr4dH1A(p, (*n)._kind_6.sons->data[i], filename, result);
					}
					goto LA20_;
					LA22_: ;
					{
						if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
						if ((NU)(i) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(i,((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
						result = applyFilter__lO9a0smwGhgzbvQh3OJRR0A(p, (*n)._kind_6.sons->data[i], filename, result);
					}
					LA20_: ;
					if (nimAddInt(res, ((NI) 1), &TM__Furs9bKK6tVLoyofH3f4bRw_34)) { raiseOverflow(); };
					res = (NI)(TM__Furs9bKK6tVLoyofH3f4bRw_34);
				} LA19: ;
			}
		}
	}
	goto LA9_;
	LA15_: ;
	{
		if (!((*n).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 115))) goto LA26_;
		if (((TM__Furs9bKK6tVLoyofH3f4bRw_18[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)){ raiseFieldError(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_19)); }
		if ((NU)(((NI) 0)) >= (NU)((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*n)._kind_6.sons ? (*n)._kind_6.sons->Sup.len : 0)-1); }
		result = evalPipe__X8me6QGn9bmUk4D7Fr4dH1A(p, (*n)._kind_6.sons->data[((NI) 0)], filename, result);
	}
	goto LA9_;
	LA26_: ;
	{
		result = applyFilter__lO9a0smwGhgzbvQh3OJRR0A(p, n, filename, result);
	}
	LA9_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, openParsers__yIpcSxqaMQcd6kNqikzXtg)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, NI32 fileIdx, tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* inputstream, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config) {
	tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* s;
	NimStringDesc* filename;
	tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* pipe;
	{
		if (!!(!((config == NIM_NIL)))) goto LA3_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_7));
	}
	LA3_: ;
	s = (tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*)0;
	(*p).skin = ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 0);
	filename = toFullPathConsiderDirty__fr10i3QiqDDNG5EqWBCesA(config, fileIdx);
	pipe = parsePipe__8I0pUWXaIJkp9a02xsmaA7w(filename, inputstream, cache, config);
	unsureAsgnRef((void**) (&(*p).parser.lex.config), config);
	{
		if (!!((pipe == NIM_NIL))) goto LA7_;
		s = evalPipe__X8me6QGn9bmUk4D7Fr4dH1A(p, pipe, filename, inputstream);
	}
	goto LA5_;
	LA7_: ;
	{
		s = inputstream;
	}
	LA5_: ;
	switch ((*p).skin) {
	case ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 0):
	case ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 1):
	{
		openParser__FW7ShvhAki8F9b1PK9cXVItg((&(*p).parser), fileIdx, s, cache, config);
	}
	break;
	}
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, setupParsers__2gNWFYMPzEmvk89cUm7cGrQ)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p, NI32 fileIdx, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config) {
	NIM_BOOL result;
	FILE* f;
	NimStringDesc* filename;
	tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g* T7_;
{	result = (NIM_BOOL)0;
	f = (FILE*)0;
	filename = toFullPathConsiderDirty__fr10i3QiqDDNG5EqWBCesA(config, fileIdx);
	{
		NIM_BOOL T3_;
		NimStringDesc* T6_;
		T3_ = (NIM_BOOL)0;
		T3_ = open__gq12VLhVO0NBzUTnGgz4nw(&f, filename, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0), ((NI) -1));
		if (!!(T3_)) goto LA4_;
		T6_ = (NimStringDesc*)0;
		T6_ = rawNewString((filename ? filename->Sup.len : 0) + 18);
appendString(T6_, ((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_6));
appendString(T6_, filename);
		rawMessage__h30HgTFwbGq0PsyHmRqZ8g(config, ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 10), T6_);
		result = NIM_FALSE;
		goto BeforeRet_;
	}
	LA4_: ;
	T7_ = (tyObject_TLLStream__a5oZYQ9aTktYME2449ayEi6g*)0;
	T7_ = llStreamOpen__ocAqkLNlxt5nOhrSLH4gwQ(f);
	openParsers__yIpcSxqaMQcd6kNqikzXtg(p, fileIdx, T7_, cache, config);
	result = NIM_TRUE;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parseAll__N9cl8bNz6TaGrhhLXmkyhrw)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p) {
	tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* result;
	result = (tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*)0;
	switch ((*p).skin) {
	case ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 0):
	{
		result = parseAll__x3UAdSvBfIIO33m4gWdOPg((&(*p).parser));
	}
	break;
	case ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 1):
	{
		internalError__5hPl6LjCYJxMYxh9af9b9bXzw((*p).parser.lex.config, ((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_35));
	}
	break;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, closeParsers__9axSIXPbR9bee4ERYLIPUA2w)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p) {
	closeParser__Xu4eHJ43ZFePtQEl7xNDtQ_5((&(*p).parser));
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parseFile__HSBHiITVPKlv327uAC12yw)(NI32 fileIdx, tyObject_IdentCachecolonObjectType___TzLHS09bRH9a0TYLs39cqcNaw* cache, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config) {
	tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* result;
	tyObject_TParsers__WENTuyElSRFloaVOQEDvMg p;
	result = (tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*)0;
	nimZeroMem((void*)(&p), sizeof(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg));
	objectInit((&p), (&NTI__WENTuyElSRFloaVOQEDvMg_));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = setupParsers__2gNWFYMPzEmvk89cUm7cGrQ((&p), fileIdx, cache, config);
		if (!T3_) goto LA4_;
		result = parseAll__N9cl8bNz6TaGrhhLXmkyhrw((&p));
		closeParsers__9axSIXPbR9bee4ERYLIPUA2w((&p));
	}
	LA4_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*, parseTopLevelStmt__N9cl8bNz6TaGrhhLXmkyhrw_2)(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg* p) {
	tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* result;
	result = (tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw*)0;
	switch ((*p).skin) {
	case ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 0):
	{
		result = parseTopLevelStmt__x3UAdSvBfIIO33m4gWdOPg_39((&(*p).parser));
	}
	break;
	case ((tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw) 1):
	{
		internalError__5hPl6LjCYJxMYxh9af9b9bXzw((*p).parser.lex.config, ((NimStringDesc*) &TM__Furs9bKK6tVLoyofH3f4bRw_35));
	}
	break;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, compiler_syntaxesDatInit000)(void) {
static TNimNode* TM__Furs9bKK6tVLoyofH3f4bRw_2_2[2];
static TNimNode* TM__Furs9bKK6tVLoyofH3f4bRw_3_2[2];
NI TM__Furs9bKK6tVLoyofH3f4bRw_5;
static char* NIM_CONST TM__Furs9bKK6tVLoyofH3f4bRw_4[2] = {
"skinStandard", 
"skinEndX"};
static TNimNode TM__Furs9bKK6tVLoyofH3f4bRw_0[6];
NTI__WENTuyElSRFloaVOQEDvMg_.size = sizeof(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg);
NTI__WENTuyElSRFloaVOQEDvMg_.kind = 18;
NTI__WENTuyElSRFloaVOQEDvMg_.base = 0;
TM__Furs9bKK6tVLoyofH3f4bRw_2_2[0] = &TM__Furs9bKK6tVLoyofH3f4bRw_0[1];
NTI__wHYLpKaSFkZsAwL9crNQqGw_.size = sizeof(tyEnum_TParserKind__wHYLpKaSFkZsAwL9crNQqGw);
NTI__wHYLpKaSFkZsAwL9crNQqGw_.kind = 14;
NTI__wHYLpKaSFkZsAwL9crNQqGw_.base = 0;
NTI__wHYLpKaSFkZsAwL9crNQqGw_.flags = 3;
for (TM__Furs9bKK6tVLoyofH3f4bRw_5 = 0; TM__Furs9bKK6tVLoyofH3f4bRw_5 < 2; TM__Furs9bKK6tVLoyofH3f4bRw_5++) {
TM__Furs9bKK6tVLoyofH3f4bRw_0[TM__Furs9bKK6tVLoyofH3f4bRw_5+2].kind = 1;
TM__Furs9bKK6tVLoyofH3f4bRw_0[TM__Furs9bKK6tVLoyofH3f4bRw_5+2].offset = TM__Furs9bKK6tVLoyofH3f4bRw_5;
TM__Furs9bKK6tVLoyofH3f4bRw_0[TM__Furs9bKK6tVLoyofH3f4bRw_5+2].name = TM__Furs9bKK6tVLoyofH3f4bRw_4[TM__Furs9bKK6tVLoyofH3f4bRw_5];
TM__Furs9bKK6tVLoyofH3f4bRw_3_2[TM__Furs9bKK6tVLoyofH3f4bRw_5] = &TM__Furs9bKK6tVLoyofH3f4bRw_0[TM__Furs9bKK6tVLoyofH3f4bRw_5+2];
}
TM__Furs9bKK6tVLoyofH3f4bRw_0[4].len = 2; TM__Furs9bKK6tVLoyofH3f4bRw_0[4].kind = 2; TM__Furs9bKK6tVLoyofH3f4bRw_0[4].sons = &TM__Furs9bKK6tVLoyofH3f4bRw_3_2[0];
NTI__wHYLpKaSFkZsAwL9crNQqGw_.node = &TM__Furs9bKK6tVLoyofH3f4bRw_0[4];
TM__Furs9bKK6tVLoyofH3f4bRw_0[1].kind = 1;
TM__Furs9bKK6tVLoyofH3f4bRw_0[1].offset = offsetof(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg, skin);
TM__Furs9bKK6tVLoyofH3f4bRw_0[1].typ = (&NTI__wHYLpKaSFkZsAwL9crNQqGw_);
TM__Furs9bKK6tVLoyofH3f4bRw_0[1].name = "skin";
TM__Furs9bKK6tVLoyofH3f4bRw_2_2[1] = &TM__Furs9bKK6tVLoyofH3f4bRw_0[5];
TM__Furs9bKK6tVLoyofH3f4bRw_0[5].kind = 1;
TM__Furs9bKK6tVLoyofH3f4bRw_0[5].offset = offsetof(tyObject_TParsers__WENTuyElSRFloaVOQEDvMg, parser);
TM__Furs9bKK6tVLoyofH3f4bRw_0[5].typ = (&NTI__c38t9cDVS8o9b29cOovKwkANw_);
TM__Furs9bKK6tVLoyofH3f4bRw_0[5].name = "parser";
TM__Furs9bKK6tVLoyofH3f4bRw_0[0].len = 2; TM__Furs9bKK6tVLoyofH3f4bRw_0[0].kind = 2; TM__Furs9bKK6tVLoyofH3f4bRw_0[0].sons = &TM__Furs9bKK6tVLoyofH3f4bRw_2_2[0];
NTI__WENTuyElSRFloaVOQEDvMg_.node = &TM__Furs9bKK6tVLoyofH3f4bRw_0[0];
}

