nwaku/nimcache/release/wakubridge/stdlib_parsejson.nim.c

1663 lines
107 KiB
C

/* Generated by Nim Compiler v1.2.6 */
/* (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/stdlib_parsejson.nim.c.o nimcache/release/wakubridge/stdlib_parsejson.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#include <sys/types.h>
#include <pthread.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 TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ;
typedef struct tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg;
typedef struct RootObj RootObj;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ;
typedef struct tySequence__Ih0V9cYug0VPJyBBGvgEH7Q tySequence__Ih0V9cYug0VPJyBBGvgEH7Q;
typedef struct tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct Exception Exception;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
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;
NCSTRING name;
TNimType* nextType;
NI instances;
NI sizes;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct RootObj {TNimType* m_type;};
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
struct tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg { RootObj Sup;NI bufpos;
NimStringDesc* buf;
tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* input;
NI lineNumber;
NI sentinel;
NI lineStart;
NI offsetBase;
tySet_tyChar__nmiMWKVIe46vacnhAFrQvw refillChars;
};
typedef NU8 tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw;
typedef NU8 tyEnum_JsonEventKind__0zjE9c54eTrq224F5wMcaFA;
typedef NU8 tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew;
struct tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ { tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg Sup;NimStringDesc* a;
tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw tok;
tyEnum_JsonEventKind__0zjE9c54eTrq224F5wMcaFA kind;
tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew err;
tySequence__Ih0V9cYug0VPJyBBGvgEH7Q* state;
NimStringDesc* filename;
NIM_BOOL rawStringLiterals;
};
typedef NU8 tyEnum_ParserState__Na0rM2Zdr3RpxeNeXbvLrQ;
struct Exception { RootObj Sup;Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
struct tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg { tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw Sup;};
typedef NimStringDesc* tyArray__sMpvt1sOxOJ3LFGulnbeMQ[4];
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
NI maxLargeObj;
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
NI allocCounter;
NI deallocCounter;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
pthread_mutex_t lock;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
NI gcThreadId;
};
typedef NimStringDesc* tyArray__FkG8aLMyiZfDjueUwWl3WA[14];
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence__Ih0V9cYug0VPJyBBGvgEH7Q { TGenericSeq Sup; tyEnum_ParserState__Na0rM2Zdr3RpxeNeXbvLrQ data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};static N_NIMCALL(void, Marker_tySequence__Ih0V9cYug0VPJyBBGvgEH7Q)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, open__P89aGatd6bDNJ0Ak5E9cQgWw)(tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* L, tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* input, NI bufLen, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw refillChars);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
N_LIB_PRIVATE N_NIMCALL(void, skip__FPdQ9beZqb3bJ7eVHJww6Qg)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(NI, handleCR__sLQC1Z9cokufE3lZEw9b42Cw)(tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* L, NI pos);
N_LIB_PRIVATE N_NIMCALL(NI, handleLF__sLQC1Z9cokufE3lZEw9b42Cw_3)(tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* L, NI pos);
N_LIB_PRIVATE N_NIMCALL(void, parseNumber__FPdQ9beZqb3bJ7eVHJww6Qg_2)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
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*, resizeString)(NimStringDesc* dest, NI addlen);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__wAzSnEu9cCHHjvPQlWBZUeQ)(NimStringDesc* s_0, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars);
N_LIB_PRIVATE N_NIMCALL(tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw, parseString__9cGllg9a4hN9cmfjsUw6zu39bQ_2)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
N_LIB_PRIVATE N_NIMCALL(NI, parseEscapedUTF16__MMwgsOXZK0fQw6h7UQcVsQ)(NCSTRING buf_0, NI* pos);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, handleHexChar__Avai9b5a9bb83l1HPqx75AfA)(NIM_CHAR c, NI* x_0);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nuctoUTF8)(NI32 c);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(void, parseName__FPdQ9beZqb3bJ7eVHJww6Qg_3)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
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(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, Marker_tyRef__PyuSdojUZWOAnzN7dInq1Q)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, errorMsgExpected__wyJNOK33UcOVCdJ9aSuAbOw)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my, NimStringDesc* e_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
static N_INLINE(NI, getLine__cAlRX82MU9aihWfxn79b1A6wparsejson)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
static N_INLINE(NI, getColumn__cAlRX82MU9aihWfxn79b1A6w_2parsejson)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
N_LIB_PRIVATE N_NIMCALL(NI, getColNumber__KUMaHICF9bUPO7tt6hrBs3g)(tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* L, NI pos);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw, getTok__9cGllg9a4hN9cmfjsUw6zu39bQ)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my);
N_LIB_PRIVATE N_NOINLINE(void, raiseParseErr__VeBRAkMdST9cPQW1Rqk8vwA)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* p_0, NimStringDesc* msg) __attribute__((noreturn));
extern TNimType NTI__MAw8rJZtJ279bVV3TWMtXSg_;
N_LIB_PRIVATE TNimType NTI__KWIQnzXEOUqdWsnCUL9atyQ_;
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
N_LIB_PRIVATE TNimType NTI__Q9c4KaNqJU4PbXaGht0C7iw_;
N_LIB_PRIVATE TNimType NTI__0zjE9c54eTrq224F5wMcaFA_;
N_LIB_PRIVATE TNimType NTI__G9cw5MrJXJrcpID5JXaplew_;
N_LIB_PRIVATE TNimType NTI__Na0rM2Zdr3RpxeNeXbvLrQ_;
N_LIB_PRIVATE TNimType NTI__Ih0V9cYug0VPJyBBGvgEH7Q_;
extern TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__nIinruGrC8EPIfjL3PuTvA_15 = {
0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static NIM_CONST struct { TGenericSeq Sup; tyEnum_ParserState__Na0rM2Zdr3RpxeNeXbvLrQ data[1];} TM__nIinruGrC8EPIfjL3PuTvA_17 = {{1, 1 | NIM_STRLIT_FLAG}, {((tyEnum_ParserState__Na0rM2Zdr3RpxeNeXbvLrQ) 1)}};static NIM_CONST tySequence__Ih0V9cYug0VPJyBBGvgEH7Q* TM__nIinruGrC8EPIfjL3PuTvA_16 = ((tySequence__Ih0V9cYug0VPJyBBGvgEH7Q*)&TM__nIinruGrC8EPIfjL3PuTvA_17);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_28, "0.", 2);
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__nIinruGrC8EPIfjL3PuTvA_36 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_73, "null", 4);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_74, "true", 4);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_75, "false", 5);
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
N_LIB_PRIVATE TNimType NTI__XTejXaID1NT7KS9byQm3Jxg_;
N_LIB_PRIVATE TNimType NTI__PyuSdojUZWOAnzN7dInq1Q_;
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_77, "$1($2, $3) Error: $4", 20);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_78, " expected", 9);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_79, "invalid token", 13);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_80, "EOF", 3);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_81, "string literal", 14);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_82, "int literal", 11);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_83, "float literal", 13);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_84, "{", 1);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_85, "}", 1);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_86, "[", 1);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_87, "]", 1);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_88, ":", 1);
STRING_LITERAL(TM__nIinruGrC8EPIfjL3PuTvA_89, ",", 1);
N_LIB_PRIVATE NIM_CONST tyArray__FkG8aLMyiZfDjueUwWl3WA tokToStr__JGKyaHusNBrTLCQ7XiBnyw = {((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_79),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_80),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_81),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_82),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_83),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_74),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_75),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_73),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_84),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_85),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_86),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_87),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_88),
((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_89)}
;
extern TNimType* nimTypeRoot;
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
static N_NIMCALL(void, Marker_tySequence__Ih0V9cYug0VPJyBBGvgEH7Q)(void* p, NI op) {
tySequence__Ih0V9cYug0VPJyBBGvgEH7Q* a;
NI T1_; a = (tySequence__Ih0V9cYug0VPJyBBGvgEH7Q*)p;
T1_ = (NI)0;}
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(void, open__caSf5pJv2JnMMpxc9bAhdpA)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my, tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* input, NimStringDesc* filename_0, NIM_BOOL rawStringLiterals) { tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T1_;
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T1_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T1_ = &my->Sup;
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
open__P89aGatd6bDNJ0Ak5E9cQgWw(T1_, input, ((NI) 8192), TM__nIinruGrC8EPIfjL3PuTvA_15);
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).filename), copyString(filename_0));
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
genericSeqAssign((&(*my).state), TM__nIinruGrC8EPIfjL3PuTvA_16, (&NTI__Ih0V9cYug0VPJyBBGvgEH7Q_));
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).kind = ((tyEnum_JsonEventKind__0zjE9c54eTrq224F5wMcaFA) 0);
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), ((NimStringDesc*) NIM_NIL));
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).rawStringLiterals = rawStringLiterals;}
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(void, skip__FPdQ9beZqb3bJ7eVHJww6Qg)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { NI pos;
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = (*my).Sup.bufpos; {
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) {
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } switch (((NU8)((*my).Sup.buf->data[pos]))) {
case 47:
{
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_18; NI TM__nIinruGrC8EPIfjL3PuTvA_19;
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_18)) { raiseOverflow(); }; if ((NU)((NI)(TM__nIinruGrC8EPIfjL3PuTvA_18)) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2((NI)(TM__nIinruGrC8EPIfjL3PuTvA_18),((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!((NU8)((*my).Sup.buf->data[(NI)(TM__nIinruGrC8EPIfjL3PuTvA_18)]) == (NU8)(47))) goto LA6_;
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_19)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_19); {
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) {
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } switch (((NU8)((*my).Sup.buf->data[pos]))) {
case 0:
{
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA8;
}
break;
case 13:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T12_;
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T12_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T12_ = &my->Sup;
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleCR__sLQC1Z9cokufE3lZEw9b42Cw(T12_, pos);
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA8;
}
break;
case 10:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T14_;
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T14_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T14_ = &my->Sup;
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleLF__sLQC1Z9cokufE3lZEw9b42Cw_3(T14_, pos);
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA8;
}
break;
default:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_20;
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_20)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_20); }
break;
}
}
} LA8: ;
}
goto LA4_;
LA6_: ;
{ NI TM__nIinruGrC8EPIfjL3PuTvA_21; NI TM__nIinruGrC8EPIfjL3PuTvA_22;
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_21)) { raiseOverflow(); }; if ((NU)((NI)(TM__nIinruGrC8EPIfjL3PuTvA_21)) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2((NI)(TM__nIinruGrC8EPIfjL3PuTvA_21),((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!((NU8)((*my).Sup.buf->data[(NI)(TM__nIinruGrC8EPIfjL3PuTvA_21)]) == (NU8)(42))) goto LA17_;
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_22)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_22); {
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) {
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } switch (((NU8)((*my).Sup.buf->data[pos]))) {
case 0:
{
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).err = ((tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew) 8);
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA19;
}
break;
case 13:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T23_;
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T23_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T23_ = &my->Sup;
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleCR__sLQC1Z9cokufE3lZEw9b42Cw(T23_, pos); }
break;
case 10:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T25_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T25_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T25_ = &my->Sup;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleLF__sLQC1Z9cokufE3lZEw9b42Cw_3(T25_, pos); }
break;
case 42:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_23;
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_23)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_23);
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_24;
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!((NU8)((*my).Sup.buf->data[pos]) == (NU8)(47))) goto LA29_;
#line 304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_24)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_24);
#line 305 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA19;
}
LA29_: ;
}
break;
default:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_25;
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_25)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_25); }
break;
}
}
} LA19: ;
}
goto LA4_;
LA17_: ;
{
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA1;
}
LA4_: ;
}
break;
case 32:
case 9:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_26;
#line 311 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_26)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_26); }
break;
case 13:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T35_;
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T35_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T35_ = &my->Sup;
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleCR__sLQC1Z9cokufE3lZEw9b42Cw(T35_, pos); }
break;
case 10:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T37_;
#line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T37_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T37_ = &my->Sup;
#line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleLF__sLQC1Z9cokufE3lZEw9b42Cw_3(T37_, pos); }
break;
default:
{
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA1;
}
break;
}
}
} LA1: ;
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).Sup.bufpos = pos;}
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimCopyMem(dest, source, size);
}
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).Sup.len += (*src).Sup.len; }
LA3_: ;
}
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(void, parseNumber__FPdQ9beZqb3bJ7eVHJww6Qg_2)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { NI pos;
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = (*my).Sup.bufpos;
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_27;
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!((NU8)((*my).Sup.buf->data[pos]) == (NU8)(45))) goto LA3_;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 45));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_27)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_27); }
LA3_: ;
#line 325 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_29;
#line 325 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!((NU8)((*my).Sup.buf->data[pos]) == (NU8)(46))) goto LA7_;
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), resizeString((*my).a, 2));appendString((*my).a, ((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_28));
#line 327 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_29)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_29); }
goto LA5_;
LA7_: ;
{ {
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) { NI TM__nIinruGrC8EPIfjL3PuTvA_30;
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(48)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(57)))) goto LA11;
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_30)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_30); } LA11: ;
}
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_31;
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!((NU8)((*my).Sup.buf->data[pos]) == (NU8)(46))) goto LA14_;
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 46));
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_31)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_31); }
LA14_: ;
}
LA5_: ;
{
#line 336 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) { NI TM__nIinruGrC8EPIfjL3PuTvA_32;
#line 336 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(48)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(57)))) goto LA17;
#line 337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 338 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_32)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_32); } LA17: ;
}
#line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_33;
#line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) == ((NU8)(69)) || ((NU8)((*my).Sup.buf->data[pos])) == ((NU8)(101)))) goto LA20_;
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 341 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_33)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_33);
#line 342 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_34;
#line 342 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) == ((NU8)(43)) || ((NU8)((*my).Sup.buf->data[pos])) == ((NU8)(45)))) goto LA24_;
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_34)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_34); }
LA24_: ;
{
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) { NI TM__nIinruGrC8EPIfjL3PuTvA_35;
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(48)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(57)))) goto LA27;
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_35)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_35); } LA27: ;
}
}
LA20_: ;
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).Sup.bufpos = pos;}
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, handleHexChar__Avai9b5a9bb83l1HPqx75AfA)(NIM_CHAR c, NI* x_0) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = NIM_TRUE;
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
switch (((NU8)(c))) {
case 48 ... 57:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_49;
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimSubInt(((NU8)(c)), ((NI) 48), &TM__nIinruGrC8EPIfjL3PuTvA_49)) { raiseOverflow(); }; (*x_0) = (NI)((NI)((NU64)((*x_0)) << (NU64)(((NI) 4))) | (NI)(TM__nIinruGrC8EPIfjL3PuTvA_49)); }
break;
case 97 ... 102:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_50; NI TM__nIinruGrC8EPIfjL3PuTvA_51;
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimSubInt(((NU8)(c)), ((NI) 97), &TM__nIinruGrC8EPIfjL3PuTvA_50)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__nIinruGrC8EPIfjL3PuTvA_50), ((NI) 10), &TM__nIinruGrC8EPIfjL3PuTvA_51)) { raiseOverflow(); }; (*x_0) = (NI)((NI)((NU64)((*x_0)) << (NU64)(((NI) 4))) | (NI)(TM__nIinruGrC8EPIfjL3PuTvA_51)); }
break;
case 65 ... 70:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_52; NI TM__nIinruGrC8EPIfjL3PuTvA_53;
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimSubInt(((NU8)(c)), ((NI) 65), &TM__nIinruGrC8EPIfjL3PuTvA_52)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__nIinruGrC8EPIfjL3PuTvA_52), ((NI) 10), &TM__nIinruGrC8EPIfjL3PuTvA_53)) { raiseOverflow(); }; (*x_0) = (NI)((NI)((NU64)((*x_0)) << (NU64)(((NI) 4))) | (NI)(TM__nIinruGrC8EPIfjL3PuTvA_53)); }
break;
default:
{
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = NIM_FALSE; }
break;
}
return result;}
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(NI, parseEscapedUTF16__MMwgsOXZK0fQw6h7UQcVsQ)(NCSTRING buf_0, NI* pos) { NI result;{ result = (NI)0;
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((NI) 0); { NI _; NI res; _ = (NI)0;
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = ((NI) 0); {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__nIinruGrC8EPIfjL3PuTvA_55;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= ((NI) 3))) goto LA3;
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
_ = res;
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NIM_BOOL T6_; NI TM__nIinruGrC8EPIfjL3PuTvA_54;
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T6_ = (NIM_BOOL)0; T6_ = handleHexChar__Avai9b5a9bb83l1HPqx75AfA(buf_0[(*pos)], (&result)); if (!T6_) goto LA7_;
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*pos), ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_54)) { raiseOverflow(); }; (*pos) = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_54); }
goto LA4_;
LA7_: ;
{
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((NI) -1); goto BeforeRet_;
}
LA4_: ;
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(res, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_55)) { raiseOverflow(); }; res = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_55); } LA3: ;
}
}
}BeforeRet_: ;
return result;}
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) { NCSTRING result; result = (NCSTRING)0;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{ NIM_BOOL T3_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
T3_ = (NIM_BOOL)0;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
T3_ = (s == NIM_NIL); if (T3_) goto LA4_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
T3_ = ((*s).Sup.len == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
result = ""; }
goto LA1_;
LA5_: ;
{
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
result = ((NCSTRING) ((*s).data)); }
LA1_: ;
return result;}
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw, parseString__9cGllg9a4hN9cmfjsUw6zu39bQ_2)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw result; NI pos; NI TM__nIinruGrC8EPIfjL3PuTvA_37; result = (tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw)0;
#line 183 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 2);
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_37)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_37);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ if (!(*my).rawStringLiterals) goto LA3_;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 34)); }
LA3_: ;
{
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) {
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } switch (((NU8)((*my).Sup.buf->data[pos]))) {
case 0:
{
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).err = ((tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew) 7);
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 0);
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA5;
}
break;
case 34:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_38;
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ if (!(*my).rawStringLiterals) goto LA11_;
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 34)); }
LA11_: ;
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_38)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_38);
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA5;
}
break;
case 92:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_39;
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ if (!(*my).rawStringLiterals) goto LA16_;
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 92)); }
LA16_: ;
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_39)) { raiseOverflow(); }; if ((NU)((NI)(TM__nIinruGrC8EPIfjL3PuTvA_39)) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2((NI)(TM__nIinruGrC8EPIfjL3PuTvA_39),((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } switch (((NU8)((*my).Sup.buf->data[(NI)(TM__nIinruGrC8EPIfjL3PuTvA_39)]))) {
case 92:
case 34:
case 39:
case 47:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_40; NI TM__nIinruGrC8EPIfjL3PuTvA_41;
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_40)) { raiseOverflow(); }; if ((NU)((NI)(TM__nIinruGrC8EPIfjL3PuTvA_40)) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2((NI)(TM__nIinruGrC8EPIfjL3PuTvA_40),((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[(NI)(TM__nIinruGrC8EPIfjL3PuTvA_40)]));
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_41)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_41); }
break;
case 98:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_42;
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 8));
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_42)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_42); }
break;
case 102:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_43;
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 12));
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_43)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_43); }
break;
case 110:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_44;
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 10));
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_44)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_44); }
break;
case 114:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_45;
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 13));
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_45)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_45); }
break;
case 116:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_46;
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 9));
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_46)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_46); }
break;
case 118:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_47;
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 11));
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_47)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_47); }
break;
case 117:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_48; NI pos2; NI r;
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ if (!(*my).rawStringLiterals) goto LA28_;
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 117)); }
LA28_: ;
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_48)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_48);
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos2 = pos;
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
r = parseEscapedUTF16__MMwgsOXZK0fQw6h7UQcVsQ(nimToCStringConv((*my).Sup.buf), (&pos));
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (!(r < ((NI) 0))) goto LA32_;
#line 230 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).err = ((tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew) 1);
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA5;
}
LA32_: ;
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_57; NI s_1;
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (!((NI)(r & ((NI) 64512)) == ((NI) 55296))) goto LA36_;
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NIM_BOOL T40_; NI TM__nIinruGrC8EPIfjL3PuTvA_56;
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T40_ = (NIM_BOOL)0;
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } T40_ = !(((NU8)((*my).Sup.buf->data[pos]) == (NU8)(92))); if (T40_) goto LA41_;
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_56)) { raiseOverflow(); }; if ((NU)((NI)(TM__nIinruGrC8EPIfjL3PuTvA_56)) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2((NI)(TM__nIinruGrC8EPIfjL3PuTvA_56),((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } T40_ = !(((NU8)((*my).Sup.buf->data[(NI)(TM__nIinruGrC8EPIfjL3PuTvA_56)]) == (NU8)(117))); LA41_: ;
if (!T40_) goto LA42_;
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).err = ((tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew) 1);
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA5;
}
LA42_: ;
#line 237 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 2), &TM__nIinruGrC8EPIfjL3PuTvA_57)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_57);
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
s_1 = parseEscapedUTF16__MMwgsOXZK0fQw6h7UQcVsQ(nimToCStringConv((*my).Sup.buf), (&pos));
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NIM_BOOL T46_; NI TM__nIinruGrC8EPIfjL3PuTvA_58; NI TM__nIinruGrC8EPIfjL3PuTvA_59; NI TM__nIinruGrC8EPIfjL3PuTvA_60;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T46_ = (NIM_BOOL)0;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T46_ = ((NI)(s_1 & ((NI) 64512)) == ((NI) 56320)); if (!(T46_)) goto LA47_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T46_ = (((NI) 0) < s_1); LA47_: ;
if (!T46_) goto LA48_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimSubInt(r, ((NI) 55296), &TM__nIinruGrC8EPIfjL3PuTvA_58)) { raiseOverflow(); };
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimSubInt(s_1, ((NI) 56320), &TM__nIinruGrC8EPIfjL3PuTvA_59)) { raiseOverflow(); }; if (nimAddInt(((NI) 65536), (NI)((NI)((NU64)((NI)(TM__nIinruGrC8EPIfjL3PuTvA_58)) << (NU64)(((NI) 10))) | (NI)(TM__nIinruGrC8EPIfjL3PuTvA_59)), &TM__nIinruGrC8EPIfjL3PuTvA_60)) { raiseOverflow(); }; r = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_60); }
goto LA44_;
LA48_: ;
{
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).err = ((tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew) 1);
#line 243 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA5;
}
LA44_: ;
}
LA36_: ;
#line 244 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI length; NI TM__nIinruGrC8EPIfjL3PuTvA_61; if (!(*my).rawStringLiterals) goto LA53_;
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimSubInt(pos, pos2, &TM__nIinruGrC8EPIfjL3PuTvA_61)) { raiseOverflow(); }; length = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_61); { NI i; NI res; i = (NI)0;
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = ((NI) 1); {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__nIinruGrC8EPIfjL3PuTvA_63;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= length)) goto LA57;
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
i = res;
#line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NI TM__nIinruGrC8EPIfjL3PuTvA_62;
#line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos2) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos2,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos2])) >= ((NU8)(48)) && ((NU8)((*my).Sup.buf->data[pos2])) <= ((NU8)(57)) || ((NU8)((*my).Sup.buf->data[pos2])) >= ((NU8)(65)) && ((NU8)((*my).Sup.buf->data[pos2])) <= ((NU8)(70)) || ((NU8)((*my).Sup.buf->data[pos2])) >= ((NU8)(97)) && ((NU8)((*my).Sup.buf->data[pos2])) <= ((NU8)(102)))) goto LA60_;
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos2) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos2,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos2]));
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos2, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_62)) { raiseOverflow(); }; pos2 = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_62); }
goto LA58_;
LA60_: ;
{
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
goto LA55;
}
LA58_: ;
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(res, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_63)) { raiseOverflow(); }; res = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_63); } LA57: ;
}
} LA55: ;
}
goto LA51_;
LA53_: ;
{ NimStringDesc* T64_;
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((r) < ((NI32) (-2147483647 -1)) || (r) > ((NI32) 2147483647)){ raiseRangeErrorI(r, ((NI32) (-2147483647 -1)), ((NI32) 2147483647)); }
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T64_ = (NimStringDesc*)0; T64_ = nuctoUTF8(((NI32) (r))); unsureAsgnRef((void**) (&(*my).a), resizeString((*my).a, (T64_ ? T64_->Sup.len : 0) + 0));appendString((*my).a, T64_); }
LA51_: ;
}
break;
default:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_64;
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_64)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_64); }
break;
}
}
break;
case 13:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T67_;
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T67_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T67_ = &my->Sup;
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleCR__sLQC1Z9cokufE3lZEw9b42Cw(T67_, pos);
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 13)); }
break;
case 10:
{ tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg* T69_;
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T69_ = (tyObject_BaseLexer__MAw8rJZtJ279bVV3TWMtXSg*)0; T69_ = &my->Sup;
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = handleLF__sLQC1Z9cokufE3lZEw9b42Cw_3(T69_, pos);
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, 10)); }
break;
default:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_65;
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_65)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_65); }
break;
}
}
} LA5: ;
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).Sup.bufpos = pos; return result;}
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(void, parseName__FPdQ9beZqb3bJ7eVHJww6Qg_3)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { NI pos;
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
pos = (*my).Sup.bufpos;
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(97)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(122)) || ((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(65)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(90)) || ((NU8)((*my).Sup.buf->data[pos])) == ((NU8)(95)))) goto LA3_;
{
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
while (1) { NI TM__nIinruGrC8EPIfjL3PuTvA_72;
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } if (!(((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(97)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(122)) || ((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(65)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(90)) || ((NU8)((*my).Sup.buf->data[pos])) >= ((NU8)(48)) && ((NU8)((*my).Sup.buf->data[pos])) <= ((NU8)(57)) || ((NU8)((*my).Sup.buf->data[pos])) == ((NU8)(95)))) goto LA6;
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)(pos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2(pos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*my).a), addChar((*my).a, (*my).Sup.buf->data[pos]));
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt(pos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_72)) { raiseOverflow(); }; pos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_72); } LA6: ;
}
}
LA3_: ;
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).Sup.bufpos = pos;}
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { int result; result = (int)0;
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
result = memcmp(a, b, ((size_t) (size))); return result;}
#line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) { NIM_BOOL result; int T1_; result = (NIM_BOOL)0;
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
T1_ = (int)0; T1_ = nimCmpMem(a, b, size); result = (T1_ == ((NI32) 0)); return result;}
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI alen; NI blen;{ result = (NIM_BOOL)0;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
alen = (a ? a->Sup.len : 0);
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
blen = (b ? b->Sup.len : 0);
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
{
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
if (!(alen == blen)) goto LA3_;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
{
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
if (!(alen == ((NI) 0))) goto LA7_;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
result = NIM_TRUE; goto BeforeRet_;
}
LA7_: ;
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); goto BeforeRet_;
}
LA3_: ;
}BeforeRet_: ;
return result;}
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw, getTok__9cGllg9a4hN9cmfjsUw6zu39bQ)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw result; result = (tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw)0;
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
unsureAsgnRef((void**) (&(*my).a), setLengthStr((*my).a, ((NI) 0)));
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
skip__FPdQ9beZqb3bJ7eVHJww6Qg(my);
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if ((NU)((*my).Sup.bufpos) >= (NU)((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)){ raiseIndexError2((*my).Sup.bufpos,((*my).Sup.buf ? (*my).Sup.buf->Sup.len : 0)-1); } switch (((NU8)((*my).Sup.buf->data[(*my).Sup.bufpos]))) {
case 45:
case 46:
case 48 ... 57:
{
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
parseNumber__FPdQ9beZqb3bJ7eVHJww6Qg_2(my);
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ NIM_BOOL T4_;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T4_ = (NIM_BOOL)0; T4_ = contains__wAzSnEu9cCHHjvPQlWBZUeQ((*my).a, TM__nIinruGrC8EPIfjL3PuTvA_36); if (!T4_) goto LA5_;
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 4); }
goto LA2_;
LA5_: ;
{
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 3); }
LA2_: ;
}
break;
case 34:
{
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = parseString__9cGllg9a4hN9cmfjsUw6zu39bQ_2(my); }
break;
case 91:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_66;
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_66)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_66);
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 10); }
break;
case 123:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_67;
#line 374 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_67)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_67);
#line 375 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 8); }
break;
case 93:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_68;
#line 377 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_68)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_68);
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 11); }
break;
case 125:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_69;
#line 380 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_69)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_69);
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 9); }
break;
case 44:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_70;
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_70)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_70);
#line 384 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 13); }
break;
case 58:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_71;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_71)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_71);
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 12); }
break;
case 0:
{
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 1); }
break;
case 97 ... 122:
case 65 ... 90:
case 95:
{
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
parseName__FPdQ9beZqb3bJ7eVHJww6Qg_3(my);
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (eqStrings((*my).a, ((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_73))) goto LA17_; if (eqStrings((*my).a, ((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_74))) goto LA18_; if (eqStrings((*my).a, ((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_75))) goto LA19_; goto LA20_;
LA17_: ;
{
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 7); }
goto LA21_;
LA18_: ;
{
#line 394 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 5); }
goto LA21_;
LA19_: ;
{
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 6); }
goto LA21_;
LA20_: ;
{
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 0); }
LA21_: ;
}
break;
default:
{ NI TM__nIinruGrC8EPIfjL3PuTvA_76;
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (nimAddInt((*my).Sup.bufpos, ((NI) 1), &TM__nIinruGrC8EPIfjL3PuTvA_76)) { raiseOverflow(); }; (*my).Sup.bufpos = (NI)(TM__nIinruGrC8EPIfjL3PuTvA_76);
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = ((tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw) 0); }
break;
}
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
(*my).tok = result; return result;}
static N_NIMCALL(void, Marker_tyRef__PyuSdojUZWOAnzN7dInq1Q)(void* p, NI op) {
tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg* a;
a = (tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg*)p;
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);}
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
static N_INLINE(NI, getLine__cAlRX82MU9aihWfxn79b1A6wparsejson)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { NI result; result = (NI)0;
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = (*my).Sup.lineNumber; return result;}
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
static N_INLINE(NI, getColumn__cAlRX82MU9aihWfxn79b1A6w_2parsejson)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my) { NI result; result = (NI)0;
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = getColNumber__KUMaHICF9bUPO7tt6hrBs3g((&(*my).Sup), (*my).Sup.bufpos); return result;}
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, errorMsgExpected__wyJNOK33UcOVCdJ9aSuAbOw)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* my, NimStringDesc* e_0) { NimStringDesc* result; tyArray__sMpvt1sOxOJ3LFGulnbeMQ T1_; NI T2_; NI T3_; NimStringDesc* T4_; result = (NimStringDesc*)0;
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
nimZeroMem((void*)T1_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ)); T1_[0] = copyString((*my).filename);
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T2_ = (NI)0; T2_ = getLine__cAlRX82MU9aihWfxn79b1A6wparsejson(my); T1_[1] = nimIntToStr(T2_);
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T3_ = (NI)0; T3_ = getColumn__cAlRX82MU9aihWfxn79b1A6w_2parsejson(my); T1_[2] = nimIntToStr(T3_);
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T4_ = (NimStringDesc*)0; T4_ = rawNewString((e_0 ? e_0->Sup.len : 0) + 9);appendString(T4_, e_0);appendString(T4_, ((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_78)); T1_[3] = T4_;
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
result = nsuFormatOpenArray(((NimStringDesc*) &TM__nIinruGrC8EPIfjL3PuTvA_77), T1_, 4); return result;}
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
}
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ NIM_BOOL T3_;
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
}
LA4_: ;
}
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, asgnRef)(void** dest, void* src) {
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
}
LA3_: ;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
if (!!(((*dest) == NIM_NIL))) goto LA8_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
}
LA8_: ;
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*dest) = src;}
#line 520 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NOINLINE(void, raiseParseErr__VeBRAkMdST9cPQW1Rqk8vwA)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* p_0, NimStringDesc* msg) { tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg* T1_; T1_ = (tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg*)0; T1_ = (tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg*) newObj((&NTI__PyuSdojUZWOAnzN7dInq1Q_), sizeof(tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg)); (*T1_).Sup.Sup.Sup.Sup.m_type = (&NTI__XTejXaID1NT7KS9byQm3Jxg_); (*T1_).Sup.Sup.Sup.name = "JsonParsingError";
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
asgnRef((void**) (&(*T1_).Sup.Sup.Sup.message), errorMsgExpected__wyJNOK33UcOVCdJ9aSuAbOw(p_0, msg)); asgnRef((void**) (&(*T1_).Sup.Sup.Sup.parent), NIM_NIL);
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
raiseExceptionEx((Exception*)T1_, "JsonParsingError", "raiseParseErr", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/parsejson.nim", 522);}
#line 524 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
N_LIB_PRIVATE N_NIMCALL(void, eat__mMX9c3cw7Tuh0xvz23drvSg)(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ* p_0, tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw tok) {
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
{ tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw T5_;
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
if (!((*p_0).tok == tok)) goto LA3_;
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
T5_ = (tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw)0; T5_ = getTok__9cGllg9a4hN9cmfjsUw6zu39bQ(p_0); (void)(T5_);
}
goto LA1_;
LA3_: ;
{
#line 526 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
#line 526 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/parsejson.nim"
raiseParseErr__VeBRAkMdST9cPQW1Rqk8vwA((&(*p_0)), tokToStr__JGKyaHusNBrTLCQ7XiBnyw[(tok)- 0]);
}
LA1_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, stdlib_parsejsonDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__nIinruGrC8EPIfjL3PuTvA_2_7[7];
static TNimNode* TM__nIinruGrC8EPIfjL3PuTvA_3_14[14];
NI TM__nIinruGrC8EPIfjL3PuTvA_5;
static char* NIM_CONST TM__nIinruGrC8EPIfjL3PuTvA_4[14] = {
"tkError",
"tkEof",
"tkString",
"tkInt",
"tkFloat",
"tkTrue",
"tkFalse",
"tkNull",
"tkCurlyLe",
"tkCurlyRi",
"tkBracketLe",
"tkBracketRi",
"tkColon",
"tkComma"};
static TNimNode* TM__nIinruGrC8EPIfjL3PuTvA_6_12[12];
NI TM__nIinruGrC8EPIfjL3PuTvA_8;
static char* NIM_CONST TM__nIinruGrC8EPIfjL3PuTvA_7[12] = {
"jsonError",
"jsonEof",
"jsonString",
"jsonInt",
"jsonFloat",
"jsonTrue",
"jsonFalse",
"jsonNull",
"jsonObjectStart",
"jsonObjectEnd",
"jsonArrayStart",
"jsonArrayEnd"};
static TNimNode* TM__nIinruGrC8EPIfjL3PuTvA_9_11[11];
NI TM__nIinruGrC8EPIfjL3PuTvA_11;
static char* NIM_CONST TM__nIinruGrC8EPIfjL3PuTvA_10[11] = {
"errNone",
"errInvalidToken",
"errStringExpected",
"errColonExpected",
"errCommaExpected",
"errBracketRiExpected",
"errCurlyRiExpected",
"errQuoteExpected",
"errEOC_Expected",
"errEofExpected",
"errExprExpected"};
static TNimNode* TM__nIinruGrC8EPIfjL3PuTvA_12_8[8];
NI TM__nIinruGrC8EPIfjL3PuTvA_14;
static char* NIM_CONST TM__nIinruGrC8EPIfjL3PuTvA_13[8] = {
"stateEof",
"stateStart",
"stateObject",
"stateArray",
"stateExpectArrayComma",
"stateExpectObjectComma",
"stateExpectColon",
"stateExpectValue"};
static TNimNode TM__nIinruGrC8EPIfjL3PuTvA_0[58];NTI__KWIQnzXEOUqdWsnCUL9atyQ_.size = sizeof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ);
NTI__KWIQnzXEOUqdWsnCUL9atyQ_.kind = 17;
NTI__KWIQnzXEOUqdWsnCUL9atyQ_.base = (&NTI__MAw8rJZtJ279bVV3TWMtXSg_);
NTI__KWIQnzXEOUqdWsnCUL9atyQ_.name = "JsonParser";
NTI__KWIQnzXEOUqdWsnCUL9atyQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__KWIQnzXEOUqdWsnCUL9atyQ_;
TM__nIinruGrC8EPIfjL3PuTvA_2_7[0] = &TM__nIinruGrC8EPIfjL3PuTvA_0[1];
TM__nIinruGrC8EPIfjL3PuTvA_0[1].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[1].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, a);
TM__nIinruGrC8EPIfjL3PuTvA_0[1].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__nIinruGrC8EPIfjL3PuTvA_0[1].name = "a";
TM__nIinruGrC8EPIfjL3PuTvA_2_7[1] = &TM__nIinruGrC8EPIfjL3PuTvA_0[2];
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.size = sizeof(tyEnum_TokKind__Q9c4KaNqJU4PbXaGht0C7iw);
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.kind = 14;
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.base = 0;
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.flags = 3;
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.name = "TokKind";
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Q9c4KaNqJU4PbXaGht0C7iw_;
for (TM__nIinruGrC8EPIfjL3PuTvA_5 = 0; TM__nIinruGrC8EPIfjL3PuTvA_5 < 14; TM__nIinruGrC8EPIfjL3PuTvA_5++) {
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_5+3].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_5+3].offset = TM__nIinruGrC8EPIfjL3PuTvA_5;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_5+3].name = TM__nIinruGrC8EPIfjL3PuTvA_4[TM__nIinruGrC8EPIfjL3PuTvA_5];
TM__nIinruGrC8EPIfjL3PuTvA_3_14[TM__nIinruGrC8EPIfjL3PuTvA_5] = &TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_5+3];
}
TM__nIinruGrC8EPIfjL3PuTvA_0[17].len = 14; TM__nIinruGrC8EPIfjL3PuTvA_0[17].kind = 2; TM__nIinruGrC8EPIfjL3PuTvA_0[17].sons = &TM__nIinruGrC8EPIfjL3PuTvA_3_14[0];
NTI__Q9c4KaNqJU4PbXaGht0C7iw_.node = &TM__nIinruGrC8EPIfjL3PuTvA_0[17];
TM__nIinruGrC8EPIfjL3PuTvA_0[2].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[2].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, tok);
TM__nIinruGrC8EPIfjL3PuTvA_0[2].typ = (&NTI__Q9c4KaNqJU4PbXaGht0C7iw_);
TM__nIinruGrC8EPIfjL3PuTvA_0[2].name = "tok";
TM__nIinruGrC8EPIfjL3PuTvA_2_7[2] = &TM__nIinruGrC8EPIfjL3PuTvA_0[18];
NTI__0zjE9c54eTrq224F5wMcaFA_.size = sizeof(tyEnum_JsonEventKind__0zjE9c54eTrq224F5wMcaFA);
NTI__0zjE9c54eTrq224F5wMcaFA_.kind = 14;
NTI__0zjE9c54eTrq224F5wMcaFA_.base = 0;
NTI__0zjE9c54eTrq224F5wMcaFA_.flags = 3;
NTI__0zjE9c54eTrq224F5wMcaFA_.name = "JsonEventKind";
NTI__0zjE9c54eTrq224F5wMcaFA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__0zjE9c54eTrq224F5wMcaFA_;
for (TM__nIinruGrC8EPIfjL3PuTvA_8 = 0; TM__nIinruGrC8EPIfjL3PuTvA_8 < 12; TM__nIinruGrC8EPIfjL3PuTvA_8++) {
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_8+19].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_8+19].offset = TM__nIinruGrC8EPIfjL3PuTvA_8;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_8+19].name = TM__nIinruGrC8EPIfjL3PuTvA_7[TM__nIinruGrC8EPIfjL3PuTvA_8];
TM__nIinruGrC8EPIfjL3PuTvA_6_12[TM__nIinruGrC8EPIfjL3PuTvA_8] = &TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_8+19];
}
TM__nIinruGrC8EPIfjL3PuTvA_0[31].len = 12; TM__nIinruGrC8EPIfjL3PuTvA_0[31].kind = 2; TM__nIinruGrC8EPIfjL3PuTvA_0[31].sons = &TM__nIinruGrC8EPIfjL3PuTvA_6_12[0];
NTI__0zjE9c54eTrq224F5wMcaFA_.node = &TM__nIinruGrC8EPIfjL3PuTvA_0[31];
TM__nIinruGrC8EPIfjL3PuTvA_0[18].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[18].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, kind);
TM__nIinruGrC8EPIfjL3PuTvA_0[18].typ = (&NTI__0zjE9c54eTrq224F5wMcaFA_);
TM__nIinruGrC8EPIfjL3PuTvA_0[18].name = "kind";
TM__nIinruGrC8EPIfjL3PuTvA_2_7[3] = &TM__nIinruGrC8EPIfjL3PuTvA_0[32];
NTI__G9cw5MrJXJrcpID5JXaplew_.size = sizeof(tyEnum_JsonError__G9cw5MrJXJrcpID5JXaplew);
NTI__G9cw5MrJXJrcpID5JXaplew_.kind = 14;
NTI__G9cw5MrJXJrcpID5JXaplew_.base = 0;
NTI__G9cw5MrJXJrcpID5JXaplew_.flags = 3;
NTI__G9cw5MrJXJrcpID5JXaplew_.name = "JsonError";
NTI__G9cw5MrJXJrcpID5JXaplew_.nextType = nimTypeRoot; nimTypeRoot=&NTI__G9cw5MrJXJrcpID5JXaplew_;
for (TM__nIinruGrC8EPIfjL3PuTvA_11 = 0; TM__nIinruGrC8EPIfjL3PuTvA_11 < 11; TM__nIinruGrC8EPIfjL3PuTvA_11++) {
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_11+33].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_11+33].offset = TM__nIinruGrC8EPIfjL3PuTvA_11;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_11+33].name = TM__nIinruGrC8EPIfjL3PuTvA_10[TM__nIinruGrC8EPIfjL3PuTvA_11];
TM__nIinruGrC8EPIfjL3PuTvA_9_11[TM__nIinruGrC8EPIfjL3PuTvA_11] = &TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_11+33];
}
TM__nIinruGrC8EPIfjL3PuTvA_0[44].len = 11; TM__nIinruGrC8EPIfjL3PuTvA_0[44].kind = 2; TM__nIinruGrC8EPIfjL3PuTvA_0[44].sons = &TM__nIinruGrC8EPIfjL3PuTvA_9_11[0];
NTI__G9cw5MrJXJrcpID5JXaplew_.node = &TM__nIinruGrC8EPIfjL3PuTvA_0[44];
TM__nIinruGrC8EPIfjL3PuTvA_0[32].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[32].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, err);
TM__nIinruGrC8EPIfjL3PuTvA_0[32].typ = (&NTI__G9cw5MrJXJrcpID5JXaplew_);
TM__nIinruGrC8EPIfjL3PuTvA_0[32].name = "err";
TM__nIinruGrC8EPIfjL3PuTvA_2_7[4] = &TM__nIinruGrC8EPIfjL3PuTvA_0[45];
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.size = sizeof(tyEnum_ParserState__Na0rM2Zdr3RpxeNeXbvLrQ);
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.kind = 14;
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.base = 0;
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.flags = 3;
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.name = "ParserState";
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Na0rM2Zdr3RpxeNeXbvLrQ_;
for (TM__nIinruGrC8EPIfjL3PuTvA_14 = 0; TM__nIinruGrC8EPIfjL3PuTvA_14 < 8; TM__nIinruGrC8EPIfjL3PuTvA_14++) {
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_14+46].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_14+46].offset = TM__nIinruGrC8EPIfjL3PuTvA_14;
TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_14+46].name = TM__nIinruGrC8EPIfjL3PuTvA_13[TM__nIinruGrC8EPIfjL3PuTvA_14];
TM__nIinruGrC8EPIfjL3PuTvA_12_8[TM__nIinruGrC8EPIfjL3PuTvA_14] = &TM__nIinruGrC8EPIfjL3PuTvA_0[TM__nIinruGrC8EPIfjL3PuTvA_14+46];
}
TM__nIinruGrC8EPIfjL3PuTvA_0[54].len = 8; TM__nIinruGrC8EPIfjL3PuTvA_0[54].kind = 2; TM__nIinruGrC8EPIfjL3PuTvA_0[54].sons = &TM__nIinruGrC8EPIfjL3PuTvA_12_8[0];
NTI__Na0rM2Zdr3RpxeNeXbvLrQ_.node = &TM__nIinruGrC8EPIfjL3PuTvA_0[54];
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.size = sizeof(tySequence__Ih0V9cYug0VPJyBBGvgEH7Q*);
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.kind = 24;
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.base = (&NTI__Na0rM2Zdr3RpxeNeXbvLrQ_);
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.flags = 2;
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.name = "seq[ParserState]";
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Ih0V9cYug0VPJyBBGvgEH7Q_;
NTI__Ih0V9cYug0VPJyBBGvgEH7Q_.marker = Marker_tySequence__Ih0V9cYug0VPJyBBGvgEH7Q;
TM__nIinruGrC8EPIfjL3PuTvA_0[45].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[45].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, state);
TM__nIinruGrC8EPIfjL3PuTvA_0[45].typ = (&NTI__Ih0V9cYug0VPJyBBGvgEH7Q_);
TM__nIinruGrC8EPIfjL3PuTvA_0[45].name = "state";
TM__nIinruGrC8EPIfjL3PuTvA_2_7[5] = &TM__nIinruGrC8EPIfjL3PuTvA_0[55];
TM__nIinruGrC8EPIfjL3PuTvA_0[55].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[55].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, filename);
TM__nIinruGrC8EPIfjL3PuTvA_0[55].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__nIinruGrC8EPIfjL3PuTvA_0[55].name = "filename";
TM__nIinruGrC8EPIfjL3PuTvA_2_7[6] = &TM__nIinruGrC8EPIfjL3PuTvA_0[56];
TM__nIinruGrC8EPIfjL3PuTvA_0[56].kind = 1;
TM__nIinruGrC8EPIfjL3PuTvA_0[56].offset = offsetof(tyObject_JsonParser__KWIQnzXEOUqdWsnCUL9atyQ, rawStringLiterals);
TM__nIinruGrC8EPIfjL3PuTvA_0[56].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__nIinruGrC8EPIfjL3PuTvA_0[56].name = "rawStringLiterals";
TM__nIinruGrC8EPIfjL3PuTvA_0[0].len = 7; TM__nIinruGrC8EPIfjL3PuTvA_0[0].kind = 2; TM__nIinruGrC8EPIfjL3PuTvA_0[0].sons = &TM__nIinruGrC8EPIfjL3PuTvA_2_7[0];
NTI__KWIQnzXEOUqdWsnCUL9atyQ_.node = &TM__nIinruGrC8EPIfjL3PuTvA_0[0];
NTI__XTejXaID1NT7KS9byQm3Jxg_.size = sizeof(tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg);
NTI__XTejXaID1NT7KS9byQm3Jxg_.kind = 17;
NTI__XTejXaID1NT7KS9byQm3Jxg_.base = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
NTI__XTejXaID1NT7KS9byQm3Jxg_.name = "JsonParsingError";
NTI__XTejXaID1NT7KS9byQm3Jxg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__XTejXaID1NT7KS9byQm3Jxg_;
TM__nIinruGrC8EPIfjL3PuTvA_0[57].len = 0; TM__nIinruGrC8EPIfjL3PuTvA_0[57].kind = 2;
NTI__XTejXaID1NT7KS9byQm3Jxg_.node = &TM__nIinruGrC8EPIfjL3PuTvA_0[57];
NTI__PyuSdojUZWOAnzN7dInq1Q_.size = sizeof(tyObject_JsonParsingError__XTejXaID1NT7KS9byQm3Jxg*);
NTI__PyuSdojUZWOAnzN7dInq1Q_.kind = 22;
NTI__PyuSdojUZWOAnzN7dInq1Q_.base = (&NTI__XTejXaID1NT7KS9byQm3Jxg_);
NTI__PyuSdojUZWOAnzN7dInq1Q_.name = "ref JsonParsingError";
NTI__PyuSdojUZWOAnzN7dInq1Q_.nextType = nimTypeRoot; nimTypeRoot=&NTI__PyuSdojUZWOAnzN7dInq1Q_;
NTI__PyuSdojUZWOAnzN7dInq1Q_.marker = Marker_tyRef__PyuSdojUZWOAnzN7dInq1Q;
}