/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
#include "nimbase.h"
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tgeneraltokenizer353023 tgeneraltokenizer353023;
typedef struct TNimObject TNimObject;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NimStringDesc* TY353076[7];
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tgeneraltokenizer353023  {
  TNimObject Sup;
NU8 Kind;
NI Start;
NI Length;
NCSTRING Buf;
NI Pos;
NU8 State;
};
typedef NimStringDesc* TY353088[69];
typedef NU8 TY212607[32];
typedef NimStringDesc* TY356119[48];
typedef NimStringDesc* TY356136[77];
typedef NimStringDesc* TY356103[37];
typedef NimStringDesc* TY356153[53];
typedef NimStringDesc* TY353082[33];
N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, initgeneraltokenizer_353180)(tgeneraltokenizer353023* g, NCSTRING buf);
N_NIMCALL(void, nimnexttoken_353753)(tgeneraltokenizer353023* g);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NU8, nimgetkeyword_353250)(NimStringDesc* id);
N_NIMCALL(NI, nimnumberpostfix_353420)(tgeneraltokenizer353023* g, NI position);
N_NIMCALL(NI, nimnumber_353573)(tgeneraltokenizer353023* g, NI position);
N_NIMCALL(void, cppnexttoken_356114)(tgeneraltokenizer353023* g);
N_NIMCALL(void, clikenexttoken_355132)(tgeneraltokenizer353023* g, NimStringDesc** keywords, NI keywordsLen0, NU8 flags);
N_NIMCALL(NI, iskeyword_355059)(NimStringDesc** x, NI xLen0, NimStringDesc* y);
N_NIMCALL(NI, cmp_4517)(NimStringDesc* x, NimStringDesc* y);
N_NIMCALL(NI, generalnumber_354705)(tgeneraltokenizer353023* g, NI position);
N_NIMCALL(NI, generalstrlit_354880)(tgeneraltokenizer353023* g, NI position);
N_NIMCALL(void, csharpnexttoken_356131)(tgeneraltokenizer353023* g);
N_NIMCALL(void, cnexttoken_356098)(tgeneraltokenizer353023* g);
N_NIMCALL(void, javanexttoken_356148)(tgeneraltokenizer353023* g);
STRING_LITERAL(TMP2223, "none", 4);
STRING_LITERAL(TMP2224, "Nim", 3);
STRING_LITERAL(TMP2225, "Nimrod", 6);
STRING_LITERAL(TMP2226, "C++", 3);
STRING_LITERAL(TMP2227, "C#", 2);
STRING_LITERAL(TMP2228, "C", 1);
STRING_LITERAL(TMP2229, "Java", 4);
NIM_CONST TY353076 sourcelanguagetostr_353075 = {((NimStringDesc*) &TMP2223),
((NimStringDesc*) &TMP2224),
((NimStringDesc*) &TMP2225),
((NimStringDesc*) &TMP2226),
((NimStringDesc*) &TMP2227),
((NimStringDesc*) &TMP2228),
((NimStringDesc*) &TMP2229)}
;
STRING_LITERAL(TMP2241, "", 0);
STRING_LITERAL(TMP2242, "addr", 4);
STRING_LITERAL(TMP2243, "and", 3);
STRING_LITERAL(TMP2244, "as", 2);
STRING_LITERAL(TMP2245, "asm", 3);
STRING_LITERAL(TMP2246, "atomic", 6);
STRING_LITERAL(TMP2247, "bind", 4);
STRING_LITERAL(TMP2248, "block", 5);
STRING_LITERAL(TMP2249, "break", 5);
STRING_LITERAL(TMP2250, "case", 4);
STRING_LITERAL(TMP2251, "cast", 4);
STRING_LITERAL(TMP2252, "const", 5);
STRING_LITERAL(TMP2253, "continue", 8);
STRING_LITERAL(TMP2254, "converter", 9);
STRING_LITERAL(TMP2255, "defer", 5);
STRING_LITERAL(TMP2256, "discard", 7);
STRING_LITERAL(TMP2257, "distinct", 8);
STRING_LITERAL(TMP2258, "div", 3);
STRING_LITERAL(TMP2259, "do", 2);
STRING_LITERAL(TMP2260, "elif", 4);
STRING_LITERAL(TMP2261, "else", 4);
STRING_LITERAL(TMP2262, "end", 3);
STRING_LITERAL(TMP2263, "enum", 4);
STRING_LITERAL(TMP2264, "except", 6);
STRING_LITERAL(TMP2265, "export", 6);
STRING_LITERAL(TMP2266, "finally", 7);
STRING_LITERAL(TMP2267, "for", 3);
STRING_LITERAL(TMP2268, "from", 4);
STRING_LITERAL(TMP2269, "func", 4);
STRING_LITERAL(TMP2270, "generic", 7);
STRING_LITERAL(TMP2271, "if", 2);
STRING_LITERAL(TMP2272, "import", 6);
STRING_LITERAL(TMP2273, "in", 2);
STRING_LITERAL(TMP2274, "include", 7);
STRING_LITERAL(TMP2275, "interface", 9);
STRING_LITERAL(TMP2276, "is", 2);
STRING_LITERAL(TMP2277, "isnot", 5);
STRING_LITERAL(TMP2278, "iterator", 8);
STRING_LITERAL(TMP2279, "let", 3);
STRING_LITERAL(TMP2280, "macro", 5);
STRING_LITERAL(TMP2281, "method", 6);
STRING_LITERAL(TMP2282, "mixin", 5);
STRING_LITERAL(TMP2283, "mod", 3);
STRING_LITERAL(TMP2284, "nil", 3);
STRING_LITERAL(TMP2285, "not", 3);
STRING_LITERAL(TMP2286, "notin", 5);
STRING_LITERAL(TMP2287, "object", 6);
STRING_LITERAL(TMP2288, "of", 2);
STRING_LITERAL(TMP2289, "or", 2);
STRING_LITERAL(TMP2290, "out", 3);
STRING_LITERAL(TMP2291, "proc", 4);
STRING_LITERAL(TMP2292, "ptr", 3);
STRING_LITERAL(TMP2293, "raise", 5);
STRING_LITERAL(TMP2294, "ref", 3);
STRING_LITERAL(TMP2295, "return", 6);
STRING_LITERAL(TMP2296, "shl", 3);
STRING_LITERAL(TMP2297, "shr", 3);
STRING_LITERAL(TMP2298, "static", 6);
STRING_LITERAL(TMP2299, "template", 8);
STRING_LITERAL(TMP2300, "try", 3);
STRING_LITERAL(TMP2301, "tuple", 5);
STRING_LITERAL(TMP2302, "type", 4);
STRING_LITERAL(TMP2303, "using", 5);
STRING_LITERAL(TMP2304, "var", 3);
STRING_LITERAL(TMP2305, "when", 4);
STRING_LITERAL(TMP2306, "while", 5);
STRING_LITERAL(TMP2307, "with", 4);
STRING_LITERAL(TMP2308, "without", 7);
STRING_LITERAL(TMP2309, "xor", 3);
STRING_LITERAL(TMP2310, "yield", 5);
NIM_CONST TY353088 nimkeywords_353087 = {((NimStringDesc*) &TMP2242),
((NimStringDesc*) &TMP2243),
((NimStringDesc*) &TMP2244),
((NimStringDesc*) &TMP2245),
((NimStringDesc*) &TMP2246),
((NimStringDesc*) &TMP2247),
((NimStringDesc*) &TMP2248),
((NimStringDesc*) &TMP2249),
((NimStringDesc*) &TMP2250),
((NimStringDesc*) &TMP2251),
((NimStringDesc*) &TMP2252),
((NimStringDesc*) &TMP2253),
((NimStringDesc*) &TMP2254),
((NimStringDesc*) &TMP2255),
((NimStringDesc*) &TMP2256),
((NimStringDesc*) &TMP2257),
((NimStringDesc*) &TMP2258),
((NimStringDesc*) &TMP2259),
((NimStringDesc*) &TMP2260),
((NimStringDesc*) &TMP2261),
((NimStringDesc*) &TMP2262),
((NimStringDesc*) &TMP2263),
((NimStringDesc*) &TMP2264),
((NimStringDesc*) &TMP2265),
((NimStringDesc*) &TMP2266),
((NimStringDesc*) &TMP2267),
((NimStringDesc*) &TMP2268),
((NimStringDesc*) &TMP2269),
((NimStringDesc*) &TMP2270),
((NimStringDesc*) &TMP2271),
((NimStringDesc*) &TMP2272),
((NimStringDesc*) &TMP2273),
((NimStringDesc*) &TMP2274),
((NimStringDesc*) &TMP2275),
((NimStringDesc*) &TMP2276),
((NimStringDesc*) &TMP2277),
((NimStringDesc*) &TMP2278),
((NimStringDesc*) &TMP2279),
((NimStringDesc*) &TMP2280),
((NimStringDesc*) &TMP2281),
((NimStringDesc*) &TMP2282),
((NimStringDesc*) &TMP2283),
((NimStringDesc*) &TMP2284),
((NimStringDesc*) &TMP2285),
((NimStringDesc*) &TMP2286),
((NimStringDesc*) &TMP2287),
((NimStringDesc*) &TMP2288),
((NimStringDesc*) &TMP2289),
((NimStringDesc*) &TMP2290),
((NimStringDesc*) &TMP2291),
((NimStringDesc*) &TMP2292),
((NimStringDesc*) &TMP2293),
((NimStringDesc*) &TMP2294),
((NimStringDesc*) &TMP2295),
((NimStringDesc*) &TMP2296),
((NimStringDesc*) &TMP2297),
((NimStringDesc*) &TMP2298),
((NimStringDesc*) &TMP2299),
((NimStringDesc*) &TMP2300),
((NimStringDesc*) &TMP2301),
((NimStringDesc*) &TMP2302),
((NimStringDesc*) &TMP2303),
((NimStringDesc*) &TMP2304),
((NimStringDesc*) &TMP2305),
((NimStringDesc*) &TMP2306),
((NimStringDesc*) &TMP2307),
((NimStringDesc*) &TMP2308),
((NimStringDesc*) &TMP2309),
((NimStringDesc*) &TMP2310)}
;
static NIM_CONST TY212607 TMP2311 = {
0x00, 0x00, 0x00, 0x00, 0x72, 0xEC, 0x00, 0xF4,
0x01, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x50,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
;
STRING_LITERAL(TMP2313, "auto", 4);
STRING_LITERAL(TMP2314, "catch", 5);
STRING_LITERAL(TMP2315, "char", 4);
STRING_LITERAL(TMP2316, "class", 5);
STRING_LITERAL(TMP2317, "default", 7);
STRING_LITERAL(TMP2318, "delete", 6);
STRING_LITERAL(TMP2319, "double", 6);
STRING_LITERAL(TMP2320, "extern", 6);
STRING_LITERAL(TMP2321, "float", 5);
STRING_LITERAL(TMP2322, "friend", 6);
STRING_LITERAL(TMP2323, "goto", 4);
STRING_LITERAL(TMP2324, "inline", 6);
STRING_LITERAL(TMP2325, "int", 3);
STRING_LITERAL(TMP2326, "long", 4);
STRING_LITERAL(TMP2327, "new", 3);
STRING_LITERAL(TMP2328, "operator", 8);
STRING_LITERAL(TMP2329, "private", 7);
STRING_LITERAL(TMP2330, "protected", 9);
STRING_LITERAL(TMP2331, "public", 6);
STRING_LITERAL(TMP2332, "register", 8);
STRING_LITERAL(TMP2333, "short", 5);
STRING_LITERAL(TMP2334, "signed", 6);
STRING_LITERAL(TMP2335, "sizeof", 6);
STRING_LITERAL(TMP2336, "struct", 6);
STRING_LITERAL(TMP2337, "switch", 6);
STRING_LITERAL(TMP2338, "this", 4);
STRING_LITERAL(TMP2339, "throw", 5);
STRING_LITERAL(TMP2340, "typedef", 7);
STRING_LITERAL(TMP2341, "union", 5);
STRING_LITERAL(TMP2342, "unsigned", 8);
STRING_LITERAL(TMP2343, "virtual", 7);
STRING_LITERAL(TMP2344, "void", 4);
STRING_LITERAL(TMP2345, "volatile", 8);
NIM_CONST TY356119 TMP2312 = {((NimStringDesc*) &TMP2245),
((NimStringDesc*) &TMP2313),
((NimStringDesc*) &TMP2249),
((NimStringDesc*) &TMP2250),
((NimStringDesc*) &TMP2314),
((NimStringDesc*) &TMP2315),
((NimStringDesc*) &TMP2316),
((NimStringDesc*) &TMP2252),
((NimStringDesc*) &TMP2253),
((NimStringDesc*) &TMP2317),
((NimStringDesc*) &TMP2318),
((NimStringDesc*) &TMP2259),
((NimStringDesc*) &TMP2319),
((NimStringDesc*) &TMP2261),
((NimStringDesc*) &TMP2263),
((NimStringDesc*) &TMP2320),
((NimStringDesc*) &TMP2321),
((NimStringDesc*) &TMP2267),
((NimStringDesc*) &TMP2322),
((NimStringDesc*) &TMP2323),
((NimStringDesc*) &TMP2271),
((NimStringDesc*) &TMP2324),
((NimStringDesc*) &TMP2325),
((NimStringDesc*) &TMP2326),
((NimStringDesc*) &TMP2327),
((NimStringDesc*) &TMP2328),
((NimStringDesc*) &TMP2329),
((NimStringDesc*) &TMP2330),
((NimStringDesc*) &TMP2331),
((NimStringDesc*) &TMP2332),
((NimStringDesc*) &TMP2295),
((NimStringDesc*) &TMP2333),
((NimStringDesc*) &TMP2334),
((NimStringDesc*) &TMP2335),
((NimStringDesc*) &TMP2298),
((NimStringDesc*) &TMP2336),
((NimStringDesc*) &TMP2337),
((NimStringDesc*) &TMP2299),
((NimStringDesc*) &TMP2338),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2300),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2341),
((NimStringDesc*) &TMP2342),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2345),
((NimStringDesc*) &TMP2306)}
;
STRING_LITERAL(TMP2347, "abstract", 8);
STRING_LITERAL(TMP2348, "base", 4);
STRING_LITERAL(TMP2349, "bool", 4);
STRING_LITERAL(TMP2350, "byte", 4);
STRING_LITERAL(TMP2351, "checked", 7);
STRING_LITERAL(TMP2352, "decimal", 7);
STRING_LITERAL(TMP2353, "delegate", 8);
STRING_LITERAL(TMP2354, "event", 5);
STRING_LITERAL(TMP2355, "explicit", 8);
STRING_LITERAL(TMP2356, "false", 5);
STRING_LITERAL(TMP2357, "fixed", 5);
STRING_LITERAL(TMP2358, "foreach", 7);
STRING_LITERAL(TMP2359, "implicit", 8);
STRING_LITERAL(TMP2360, "internal", 8);
STRING_LITERAL(TMP2361, "lock", 4);
STRING_LITERAL(TMP2362, "namespace", 9);
STRING_LITERAL(TMP2363, "null", 4);
STRING_LITERAL(TMP2364, "override", 8);
STRING_LITERAL(TMP2365, "params", 6);
STRING_LITERAL(TMP2366, "readonly", 8);
STRING_LITERAL(TMP2367, "sbyte", 5);
STRING_LITERAL(TMP2368, "sealed", 6);
STRING_LITERAL(TMP2369, "stackalloc", 10);
STRING_LITERAL(TMP2370, "string", 6);
STRING_LITERAL(TMP2371, "true", 4);
STRING_LITERAL(TMP2372, "typeof", 6);
STRING_LITERAL(TMP2373, "uint", 4);
STRING_LITERAL(TMP2374, "ulong", 5);
STRING_LITERAL(TMP2375, "unchecked", 9);
STRING_LITERAL(TMP2376, "unsafe", 6);
STRING_LITERAL(TMP2377, "ushort", 6);
NIM_CONST TY356136 TMP2346 = {((NimStringDesc*) &TMP2347),
((NimStringDesc*) &TMP2244),
((NimStringDesc*) &TMP2348),
((NimStringDesc*) &TMP2349),
((NimStringDesc*) &TMP2249),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2250),
((NimStringDesc*) &TMP2314),
((NimStringDesc*) &TMP2315),
((NimStringDesc*) &TMP2351),
((NimStringDesc*) &TMP2316),
((NimStringDesc*) &TMP2252),
((NimStringDesc*) &TMP2253),
((NimStringDesc*) &TMP2352),
((NimStringDesc*) &TMP2317),
((NimStringDesc*) &TMP2353),
((NimStringDesc*) &TMP2259),
((NimStringDesc*) &TMP2319),
((NimStringDesc*) &TMP2261),
((NimStringDesc*) &TMP2263),
((NimStringDesc*) &TMP2354),
((NimStringDesc*) &TMP2355),
((NimStringDesc*) &TMP2320),
((NimStringDesc*) &TMP2356),
((NimStringDesc*) &TMP2266),
((NimStringDesc*) &TMP2357),
((NimStringDesc*) &TMP2321),
((NimStringDesc*) &TMP2267),
((NimStringDesc*) &TMP2358),
((NimStringDesc*) &TMP2323),
((NimStringDesc*) &TMP2271),
((NimStringDesc*) &TMP2359),
((NimStringDesc*) &TMP2273),
((NimStringDesc*) &TMP2325),
((NimStringDesc*) &TMP2275),
((NimStringDesc*) &TMP2360),
((NimStringDesc*) &TMP2276),
((NimStringDesc*) &TMP2361),
((NimStringDesc*) &TMP2326),
((NimStringDesc*) &TMP2362),
((NimStringDesc*) &TMP2327),
((NimStringDesc*) &TMP2363),
((NimStringDesc*) &TMP2287),
((NimStringDesc*) &TMP2328),
((NimStringDesc*) &TMP2290),
((NimStringDesc*) &TMP2364),
((NimStringDesc*) &TMP2365),
((NimStringDesc*) &TMP2329),
((NimStringDesc*) &TMP2330),
((NimStringDesc*) &TMP2331),
((NimStringDesc*) &TMP2366),
((NimStringDesc*) &TMP2294),
((NimStringDesc*) &TMP2295),
((NimStringDesc*) &TMP2367),
((NimStringDesc*) &TMP2368),
((NimStringDesc*) &TMP2333),
((NimStringDesc*) &TMP2335),
((NimStringDesc*) &TMP2369),
((NimStringDesc*) &TMP2298),
((NimStringDesc*) &TMP2370),
((NimStringDesc*) &TMP2336),
((NimStringDesc*) &TMP2337),
((NimStringDesc*) &TMP2338),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2371),
((NimStringDesc*) &TMP2300),
((NimStringDesc*) &TMP2372),
((NimStringDesc*) &TMP2373),
((NimStringDesc*) &TMP2374),
((NimStringDesc*) &TMP2375),
((NimStringDesc*) &TMP2376),
((NimStringDesc*) &TMP2377),
((NimStringDesc*) &TMP2303),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2345),
((NimStringDesc*) &TMP2306)}
;
STRING_LITERAL(TMP2379, "_Bool", 5);
STRING_LITERAL(TMP2380, "_Complex", 8);
STRING_LITERAL(TMP2381, "_Imaginary", 10);
STRING_LITERAL(TMP2382, "restrict", 8);
NIM_CONST TY356103 TMP2378 = {((NimStringDesc*) &TMP2379),
((NimStringDesc*) &TMP2380),
((NimStringDesc*) &TMP2381),
((NimStringDesc*) &TMP2313),
((NimStringDesc*) &TMP2249),
((NimStringDesc*) &TMP2250),
((NimStringDesc*) &TMP2315),
((NimStringDesc*) &TMP2252),
((NimStringDesc*) &TMP2253),
((NimStringDesc*) &TMP2317),
((NimStringDesc*) &TMP2259),
((NimStringDesc*) &TMP2319),
((NimStringDesc*) &TMP2261),
((NimStringDesc*) &TMP2263),
((NimStringDesc*) &TMP2320),
((NimStringDesc*) &TMP2321),
((NimStringDesc*) &TMP2267),
((NimStringDesc*) &TMP2323),
((NimStringDesc*) &TMP2271),
((NimStringDesc*) &TMP2324),
((NimStringDesc*) &TMP2325),
((NimStringDesc*) &TMP2326),
((NimStringDesc*) &TMP2332),
((NimStringDesc*) &TMP2382),
((NimStringDesc*) &TMP2295),
((NimStringDesc*) &TMP2333),
((NimStringDesc*) &TMP2334),
((NimStringDesc*) &TMP2335),
((NimStringDesc*) &TMP2298),
((NimStringDesc*) &TMP2336),
((NimStringDesc*) &TMP2337),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2341),
((NimStringDesc*) &TMP2342),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2345),
((NimStringDesc*) &TMP2306)}
;
STRING_LITERAL(TMP2384, "assert", 6);
STRING_LITERAL(TMP2385, "boolean", 7);
STRING_LITERAL(TMP2386, "extends", 7);
STRING_LITERAL(TMP2387, "final", 5);
STRING_LITERAL(TMP2388, "implements", 10);
STRING_LITERAL(TMP2389, "instanceof", 10);
STRING_LITERAL(TMP2390, "native", 6);
STRING_LITERAL(TMP2391, "package", 7);
STRING_LITERAL(TMP2392, "strictfp", 8);
STRING_LITERAL(TMP2393, "super", 5);
STRING_LITERAL(TMP2394, "synchronized", 12);
STRING_LITERAL(TMP2395, "throws", 6);
STRING_LITERAL(TMP2396, "transient", 9);
NIM_CONST TY356153 TMP2383 = {((NimStringDesc*) &TMP2347),
((NimStringDesc*) &TMP2384),
((NimStringDesc*) &TMP2385),
((NimStringDesc*) &TMP2249),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2250),
((NimStringDesc*) &TMP2314),
((NimStringDesc*) &TMP2315),
((NimStringDesc*) &TMP2316),
((NimStringDesc*) &TMP2252),
((NimStringDesc*) &TMP2253),
((NimStringDesc*) &TMP2317),
((NimStringDesc*) &TMP2259),
((NimStringDesc*) &TMP2319),
((NimStringDesc*) &TMP2261),
((NimStringDesc*) &TMP2263),
((NimStringDesc*) &TMP2386),
((NimStringDesc*) &TMP2356),
((NimStringDesc*) &TMP2387),
((NimStringDesc*) &TMP2266),
((NimStringDesc*) &TMP2321),
((NimStringDesc*) &TMP2267),
((NimStringDesc*) &TMP2323),
((NimStringDesc*) &TMP2271),
((NimStringDesc*) &TMP2388),
((NimStringDesc*) &TMP2272),
((NimStringDesc*) &TMP2389),
((NimStringDesc*) &TMP2325),
((NimStringDesc*) &TMP2275),
((NimStringDesc*) &TMP2326),
((NimStringDesc*) &TMP2390),
((NimStringDesc*) &TMP2327),
((NimStringDesc*) &TMP2363),
((NimStringDesc*) &TMP2391),
((NimStringDesc*) &TMP2329),
((NimStringDesc*) &TMP2330),
((NimStringDesc*) &TMP2331),
((NimStringDesc*) &TMP2295),
((NimStringDesc*) &TMP2333),
((NimStringDesc*) &TMP2298),
((NimStringDesc*) &TMP2392),
((NimStringDesc*) &TMP2393),
((NimStringDesc*) &TMP2337),
((NimStringDesc*) &TMP2394),
((NimStringDesc*) &TMP2338),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2395),
((NimStringDesc*) &TMP2396),
((NimStringDesc*) &TMP2371),
((NimStringDesc*) &TMP2300),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2345),
((NimStringDesc*) &TMP2306)}
;
STRING_LITERAL(TMP2399, "Eof", 3);
STRING_LITERAL(TMP2400, "None", 4);
STRING_LITERAL(TMP2401, "Whitespace", 10);
STRING_LITERAL(TMP2402, "DecNumber", 9);
STRING_LITERAL(TMP2403, "BinNumber", 9);
STRING_LITERAL(TMP2404, "HexNumber", 9);
STRING_LITERAL(TMP2405, "OctNumber", 9);
STRING_LITERAL(TMP2406, "FloatNumber", 11);
STRING_LITERAL(TMP2407, "Identifier", 10);
STRING_LITERAL(TMP2408, "Keyword", 7);
STRING_LITERAL(TMP2409, "StringLit", 9);
STRING_LITERAL(TMP2410, "LongStringLit", 13);
STRING_LITERAL(TMP2411, "CharLit", 7);
STRING_LITERAL(TMP2412, "EscapeSequence", 14);
STRING_LITERAL(TMP2413, "Operator", 8);
STRING_LITERAL(TMP2414, "Punctuation", 11);
STRING_LITERAL(TMP2415, "Comment", 7);
STRING_LITERAL(TMP2416, "LongComment", 11);
STRING_LITERAL(TMP2417, "RegularExpression", 17);
STRING_LITERAL(TMP2418, "TagStart", 8);
STRING_LITERAL(TMP2419, "TagEnd", 6);
STRING_LITERAL(TMP2420, "Key", 3);
STRING_LITERAL(TMP2421, "Value", 5);
STRING_LITERAL(TMP2422, "RawData", 7);
STRING_LITERAL(TMP2423, "Assembler", 9);
STRING_LITERAL(TMP2424, "Preprocessor", 12);
STRING_LITERAL(TMP2425, "Directive", 9);
STRING_LITERAL(TMP2426, "Command", 7);
STRING_LITERAL(TMP2427, "Rule", 4);
STRING_LITERAL(TMP2428, "Hyperlink", 9);
STRING_LITERAL(TMP2429, "Label", 5);
STRING_LITERAL(TMP2430, "Reference", 9);
STRING_LITERAL(TMP2431, "Other", 5);
NIM_CONST TY353082 tokenclasstostr_353081 = {((NimStringDesc*) &TMP2399),
((NimStringDesc*) &TMP2400),
((NimStringDesc*) &TMP2401),
((NimStringDesc*) &TMP2402),
((NimStringDesc*) &TMP2403),
((NimStringDesc*) &TMP2404),
((NimStringDesc*) &TMP2405),
((NimStringDesc*) &TMP2406),
((NimStringDesc*) &TMP2407),
((NimStringDesc*) &TMP2408),
((NimStringDesc*) &TMP2409),
((NimStringDesc*) &TMP2410),
((NimStringDesc*) &TMP2411),
((NimStringDesc*) &TMP2412),
((NimStringDesc*) &TMP2413),
((NimStringDesc*) &TMP2414),
((NimStringDesc*) &TMP2415),
((NimStringDesc*) &TMP2416),
((NimStringDesc*) &TMP2417),
((NimStringDesc*) &TMP2418),
((NimStringDesc*) &TMP2419),
((NimStringDesc*) &TMP2420),
((NimStringDesc*) &TMP2421),
((NimStringDesc*) &TMP2422),
((NimStringDesc*) &TMP2423),
((NimStringDesc*) &TMP2424),
((NimStringDesc*) &TMP2425),
((NimStringDesc*) &TMP2426),
((NimStringDesc*) &TMP2427),
((NimStringDesc*) &TMP2428),
((NimStringDesc*) &TMP2429),
((NimStringDesc*) &TMP2430),
((NimStringDesc*) &TMP2431)}
;
extern TNimType NTI3211; /* RootObj */
TNimType NTI353023; /* TGeneralTokenizer */
TNimType NTI353021; /* TTokenClass */
extern TNimType NTI108; /* int */
extern TNimType NTI151; /* cstring */

N_NIMCALL(NU8, getsourcelanguage_353093)(NimStringDesc* name) {
	NU8 result;
	result = 0;
	{
		NU8 i_353158;
		NU8 res_353163;
		i_353158 = 0;
		res_353163 = ((NU8) 1);
		{
			while (1) {
				if (!(res_353163 <= ((NU8) 6))) goto LA3;
				i_353158 = res_353163;
				{
					NI LOC6;
					LOC6 = 0;
					LOC6 = nsuCmpIgnoreStyle(name, sourcelanguagetostr_353075[(i_353158)- 0]);
					if (!(LOC6 == 0)) goto LA7;
					result = i_353158;
					goto BeforeRet;
				}
				LA7: ;
				res_353163 += 1;
			} LA3: ;
		}
	}
	result = ((NU8) 0);
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, initgeneraltokenizer_353180)(tgeneraltokenizer353023* g, NCSTRING buf) {
	NI pos;
	(*g).Buf = buf;
	(*g).Kind = ((NU8) 0);
	(*g).Start = 0;
	(*g).Length = 0;
	(*g).State = ((NU8) 0);
	pos = 0;
	{
		while (1) {
			if (!(((NU8)((*g).Buf[pos])) == ((NU8)(32)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(9)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(13)))) goto LA2;
			pos += 1;
		} LA2: ;
	}
	(*g).Pos = pos;
}

N_NIMCALL(void, initgeneraltokenizer_353229)(tgeneraltokenizer353023* g, NimStringDesc* buf) {
	initgeneraltokenizer_353180(g, buf->data);
}

N_NIMCALL(NU8, nimgetkeyword_353250)(NimStringDesc* id) {
	NU8 result;
	result = 0;
	{
		NimStringDesc* k_353300;
		NI i_353404;
		k_353300 = 0;
		i_353404 = 0;
		{
			if (!(((NI) (i_353404)) <= 68)) goto LA4;
			{
				while (1) {
					k_353300 = nimkeywords_353087[(i_353404)- 0];
					{
						NI LOC10;
						LOC10 = 0;
						LOC10 = nsuCmpIgnoreStyle(id, k_353300);
						if (!(LOC10 == 0)) goto LA11;
						result = ((NU8) 9);
						goto BeforeRet;
					}
					LA11: ;
					{
						if (!(68 <= ((NI) (i_353404)))) goto LA15;
						goto LA6;
					}
					LA15: ;
					i_353404 += 1;
				}
			} LA6: ;
		}
		LA4: ;
	}
	result = ((NU8) 8);
	BeforeRet: ;
	return result;
}

N_NIMCALL(NI, nimnumberpostfix_353420)(tgeneraltokenizer353023* g, NI position) {
	NI result;
	NI pos;
	result = 0;
	pos = position;
	{
		if (!((NU8)((*g).Buf[pos]) == (NU8)(39))) goto LA3;
		pos += 1;
		switch (((NU8)((*g).Buf[pos]))) {
		case 102:
		case 70:
		{
			(*g).Kind = ((NU8) 7);
			pos += 1;
			{
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA8;
				pos += 1;
			}
			LA8: ;
			{
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA12;
				pos += 1;
			}
			LA12: ;
		}
		break;
		case 105:
		case 73:
		{
			pos += 1;
			{
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA17;
				pos += 1;
			}
			LA17: ;
			{
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA21;
				pos += 1;
			}
			LA21: ;
		}
		break;
		default:
		{
		}
		break;
		}
	}
	LA3: ;
	result = pos;
	return result;
}

N_NIMCALL(NI, nimnumber_353573)(tgeneraltokenizer353023* g, NI position) {
	NI result;
	NI pos;
	result = 0;
	pos = position;
	(*g).Kind = ((NU8) 3);
	{
		while (1) {
			if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA2;
			pos += 1;
		} LA2: ;
	}
	{
		if (!((NU8)((*g).Buf[pos]) == (NU8)(46))) goto LA5;
		(*g).Kind = ((NU8) 7);
		pos += 1;
		{
			while (1) {
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA8;
				pos += 1;
			} LA8: ;
		}
	}
	LA5: ;
	{
		if (!(((NU8)((*g).Buf[pos])) == ((NU8)(101)) || ((NU8)((*g).Buf[pos])) == ((NU8)(69)))) goto LA11;
		(*g).Kind = ((NU8) 7);
		pos += 1;
		{
			if (!(((NU8)((*g).Buf[pos])) == ((NU8)(43)) || ((NU8)((*g).Buf[pos])) == ((NU8)(45)))) goto LA15;
			pos += 1;
		}
		LA15: ;
		{
			while (1) {
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA18;
				pos += 1;
			} LA18: ;
		}
	}
	LA11: ;
	result = nimnumberpostfix_353420(g, pos);
	return result;
}

N_NIMCALL(void, nimnexttoken_353753)(tgeneraltokenizer353023* g) {
	NI pos;
	pos = (*g).Pos;
	(*g).Start = (*g).Pos;
	{
		if (!((*g).State == ((NU8) 10))) goto LA3;
		(*g).Kind = ((NU8) 10);
		{
			while (1) {
				switch (((NU8)((*g).Buf[pos]))) {
				case 92:
				{
					(*g).Kind = ((NU8) 13);
					pos += 1;
					switch (((NU8)((*g).Buf[pos]))) {
					case 120:
					case 88:
					{
						pos += 1;
						{
							if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA11;
							pos += 1;
						}
						LA11: ;
						{
							if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA15;
							pos += 1;
						}
						LA15: ;
					}
					break;
					case 48 ... 57:
					{
						{
							while (1) {
								if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA19;
								pos += 1;
							} LA19: ;
						}
					}
					break;
					case 0:
					{
						(*g).State = ((NU8) 1);
					}
					break;
					default:
					{
						pos += 1;
					}
					break;
					}
					goto LA5;
				}
				break;
				case 0:
				case 13:
				case 10:
				{
					(*g).State = ((NU8) 1);
					goto LA5;
				}
				break;
				case 34:
				{
					pos += 1;
					(*g).State = ((NU8) 1);
					goto LA5;
				}
				break;
				default:
				{
					pos += 1;
				}
				break;
				}
			}
		} LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		switch (((NU8)((*g).Buf[pos]))) {
		case 32:
		case 9 ... 13:
		{
			(*g).Kind = ((NU8) 2);
			{
				while (1) {
					if (!(((NU8)((*g).Buf[pos])) == ((NU8)(32)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(9)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(13)))) goto LA28;
					pos += 1;
				} LA28: ;
			}
		}
		break;
		case 35:
		{
			(*g).Kind = ((NU8) 16);
			{
				while (1) {
					if (!!((((NU8)((*g).Buf[pos])) == ((NU8)(0)) || ((NU8)((*g).Buf[pos])) == ((NU8)(10)) || ((NU8)((*g).Buf[pos])) == ((NU8)(13))))) goto LA31;
					pos += 1;
				} LA31: ;
			}
		}
		break;
		case 97 ... 122:
		case 65 ... 90:
		case 95:
		case 128 ... 255:
		{
			NimStringDesc* id;
			id = copyString(((NimStringDesc*) &TMP2241));
			{
				while (1) {
					if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(128)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(255)))) goto LA34;
					id = addChar(id, (*g).Buf[pos]);
					pos += 1;
				} LA34: ;
			}
			{
				if (!((NU8)((*g).Buf[pos]) == (NU8)(34))) goto LA37;
				{
					NIM_BOOL LOC41;
					LOC41 = 0;
					LOC41 = ((NU8)((*g).Buf[(NI64)(pos + 1)]) == (NU8)(34));
					if (!(LOC41)) goto LA42;
					LOC41 = ((NU8)((*g).Buf[(NI64)(pos + 2)]) == (NU8)(34));
					LA42: ;
					if (!LOC41) goto LA43;
					pos += 3;
					(*g).Kind = ((NU8) 11);
					{
						while (1) {
							switch (((NU8)((*g).Buf[pos]))) {
							case 0:
							{
								goto LA45;
							}
							break;
							case 34:
							{
								pos += 1;
								{
									NIM_BOOL LOC51;
									NIM_BOOL LOC52;
									LOC51 = 0;
									LOC52 = 0;
									LOC52 = ((NU8)((*g).Buf[pos]) == (NU8)(34));
									if (!(LOC52)) goto LA53;
									LOC52 = ((NU8)((*g).Buf[(NI64)(pos + 1)]) == (NU8)(34));
									LA53: ;
									LOC51 = LOC52;
									if (!(LOC51)) goto LA54;
									LOC51 = !(((NU8)((*g).Buf[(NI64)(pos + 2)]) == (NU8)(34)));
									LA54: ;
									if (!LOC51) goto LA55;
									pos += 2;
									goto LA45;
								}
								LA55: ;
							}
							break;
							default:
							{
								pos += 1;
							}
							break;
							}
						}
					} LA45: ;
				}
				goto LA39;
				LA43: ;
				{
					(*g).Kind = ((NU8) 23);
					pos += 1;
					{
						while (1) {
							if (!!((((NU8)((*g).Buf[pos])) == ((NU8)(0)) || ((NU8)((*g).Buf[pos])) == ((NU8)(10)) || ((NU8)((*g).Buf[pos])) == ((NU8)(13))))) goto LA60;
							{
								NIM_BOOL LOC63;
								LOC63 = 0;
								LOC63 = ((NU8)((*g).Buf[pos]) == (NU8)(34));
								if (!(LOC63)) goto LA64;
								LOC63 = !(((NU8)((*g).Buf[(NI64)(pos + 1)]) == (NU8)(34)));
								LA64: ;
								if (!LOC63) goto LA65;
								goto LA59;
							}
							LA65: ;
							pos += 1;
						} LA60: ;
					} LA59: ;
					{
						if (!((NU8)((*g).Buf[pos]) == (NU8)(34))) goto LA69;
						pos += 1;
					}
					LA69: ;
				}
				LA39: ;
			}
			goto LA35;
			LA37: ;
			{
				(*g).Kind = nimgetkeyword_353250(id);
			}
			LA35: ;
		}
		break;
		case 48:
		{
			pos += 1;
			switch (((NU8)((*g).Buf[pos]))) {
			case 98:
			case 66:
			{
				pos += 1;
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(49)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA75;
						pos += 1;
					} LA75: ;
				}
				pos = nimnumberpostfix_353420(g, pos);
			}
			break;
			case 120:
			case 88:
			{
				pos += 1;
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA78;
						pos += 1;
					} LA78: ;
				}
				pos = nimnumberpostfix_353420(g, pos);
			}
			break;
			case 111:
			case 79:
			{
				pos += 1;
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(55)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)))) goto LA81;
						pos += 1;
					} LA81: ;
				}
				pos = nimnumberpostfix_353420(g, pos);
			}
			break;
			default:
			{
				pos = nimnumber_353573(g, pos);
			}
			break;
			}
		}
		break;
		case 49 ... 57:
		{
			pos = nimnumber_353573(g, pos);
		}
		break;
		case 39:
		{
			pos += 1;
			(*g).Kind = ((NU8) 12);
			{
				while (1) {
					switch (((NU8)((*g).Buf[pos]))) {
					case 0:
					case 13:
					case 10:
					{
						goto LA85;
					}
					break;
					case 39:
					{
						pos += 1;
						goto LA85;
					}
					break;
					case 92:
					{
						pos += 2;
					}
					break;
					default:
					{
						pos += 1;
					}
					break;
					}
				}
			} LA85: ;
		}
		break;
		case 34:
		{
			pos += 1;
			{
				NIM_BOOL LOC94;
				LOC94 = 0;
				LOC94 = ((NU8)((*g).Buf[pos]) == (NU8)(34));
				if (!(LOC94)) goto LA95;
				LOC94 = ((NU8)((*g).Buf[(NI64)(pos + 1)]) == (NU8)(34));
				LA95: ;
				if (!LOC94) goto LA96;
				pos += 2;
				(*g).Kind = ((NU8) 11);
				{
					while (1) {
						switch (((NU8)((*g).Buf[pos]))) {
						case 0:
						{
							goto LA98;
						}
						break;
						case 34:
						{
							pos += 1;
							{
								NIM_BOOL LOC104;
								NIM_BOOL LOC105;
								LOC104 = 0;
								LOC105 = 0;
								LOC105 = ((NU8)((*g).Buf[pos]) == (NU8)(34));
								if (!(LOC105)) goto LA106;
								LOC105 = ((NU8)((*g).Buf[(NI64)(pos + 1)]) == (NU8)(34));
								LA106: ;
								LOC104 = LOC105;
								if (!(LOC104)) goto LA107;
								LOC104 = !(((NU8)((*g).Buf[(NI64)(pos + 2)]) == (NU8)(34)));
								LA107: ;
								if (!LOC104) goto LA108;
								pos += 2;
								goto LA98;
							}
							LA108: ;
						}
						break;
						default:
						{
							pos += 1;
						}
						break;
						}
					}
				} LA98: ;
			}
			goto LA92;
			LA96: ;
			{
				(*g).Kind = ((NU8) 10);
				{
					while (1) {
						switch (((NU8)((*g).Buf[pos]))) {
						case 0:
						case 13:
						case 10:
						{
							goto LA112;
						}
						break;
						case 34:
						{
							pos += 1;
							goto LA112;
						}
						break;
						case 92:
						{
							(*g).State = (*g).Kind;
							goto LA112;
						}
						break;
						default:
						{
							pos += 1;
						}
						break;
						}
					}
				} LA112: ;
			}
			LA92: ;
		}
		break;
		case 40:
		case 41:
		case 91:
		case 93:
		case 123:
		case 125:
		case 96:
		case 58:
		case 44:
		case 59:
		{
			pos += 1;
			(*g).Kind = ((NU8) 15);
		}
		break;
		case 0:
		{
			(*g).Kind = ((NU8) 0);
		}
		break;
		default:
		{
			{
				if (!((TMP2311[((NU8)((*g).Buf[pos]))/8] &(1<<(((NU8)((*g).Buf[pos]))%8)))!=0)) goto LA123;
				(*g).Kind = ((NU8) 14);
				{
					while (1) {
						if (!((TMP2311[((NU8)((*g).Buf[pos]))/8] &(1<<(((NU8)((*g).Buf[pos]))%8)))!=0)) goto LA126;
						pos += 1;
					} LA126: ;
				}
			}
			goto LA121;
			LA123: ;
			{
				pos += 1;
				(*g).Kind = ((NU8) 1);
			}
			LA121: ;
		}
		break;
		}
	}
	LA1: ;
	(*g).Length = (NI64)(pos - (*g).Pos);
	{
		NIM_BOOL LOC130;
		LOC130 = 0;
		LOC130 = !(((*g).Kind == ((NU8) 0)));
		if (!(LOC130)) goto LA131;
		LOC130 = ((*g).Length <= 0);
		LA131: ;
		if (!LOC130) goto LA132;
	}
	LA132: ;
	(*g).Pos = pos;
}

N_NIMCALL(NI, iskeyword_355059)(NimStringDesc** x, NI xLen0, NimStringDesc* y) {
	NI result;
	NI a;
	NI b;
	result = 0;
	a = 0;
	b = (NI64)(xLen0 - 1);
	{
		while (1) {
			NI mid;
			NI c;
			if (!(a <= b)) goto LA2;
			mid = (NI64)((NI64)(a + b) / 2);
			c = cmp_4517(x[mid], y);
			{
				if (!(c < 0)) goto LA5;
				a = (NI64)(mid + 1);
			}
			goto LA3;
			LA5: ;
			{
				if (!(0 < c)) goto LA8;
				b = (NI64)(mid - 1);
			}
			goto LA3;
			LA8: ;
			{
				result = mid;
				goto BeforeRet;
			}
			LA3: ;
		} LA2: ;
	}
	result = -1;
	BeforeRet: ;
	return result;
}

N_NIMCALL(NI, generalnumber_354705)(tgeneraltokenizer353023* g, NI position) {
	NI result;
	NI pos;
	result = 0;
	pos = position;
	(*g).Kind = ((NU8) 3);
	{
		while (1) {
			if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA2;
			pos += 1;
		} LA2: ;
	}
	{
		if (!((NU8)((*g).Buf[pos]) == (NU8)(46))) goto LA5;
		(*g).Kind = ((NU8) 7);
		pos += 1;
		{
			while (1) {
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA8;
				pos += 1;
			} LA8: ;
		}
	}
	LA5: ;
	{
		if (!(((NU8)((*g).Buf[pos])) == ((NU8)(101)) || ((NU8)((*g).Buf[pos])) == ((NU8)(69)))) goto LA11;
		(*g).Kind = ((NU8) 7);
		pos += 1;
		{
			if (!(((NU8)((*g).Buf[pos])) == ((NU8)(43)) || ((NU8)((*g).Buf[pos])) == ((NU8)(45)))) goto LA15;
			pos += 1;
		}
		LA15: ;
		{
			while (1) {
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA18;
				pos += 1;
			} LA18: ;
		}
	}
	LA11: ;
	result = pos;
	return result;
}

N_NIMCALL(NI, generalstrlit_354880)(tgeneraltokenizer353023* g, NI position) {
	NI result;
	NI pos;
	NIM_CHAR c;
	result = 0;
	pos = position;
	(*g).Kind = ((NU8) 10);
	c = (*g).Buf[pos];
	pos += 1;
	{
		while (1) {
			switch (((NU8)((*g).Buf[pos]))) {
			case 0:
			{
				goto LA1;
			}
			break;
			case 92:
			{
				pos += 1;
				switch (((NU8)((*g).Buf[pos]))) {
				case 0:
				{
					goto LA1;
				}
				break;
				case 48 ... 57:
				{
					{
						while (1) {
							if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA8;
							pos += 1;
						} LA8: ;
					}
				}
				break;
				case 120:
				case 88:
				{
					pos += 1;
					{
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)))) goto LA12;
						pos += 1;
					}
					LA12: ;
					{
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)))) goto LA16;
						pos += 1;
					}
					LA16: ;
				}
				break;
				default:
				{
					pos += 2;
				}
				break;
				}
			}
			break;
			default:
			{
				{
					if (!((NU8)((*g).Buf[pos]) == (NU8)(c))) goto LA22;
					pos += 1;
					goto LA1;
				}
				goto LA20;
				LA22: ;
				{
					pos += 1;
				}
				LA20: ;
			}
			break;
			}
		}
	} LA1: ;
	result = pos;
	return result;
}

N_NIMCALL(void, clikenexttoken_355132)(tgeneraltokenizer353023* g, NimStringDesc** keywords, NI keywordsLen0, NU8 flags) {
	NI pos;
	pos = (*g).Pos;
	(*g).Start = (*g).Pos;
	{
		if (!((*g).State == ((NU8) 10))) goto LA3;
		(*g).Kind = ((NU8) 10);
		{
			while (1) {
				switch (((NU8)((*g).Buf[pos]))) {
				case 92:
				{
					(*g).Kind = ((NU8) 13);
					pos += 1;
					switch (((NU8)((*g).Buf[pos]))) {
					case 120:
					case 88:
					{
						pos += 1;
						{
							if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)))) goto LA11;
							pos += 1;
						}
						LA11: ;
						{
							if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)))) goto LA15;
							pos += 1;
						}
						LA15: ;
					}
					break;
					case 48 ... 57:
					{
						{
							while (1) {
								if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)))) goto LA19;
								pos += 1;
							} LA19: ;
						}
					}
					break;
					case 0:
					{
						(*g).State = ((NU8) 1);
					}
					break;
					default:
					{
						pos += 1;
					}
					break;
					}
					goto LA5;
				}
				break;
				case 0:
				case 13:
				case 10:
				{
					(*g).State = ((NU8) 1);
					goto LA5;
				}
				break;
				case 34:
				{
					pos += 1;
					(*g).State = ((NU8) 1);
					goto LA5;
				}
				break;
				default:
				{
					pos += 1;
				}
				break;
				}
			}
		} LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		switch (((NU8)((*g).Buf[pos]))) {
		case 32:
		case 9 ... 13:
		{
			(*g).Kind = ((NU8) 2);
			{
				while (1) {
					if (!(((NU8)((*g).Buf[pos])) == ((NU8)(32)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(9)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(13)))) goto LA28;
					pos += 1;
				} LA28: ;
			}
		}
		break;
		case 47:
		{
			pos += 1;
			{
				if (!((NU8)((*g).Buf[pos]) == (NU8)(47))) goto LA32;
				(*g).Kind = ((NU8) 16);
				{
					while (1) {
						if (!!((((NU8)((*g).Buf[pos])) == ((NU8)(0)) || ((NU8)((*g).Buf[pos])) == ((NU8)(10)) || ((NU8)((*g).Buf[pos])) == ((NU8)(13))))) goto LA35;
						pos += 1;
					} LA35: ;
				}
			}
			goto LA30;
			LA32: ;
			{
				NI nested;
				if (!((NU8)((*g).Buf[pos]) == (NU8)(42))) goto LA37;
				(*g).Kind = ((NU8) 17);
				nested = 0;
				pos += 1;
				{
					while (1) {
						switch (((NU8)((*g).Buf[pos]))) {
						case 42:
						{
							pos += 1;
							{
								if (!((NU8)((*g).Buf[pos]) == (NU8)(47))) goto LA44;
								pos += 1;
								{
									if (!(nested == 0)) goto LA48;
									goto LA39;
								}
								LA48: ;
							}
							LA44: ;
						}
						break;
						case 47:
						{
							pos += 1;
							{
								if (!((NU8)((*g).Buf[pos]) == (NU8)(42))) goto LA53;
								pos += 1;
								{
									if (!((flags &(1<<((((NU8) 1))&7)))!=0)) goto LA57;
									nested += 1;
								}
								LA57: ;
							}
							LA53: ;
						}
						break;
						case 0:
						{
							goto LA39;
						}
						break;
						default:
						{
							pos += 1;
						}
						break;
						}
					}
				} LA39: ;
			}
			goto LA30;
			LA37: ;
			LA30: ;
		}
		break;
		case 35:
		{
			pos += 1;
			{
				if (!((flags &(1<<((((NU8) 0))&7)))!=0)) goto LA64;
				(*g).Kind = ((NU8) 25);
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) == ((NU8)(32)) || ((NU8)((*g).Buf[pos])) == ((NU8)(9)))) goto LA67;
						pos += 1;
					} LA67: ;
				}
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(128)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(255)))) goto LA69;
						pos += 1;
					} LA69: ;
				}
			}
			goto LA62;
			LA64: ;
			{
				(*g).Kind = ((NU8) 14);
			}
			LA62: ;
		}
		break;
		case 97 ... 122:
		case 65 ... 90:
		case 95:
		case 128 ... 255:
		{
			NimStringDesc* id;
			id = copyString(((NimStringDesc*) &TMP2241));
			{
				while (1) {
					if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) == ((NU8)(95)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(128)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(255)))) goto LA73;
					id = addChar(id, (*g).Buf[pos]);
					pos += 1;
				} LA73: ;
			}
			{
				NI LOC76;
				LOC76 = 0;
				LOC76 = iskeyword_355059(keywords, keywordsLen0, id);
				if (!(0 <= LOC76)) goto LA77;
				(*g).Kind = ((NU8) 9);
			}
			goto LA74;
			LA77: ;
			{
				(*g).Kind = ((NU8) 8);
			}
			LA74: ;
		}
		break;
		case 48:
		{
			pos += 1;
			switch (((NU8)((*g).Buf[pos]))) {
			case 98:
			case 66:
			{
				pos += 1;
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(49)))) goto LA83;
						pos += 1;
					} LA83: ;
				}
				{
					if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)))) goto LA86;
					pos += 1;
				}
				LA86: ;
			}
			break;
			case 120:
			case 88:
			{
				pos += 1;
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(57)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(70)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(102)))) goto LA90;
						pos += 1;
					} LA90: ;
				}
				{
					if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)))) goto LA93;
					pos += 1;
				}
				LA93: ;
			}
			break;
			case 48 ... 55:
			{
				pos += 1;
				{
					while (1) {
						if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(55)))) goto LA97;
						pos += 1;
					} LA97: ;
				}
				{
					if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)))) goto LA100;
					pos += 1;
				}
				LA100: ;
			}
			break;
			default:
			{
				pos = generalnumber_354705(g, pos);
				{
					if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)))) goto LA105;
					pos += 1;
				}
				LA105: ;
			}
			break;
			}
		}
		break;
		case 49 ... 57:
		{
			pos = generalnumber_354705(g, pos);
			{
				if (!(((NU8)((*g).Buf[pos])) >= ((NU8)(65)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(90)) || ((NU8)((*g).Buf[pos])) >= ((NU8)(97)) && ((NU8)((*g).Buf[pos])) <= ((NU8)(122)))) goto LA110;
				pos += 1;
			}
			LA110: ;
		}
		break;
		case 39:
		{
			pos = generalstrlit_354880(g, pos);
			(*g).Kind = ((NU8) 12);
		}
		break;
		case 34:
		{
			pos += 1;
			(*g).Kind = ((NU8) 10);
			{
				while (1) {
					switch (((NU8)((*g).Buf[pos]))) {
					case 0:
					{
						goto LA114;
					}
					break;
					case 34:
					{
						pos += 1;
						goto LA114;
					}
					break;
					case 92:
					{
						(*g).State = (*g).Kind;
						goto LA114;
					}
					break;
					default:
					{
						pos += 1;
					}
					break;
					}
				}
			} LA114: ;
		}
		break;
		case 40:
		case 41:
		case 91:
		case 93:
		case 123:
		case 125:
		case 58:
		case 44:
		case 59:
		case 46:
		{
			pos += 1;
			(*g).Kind = ((NU8) 15);
		}
		break;
		case 0:
		{
			(*g).Kind = ((NU8) 0);
		}
		break;
		default:
		{
			{
				if (!((TMP2311[((NU8)((*g).Buf[pos]))/8] &(1<<(((NU8)((*g).Buf[pos]))%8)))!=0)) goto LA125;
				(*g).Kind = ((NU8) 14);
				{
					while (1) {
						if (!((TMP2311[((NU8)((*g).Buf[pos]))/8] &(1<<(((NU8)((*g).Buf[pos]))%8)))!=0)) goto LA128;
						pos += 1;
					} LA128: ;
				}
			}
			goto LA123;
			LA125: ;
			{
				pos += 1;
				(*g).Kind = ((NU8) 1);
			}
			LA123: ;
		}
		break;
		}
	}
	LA1: ;
	(*g).Length = (NI64)(pos - (*g).Pos);
	{
		NIM_BOOL LOC132;
		LOC132 = 0;
		LOC132 = !(((*g).Kind == ((NU8) 0)));
		if (!(LOC132)) goto LA133;
		LOC132 = ((*g).Length <= 0);
		LA133: ;
		if (!LOC132) goto LA134;
	}
	LA134: ;
	(*g).Pos = pos;
}

N_NIMCALL(void, cppnexttoken_356114)(tgeneraltokenizer353023* g) {
	clikenexttoken_355132(g, TMP2312, 48, 1);
}

N_NIMCALL(void, csharpnexttoken_356131)(tgeneraltokenizer353023* g) {
	clikenexttoken_355132(g, TMP2346, 77, 1);
}

N_NIMCALL(void, cnexttoken_356098)(tgeneraltokenizer353023* g) {
	clikenexttoken_355132(g, TMP2378, 37, 1);
}

N_NIMCALL(void, javanexttoken_356148)(tgeneraltokenizer353023* g) {
	clikenexttoken_355132(g, TMP2383, 53, 0);
}

N_NIMCALL(void, getnexttoken_356166)(tgeneraltokenizer353023* g, NU8 lang) {
	switch (lang) {
	case ((NU8) 0):
	{
	}
	break;
	case ((NU8) 1):
	case ((NU8) 2):
	{
		nimnexttoken_353753(g);
	}
	break;
	case ((NU8) 3):
	{
		cppnexttoken_356114(g);
	}
	break;
	case ((NU8) 4):
	{
		csharpnexttoken_356131(g);
	}
	break;
	case ((NU8) 5):
	{
		cnexttoken_356098(g);
	}
	break;
	case ((NU8) 6):
	{
		javanexttoken_356148(g);
	}
	break;
	}
}

N_NIMCALL(void, deinitgeneraltokenizer_353240)(tgeneraltokenizer353023* g) {
}
NIM_EXTERNC N_NOINLINE(void, docutils_highliteInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, docutils_highliteDatInit)(void) {
static TNimNode* TMP2237[6];
static TNimNode* TMP2238[33];
NI TMP2240;
static char* NIM_CONST TMP2239[33] = {
"gtEof", 
"gtNone", 
"gtWhitespace", 
"gtDecNumber", 
"gtBinNumber", 
"gtHexNumber", 
"gtOctNumber", 
"gtFloatNumber", 
"gtIdentifier", 
"gtKeyword", 
"gtStringLit", 
"gtLongStringLit", 
"gtCharLit", 
"gtEscapeSequence", 
"gtOperator", 
"gtPunctuation", 
"gtComment", 
"gtLongComment", 
"gtRegularExpression", 
"gtTagStart", 
"gtTagEnd", 
"gtKey", 
"gtValue", 
"gtRawData", 
"gtAssembler", 
"gtPreprocessor", 
"gtDirective", 
"gtCommand", 
"gtRule", 
"gtHyperlink", 
"gtLabel", 
"gtReference", 
"gtOther"};
static TNimNode TMP890[41];
NTI353023.size = sizeof(tgeneraltokenizer353023);
NTI353023.kind = 17;
NTI353023.base = (&NTI3211);
NTI353023.flags = 1;
TMP2237[0] = &TMP890[1];
NTI353021.size = sizeof(NU8);
NTI353021.kind = 14;
NTI353021.base = 0;
NTI353021.flags = 3;
for (TMP2240 = 0; TMP2240 < 33; TMP2240++) {
TMP890[TMP2240+2].kind = 1;
TMP890[TMP2240+2].offset = TMP2240;
TMP890[TMP2240+2].name = TMP2239[TMP2240];
TMP2238[TMP2240] = &TMP890[TMP2240+2];
}
TMP890[35].len = 33; TMP890[35].kind = 2; TMP890[35].sons = &TMP2238[0];
NTI353021.node = &TMP890[35];
TMP890[1].kind = 1;
TMP890[1].offset = offsetof(tgeneraltokenizer353023, Kind);
TMP890[1].typ = (&NTI353021);
TMP890[1].name = "kind";
TMP2237[1] = &TMP890[36];
TMP890[36].kind = 1;
TMP890[36].offset = offsetof(tgeneraltokenizer353023, Start);
TMP890[36].typ = (&NTI108);
TMP890[36].name = "start";
TMP2237[2] = &TMP890[37];
TMP890[37].kind = 1;
TMP890[37].offset = offsetof(tgeneraltokenizer353023, Length);
TMP890[37].typ = (&NTI108);
TMP890[37].name = "length";
TMP2237[3] = &TMP890[38];
TMP890[38].kind = 1;
TMP890[38].offset = offsetof(tgeneraltokenizer353023, Buf);
TMP890[38].typ = (&NTI151);
TMP890[38].name = "buf";
TMP2237[4] = &TMP890[39];
TMP890[39].kind = 1;
TMP890[39].offset = offsetof(tgeneraltokenizer353023, Pos);
TMP890[39].typ = (&NTI108);
TMP890[39].name = "pos";
TMP2237[5] = &TMP890[40];
TMP890[40].kind = 1;
TMP890[40].offset = offsetof(tgeneraltokenizer353023, State);
TMP890[40].typ = (&NTI353021);
TMP890[40].name = "state";
TMP890[0].len = 6; TMP890[0].kind = 2; TMP890[0].sons = &TMP2237[0];
NTI353023.node = &TMP890[0];
}

