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

#include "nimbase.h"
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Generaltokenizer341023 Generaltokenizer341023;
typedef struct TNimObject TNimObject;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NimStringDesc* TY341084[7];
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Generaltokenizer341023  {
  TNimObject Sup;
NU8 kind;
NI start;
NI length;
NCSTRING buf;
NI pos;
NU8 state;
};
typedef NimStringDesc* TY341094[70];
typedef NU8 TY213407[32];
typedef NimStringDesc* TY343721[48];
typedef NimStringDesc* TY343738[77];
typedef NimStringDesc* TY343704[37];
typedef NimStringDesc* TY343755[53];
typedef NimStringDesc* TY341090[33];
N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, initgeneraltokenizer_341246)(Generaltokenizer341023* g, NCSTRING buf);
N_NIMCALL(void, nimnexttoken_341687)(Generaltokenizer341023* g);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NU8, nimgetkeyword_341310)(NimStringDesc* id);
N_NIMCALL(NI, nimnumberpostfix_341420)(Generaltokenizer341023* g, NI position);
N_NIMCALL(NI, nimnumber_341540)(Generaltokenizer341023* g, NI position);
N_NIMCALL(void, cppnexttoken_343714)(Generaltokenizer341023* g);
N_NIMCALL(void, clikenexttoken_342864)(Generaltokenizer341023* g, NimStringDesc** keywords, NI keywordsLen0, NU8 flags);
N_NIMCALL(NI, iskeyword_342790)(NimStringDesc** x, NI xLen0, NimStringDesc* y);
N_NIMCALL(NI, cmp_6577)(NimStringDesc* x, NimStringDesc* y);
N_NIMCALL(NI, generalnumber_342505)(Generaltokenizer341023* g, NI position);
N_NIMCALL(NI, generalstrlit_342647)(Generaltokenizer341023* g, NI position);
N_NIMCALL(void, csharpnexttoken_343731)(Generaltokenizer341023* g);
N_NIMCALL(void, cnexttoken_343698)(Generaltokenizer341023* g);
N_NIMCALL(void, javanexttoken_343748)(Generaltokenizer341023* g);
STRING_LITERAL(TMP2313, "none", 4);
STRING_LITERAL(TMP2314, "Nim", 3);
STRING_LITERAL(TMP2315, "Nimrod", 6);
STRING_LITERAL(TMP2316, "C++", 3);
STRING_LITERAL(TMP2317, "C#", 2);
STRING_LITERAL(TMP2318, "C", 1);
STRING_LITERAL(TMP2319, "Java", 4);
NIM_CONST TY341084 sourcelanguagetostr_341081 = {((NimStringDesc*) &TMP2313),
((NimStringDesc*) &TMP2314),
((NimStringDesc*) &TMP2315),
((NimStringDesc*) &TMP2316),
((NimStringDesc*) &TMP2317),
((NimStringDesc*) &TMP2318),
((NimStringDesc*) &TMP2319)}
;
STRING_LITERAL(TMP2331, "", 0);
STRING_LITERAL(TMP2332, "addr", 4);
STRING_LITERAL(TMP2333, "and", 3);
STRING_LITERAL(TMP2334, "as", 2);
STRING_LITERAL(TMP2335, "asm", 3);
STRING_LITERAL(TMP2336, "atomic", 6);
STRING_LITERAL(TMP2337, "bind", 4);
STRING_LITERAL(TMP2338, "block", 5);
STRING_LITERAL(TMP2339, "break", 5);
STRING_LITERAL(TMP2340, "case", 4);
STRING_LITERAL(TMP2341, "cast", 4);
STRING_LITERAL(TMP2342, "concept", 7);
STRING_LITERAL(TMP2343, "const", 5);
STRING_LITERAL(TMP2344, "continue", 8);
STRING_LITERAL(TMP2345, "converter", 9);
STRING_LITERAL(TMP2346, "defer", 5);
STRING_LITERAL(TMP2347, "discard", 7);
STRING_LITERAL(TMP2348, "distinct", 8);
STRING_LITERAL(TMP2349, "div", 3);
STRING_LITERAL(TMP2350, "do", 2);
STRING_LITERAL(TMP2351, "elif", 4);
STRING_LITERAL(TMP2352, "else", 4);
STRING_LITERAL(TMP2353, "end", 3);
STRING_LITERAL(TMP2354, "enum", 4);
STRING_LITERAL(TMP2355, "except", 6);
STRING_LITERAL(TMP2356, "export", 6);
STRING_LITERAL(TMP2357, "finally", 7);
STRING_LITERAL(TMP2358, "for", 3);
STRING_LITERAL(TMP2359, "from", 4);
STRING_LITERAL(TMP2360, "func", 4);
STRING_LITERAL(TMP2361, "generic", 7);
STRING_LITERAL(TMP2362, "if", 2);
STRING_LITERAL(TMP2363, "import", 6);
STRING_LITERAL(TMP2364, "in", 2);
STRING_LITERAL(TMP2365, "include", 7);
STRING_LITERAL(TMP2366, "interface", 9);
STRING_LITERAL(TMP2367, "is", 2);
STRING_LITERAL(TMP2368, "isnot", 5);
STRING_LITERAL(TMP2369, "iterator", 8);
STRING_LITERAL(TMP2370, "let", 3);
STRING_LITERAL(TMP2371, "macro", 5);
STRING_LITERAL(TMP2372, "method", 6);
STRING_LITERAL(TMP2373, "mixin", 5);
STRING_LITERAL(TMP2374, "mod", 3);
STRING_LITERAL(TMP2375, "nil", 3);
STRING_LITERAL(TMP2376, "not", 3);
STRING_LITERAL(TMP2377, "notin", 5);
STRING_LITERAL(TMP2378, "object", 6);
STRING_LITERAL(TMP2379, "of", 2);
STRING_LITERAL(TMP2380, "or", 2);
STRING_LITERAL(TMP2381, "out", 3);
STRING_LITERAL(TMP2382, "proc", 4);
STRING_LITERAL(TMP2383, "ptr", 3);
STRING_LITERAL(TMP2384, "raise", 5);
STRING_LITERAL(TMP2385, "ref", 3);
STRING_LITERAL(TMP2386, "return", 6);
STRING_LITERAL(TMP2387, "shl", 3);
STRING_LITERAL(TMP2388, "shr", 3);
STRING_LITERAL(TMP2389, "static", 6);
STRING_LITERAL(TMP2390, "template", 8);
STRING_LITERAL(TMP2391, "try", 3);
STRING_LITERAL(TMP2392, "tuple", 5);
STRING_LITERAL(TMP2393, "type", 4);
STRING_LITERAL(TMP2394, "using", 5);
STRING_LITERAL(TMP2395, "var", 3);
STRING_LITERAL(TMP2396, "when", 4);
STRING_LITERAL(TMP2397, "while", 5);
STRING_LITERAL(TMP2398, "with", 4);
STRING_LITERAL(TMP2399, "without", 7);
STRING_LITERAL(TMP2400, "xor", 3);
STRING_LITERAL(TMP2401, "yield", 5);
NIM_CONST TY341094 nimkeywords_341093 = {((NimStringDesc*) &TMP2332),
((NimStringDesc*) &TMP2333),
((NimStringDesc*) &TMP2334),
((NimStringDesc*) &TMP2335),
((NimStringDesc*) &TMP2336),
((NimStringDesc*) &TMP2337),
((NimStringDesc*) &TMP2338),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2341),
((NimStringDesc*) &TMP2342),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2345),
((NimStringDesc*) &TMP2346),
((NimStringDesc*) &TMP2347),
((NimStringDesc*) &TMP2348),
((NimStringDesc*) &TMP2349),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2351),
((NimStringDesc*) &TMP2352),
((NimStringDesc*) &TMP2353),
((NimStringDesc*) &TMP2354),
((NimStringDesc*) &TMP2355),
((NimStringDesc*) &TMP2356),
((NimStringDesc*) &TMP2357),
((NimStringDesc*) &TMP2358),
((NimStringDesc*) &TMP2359),
((NimStringDesc*) &TMP2360),
((NimStringDesc*) &TMP2361),
((NimStringDesc*) &TMP2362),
((NimStringDesc*) &TMP2363),
((NimStringDesc*) &TMP2364),
((NimStringDesc*) &TMP2365),
((NimStringDesc*) &TMP2366),
((NimStringDesc*) &TMP2367),
((NimStringDesc*) &TMP2368),
((NimStringDesc*) &TMP2369),
((NimStringDesc*) &TMP2370),
((NimStringDesc*) &TMP2371),
((NimStringDesc*) &TMP2372),
((NimStringDesc*) &TMP2373),
((NimStringDesc*) &TMP2374),
((NimStringDesc*) &TMP2375),
((NimStringDesc*) &TMP2376),
((NimStringDesc*) &TMP2377),
((NimStringDesc*) &TMP2378),
((NimStringDesc*) &TMP2379),
((NimStringDesc*) &TMP2380),
((NimStringDesc*) &TMP2381),
((NimStringDesc*) &TMP2382),
((NimStringDesc*) &TMP2383),
((NimStringDesc*) &TMP2384),
((NimStringDesc*) &TMP2385),
((NimStringDesc*) &TMP2386),
((NimStringDesc*) &TMP2387),
((NimStringDesc*) &TMP2388),
((NimStringDesc*) &TMP2389),
((NimStringDesc*) &TMP2390),
((NimStringDesc*) &TMP2391),
((NimStringDesc*) &TMP2392),
((NimStringDesc*) &TMP2393),
((NimStringDesc*) &TMP2394),
((NimStringDesc*) &TMP2395),
((NimStringDesc*) &TMP2396),
((NimStringDesc*) &TMP2397),
((NimStringDesc*) &TMP2398),
((NimStringDesc*) &TMP2399),
((NimStringDesc*) &TMP2400),
((NimStringDesc*) &TMP2401)}
;
static NIM_CONST TY213407 TMP2402 = {
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(TMP2404, "auto", 4);
STRING_LITERAL(TMP2405, "catch", 5);
STRING_LITERAL(TMP2406, "char", 4);
STRING_LITERAL(TMP2407, "class", 5);
STRING_LITERAL(TMP2408, "default", 7);
STRING_LITERAL(TMP2409, "delete", 6);
STRING_LITERAL(TMP2410, "double", 6);
STRING_LITERAL(TMP2411, "extern", 6);
STRING_LITERAL(TMP2412, "float", 5);
STRING_LITERAL(TMP2413, "friend", 6);
STRING_LITERAL(TMP2414, "goto", 4);
STRING_LITERAL(TMP2415, "inline", 6);
STRING_LITERAL(TMP2416, "int", 3);
STRING_LITERAL(TMP2417, "long", 4);
STRING_LITERAL(TMP2418, "new", 3);
STRING_LITERAL(TMP2419, "operator", 8);
STRING_LITERAL(TMP2420, "private", 7);
STRING_LITERAL(TMP2421, "protected", 9);
STRING_LITERAL(TMP2422, "public", 6);
STRING_LITERAL(TMP2423, "register", 8);
STRING_LITERAL(TMP2424, "short", 5);
STRING_LITERAL(TMP2425, "signed", 6);
STRING_LITERAL(TMP2426, "sizeof", 6);
STRING_LITERAL(TMP2427, "struct", 6);
STRING_LITERAL(TMP2428, "switch", 6);
STRING_LITERAL(TMP2429, "this", 4);
STRING_LITERAL(TMP2430, "throw", 5);
STRING_LITERAL(TMP2431, "typedef", 7);
STRING_LITERAL(TMP2432, "union", 5);
STRING_LITERAL(TMP2433, "unsigned", 8);
STRING_LITERAL(TMP2434, "virtual", 7);
STRING_LITERAL(TMP2435, "void", 4);
STRING_LITERAL(TMP2436, "volatile", 8);
NIM_CONST TY343721 TMP2403 = {((NimStringDesc*) &TMP2335),
((NimStringDesc*) &TMP2404),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2405),
((NimStringDesc*) &TMP2406),
((NimStringDesc*) &TMP2407),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2408),
((NimStringDesc*) &TMP2409),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2410),
((NimStringDesc*) &TMP2352),
((NimStringDesc*) &TMP2354),
((NimStringDesc*) &TMP2411),
((NimStringDesc*) &TMP2412),
((NimStringDesc*) &TMP2358),
((NimStringDesc*) &TMP2413),
((NimStringDesc*) &TMP2414),
((NimStringDesc*) &TMP2362),
((NimStringDesc*) &TMP2415),
((NimStringDesc*) &TMP2416),
((NimStringDesc*) &TMP2417),
((NimStringDesc*) &TMP2418),
((NimStringDesc*) &TMP2419),
((NimStringDesc*) &TMP2420),
((NimStringDesc*) &TMP2421),
((NimStringDesc*) &TMP2422),
((NimStringDesc*) &TMP2423),
((NimStringDesc*) &TMP2386),
((NimStringDesc*) &TMP2424),
((NimStringDesc*) &TMP2425),
((NimStringDesc*) &TMP2426),
((NimStringDesc*) &TMP2389),
((NimStringDesc*) &TMP2427),
((NimStringDesc*) &TMP2428),
((NimStringDesc*) &TMP2390),
((NimStringDesc*) &TMP2429),
((NimStringDesc*) &TMP2430),
((NimStringDesc*) &TMP2391),
((NimStringDesc*) &TMP2431),
((NimStringDesc*) &TMP2432),
((NimStringDesc*) &TMP2433),
((NimStringDesc*) &TMP2434),
((NimStringDesc*) &TMP2435),
((NimStringDesc*) &TMP2436),
((NimStringDesc*) &TMP2397)}
;
STRING_LITERAL(TMP2438, "abstract", 8);
STRING_LITERAL(TMP2439, "base", 4);
STRING_LITERAL(TMP2440, "bool", 4);
STRING_LITERAL(TMP2441, "byte", 4);
STRING_LITERAL(TMP2442, "checked", 7);
STRING_LITERAL(TMP2443, "decimal", 7);
STRING_LITERAL(TMP2444, "delegate", 8);
STRING_LITERAL(TMP2445, "event", 5);
STRING_LITERAL(TMP2446, "explicit", 8);
STRING_LITERAL(TMP2447, "false", 5);
STRING_LITERAL(TMP2448, "fixed", 5);
STRING_LITERAL(TMP2449, "foreach", 7);
STRING_LITERAL(TMP2450, "implicit", 8);
STRING_LITERAL(TMP2451, "internal", 8);
STRING_LITERAL(TMP2452, "lock", 4);
STRING_LITERAL(TMP2453, "namespace", 9);
STRING_LITERAL(TMP2454, "null", 4);
STRING_LITERAL(TMP2455, "override", 8);
STRING_LITERAL(TMP2456, "params", 6);
STRING_LITERAL(TMP2457, "readonly", 8);
STRING_LITERAL(TMP2458, "sbyte", 5);
STRING_LITERAL(TMP2459, "sealed", 6);
STRING_LITERAL(TMP2460, "stackalloc", 10);
STRING_LITERAL(TMP2461, "string", 6);
STRING_LITERAL(TMP2462, "true", 4);
STRING_LITERAL(TMP2463, "typeof", 6);
STRING_LITERAL(TMP2464, "uint", 4);
STRING_LITERAL(TMP2465, "ulong", 5);
STRING_LITERAL(TMP2466, "unchecked", 9);
STRING_LITERAL(TMP2467, "unsafe", 6);
STRING_LITERAL(TMP2468, "ushort", 6);
NIM_CONST TY343738 TMP2437 = {((NimStringDesc*) &TMP2438),
((NimStringDesc*) &TMP2334),
((NimStringDesc*) &TMP2439),
((NimStringDesc*) &TMP2440),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2441),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2405),
((NimStringDesc*) &TMP2406),
((NimStringDesc*) &TMP2442),
((NimStringDesc*) &TMP2407),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2443),
((NimStringDesc*) &TMP2408),
((NimStringDesc*) &TMP2444),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2410),
((NimStringDesc*) &TMP2352),
((NimStringDesc*) &TMP2354),
((NimStringDesc*) &TMP2445),
((NimStringDesc*) &TMP2446),
((NimStringDesc*) &TMP2411),
((NimStringDesc*) &TMP2447),
((NimStringDesc*) &TMP2357),
((NimStringDesc*) &TMP2448),
((NimStringDesc*) &TMP2412),
((NimStringDesc*) &TMP2358),
((NimStringDesc*) &TMP2449),
((NimStringDesc*) &TMP2414),
((NimStringDesc*) &TMP2362),
((NimStringDesc*) &TMP2450),
((NimStringDesc*) &TMP2364),
((NimStringDesc*) &TMP2416),
((NimStringDesc*) &TMP2366),
((NimStringDesc*) &TMP2451),
((NimStringDesc*) &TMP2367),
((NimStringDesc*) &TMP2452),
((NimStringDesc*) &TMP2417),
((NimStringDesc*) &TMP2453),
((NimStringDesc*) &TMP2418),
((NimStringDesc*) &TMP2454),
((NimStringDesc*) &TMP2378),
((NimStringDesc*) &TMP2419),
((NimStringDesc*) &TMP2381),
((NimStringDesc*) &TMP2455),
((NimStringDesc*) &TMP2456),
((NimStringDesc*) &TMP2420),
((NimStringDesc*) &TMP2421),
((NimStringDesc*) &TMP2422),
((NimStringDesc*) &TMP2457),
((NimStringDesc*) &TMP2385),
((NimStringDesc*) &TMP2386),
((NimStringDesc*) &TMP2458),
((NimStringDesc*) &TMP2459),
((NimStringDesc*) &TMP2424),
((NimStringDesc*) &TMP2426),
((NimStringDesc*) &TMP2460),
((NimStringDesc*) &TMP2389),
((NimStringDesc*) &TMP2461),
((NimStringDesc*) &TMP2427),
((NimStringDesc*) &TMP2428),
((NimStringDesc*) &TMP2429),
((NimStringDesc*) &TMP2430),
((NimStringDesc*) &TMP2462),
((NimStringDesc*) &TMP2391),
((NimStringDesc*) &TMP2463),
((NimStringDesc*) &TMP2464),
((NimStringDesc*) &TMP2465),
((NimStringDesc*) &TMP2466),
((NimStringDesc*) &TMP2467),
((NimStringDesc*) &TMP2468),
((NimStringDesc*) &TMP2394),
((NimStringDesc*) &TMP2434),
((NimStringDesc*) &TMP2435),
((NimStringDesc*) &TMP2436),
((NimStringDesc*) &TMP2397)}
;
STRING_LITERAL(TMP2470, "_Bool", 5);
STRING_LITERAL(TMP2471, "_Complex", 8);
STRING_LITERAL(TMP2472, "_Imaginary", 10);
STRING_LITERAL(TMP2473, "restrict", 8);
NIM_CONST TY343704 TMP2469 = {((NimStringDesc*) &TMP2470),
((NimStringDesc*) &TMP2471),
((NimStringDesc*) &TMP2472),
((NimStringDesc*) &TMP2404),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2406),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2408),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2410),
((NimStringDesc*) &TMP2352),
((NimStringDesc*) &TMP2354),
((NimStringDesc*) &TMP2411),
((NimStringDesc*) &TMP2412),
((NimStringDesc*) &TMP2358),
((NimStringDesc*) &TMP2414),
((NimStringDesc*) &TMP2362),
((NimStringDesc*) &TMP2415),
((NimStringDesc*) &TMP2416),
((NimStringDesc*) &TMP2417),
((NimStringDesc*) &TMP2423),
((NimStringDesc*) &TMP2473),
((NimStringDesc*) &TMP2386),
((NimStringDesc*) &TMP2424),
((NimStringDesc*) &TMP2425),
((NimStringDesc*) &TMP2426),
((NimStringDesc*) &TMP2389),
((NimStringDesc*) &TMP2427),
((NimStringDesc*) &TMP2428),
((NimStringDesc*) &TMP2431),
((NimStringDesc*) &TMP2432),
((NimStringDesc*) &TMP2433),
((NimStringDesc*) &TMP2435),
((NimStringDesc*) &TMP2436),
((NimStringDesc*) &TMP2397)}
;
STRING_LITERAL(TMP2475, "assert", 6);
STRING_LITERAL(TMP2476, "boolean", 7);
STRING_LITERAL(TMP2477, "extends", 7);
STRING_LITERAL(TMP2478, "final", 5);
STRING_LITERAL(TMP2479, "implements", 10);
STRING_LITERAL(TMP2480, "instanceof", 10);
STRING_LITERAL(TMP2481, "native", 6);
STRING_LITERAL(TMP2482, "package", 7);
STRING_LITERAL(TMP2483, "strictfp", 8);
STRING_LITERAL(TMP2484, "super", 5);
STRING_LITERAL(TMP2485, "synchronized", 12);
STRING_LITERAL(TMP2486, "throws", 6);
STRING_LITERAL(TMP2487, "transient", 9);
NIM_CONST TY343755 TMP2474 = {((NimStringDesc*) &TMP2438),
((NimStringDesc*) &TMP2475),
((NimStringDesc*) &TMP2476),
((NimStringDesc*) &TMP2339),
((NimStringDesc*) &TMP2441),
((NimStringDesc*) &TMP2340),
((NimStringDesc*) &TMP2405),
((NimStringDesc*) &TMP2406),
((NimStringDesc*) &TMP2407),
((NimStringDesc*) &TMP2343),
((NimStringDesc*) &TMP2344),
((NimStringDesc*) &TMP2408),
((NimStringDesc*) &TMP2350),
((NimStringDesc*) &TMP2410),
((NimStringDesc*) &TMP2352),
((NimStringDesc*) &TMP2354),
((NimStringDesc*) &TMP2477),
((NimStringDesc*) &TMP2447),
((NimStringDesc*) &TMP2478),
((NimStringDesc*) &TMP2357),
((NimStringDesc*) &TMP2412),
((NimStringDesc*) &TMP2358),
((NimStringDesc*) &TMP2414),
((NimStringDesc*) &TMP2362),
((NimStringDesc*) &TMP2479),
((NimStringDesc*) &TMP2363),
((NimStringDesc*) &TMP2480),
((NimStringDesc*) &TMP2416),
((NimStringDesc*) &TMP2366),
((NimStringDesc*) &TMP2417),
((NimStringDesc*) &TMP2481),
((NimStringDesc*) &TMP2418),
((NimStringDesc*) &TMP2454),
((NimStringDesc*) &TMP2482),
((NimStringDesc*) &TMP2420),
((NimStringDesc*) &TMP2421),
((NimStringDesc*) &TMP2422),
((NimStringDesc*) &TMP2386),
((NimStringDesc*) &TMP2424),
((NimStringDesc*) &TMP2389),
((NimStringDesc*) &TMP2483),
((NimStringDesc*) &TMP2484),
((NimStringDesc*) &TMP2428),
((NimStringDesc*) &TMP2485),
((NimStringDesc*) &TMP2429),
((NimStringDesc*) &TMP2430),
((NimStringDesc*) &TMP2486),
((NimStringDesc*) &TMP2487),
((NimStringDesc*) &TMP2462),
((NimStringDesc*) &TMP2391),
((NimStringDesc*) &TMP2435),
((NimStringDesc*) &TMP2436),
((NimStringDesc*) &TMP2397)}
;
STRING_LITERAL(TMP2490, "Eof", 3);
STRING_LITERAL(TMP2491, "None", 4);
STRING_LITERAL(TMP2492, "Whitespace", 10);
STRING_LITERAL(TMP2493, "DecNumber", 9);
STRING_LITERAL(TMP2494, "BinNumber", 9);
STRING_LITERAL(TMP2495, "HexNumber", 9);
STRING_LITERAL(TMP2496, "OctNumber", 9);
STRING_LITERAL(TMP2497, "FloatNumber", 11);
STRING_LITERAL(TMP2498, "Identifier", 10);
STRING_LITERAL(TMP2499, "Keyword", 7);
STRING_LITERAL(TMP2500, "StringLit", 9);
STRING_LITERAL(TMP2501, "LongStringLit", 13);
STRING_LITERAL(TMP2502, "CharLit", 7);
STRING_LITERAL(TMP2503, "EscapeSequence", 14);
STRING_LITERAL(TMP2504, "Operator", 8);
STRING_LITERAL(TMP2505, "Punctuation", 11);
STRING_LITERAL(TMP2506, "Comment", 7);
STRING_LITERAL(TMP2507, "LongComment", 11);
STRING_LITERAL(TMP2508, "RegularExpression", 17);
STRING_LITERAL(TMP2509, "TagStart", 8);
STRING_LITERAL(TMP2510, "TagEnd", 6);
STRING_LITERAL(TMP2511, "Key", 3);
STRING_LITERAL(TMP2512, "Value", 5);
STRING_LITERAL(TMP2513, "RawData", 7);
STRING_LITERAL(TMP2514, "Assembler", 9);
STRING_LITERAL(TMP2515, "Preprocessor", 12);
STRING_LITERAL(TMP2516, "Directive", 9);
STRING_LITERAL(TMP2517, "Command", 7);
STRING_LITERAL(TMP2518, "Rule", 4);
STRING_LITERAL(TMP2519, "Hyperlink", 9);
STRING_LITERAL(TMP2520, "Label", 5);
STRING_LITERAL(TMP2521, "Reference", 9);
STRING_LITERAL(TMP2522, "Other", 5);
NIM_CONST TY341090 tokenclasstostr_341087 = {((NimStringDesc*) &TMP2490),
((NimStringDesc*) &TMP2491),
((NimStringDesc*) &TMP2492),
((NimStringDesc*) &TMP2493),
((NimStringDesc*) &TMP2494),
((NimStringDesc*) &TMP2495),
((NimStringDesc*) &TMP2496),
((NimStringDesc*) &TMP2497),
((NimStringDesc*) &TMP2498),
((NimStringDesc*) &TMP2499),
((NimStringDesc*) &TMP2500),
((NimStringDesc*) &TMP2501),
((NimStringDesc*) &TMP2502),
((NimStringDesc*) &TMP2503),
((NimStringDesc*) &TMP2504),
((NimStringDesc*) &TMP2505),
((NimStringDesc*) &TMP2506),
((NimStringDesc*) &TMP2507),
((NimStringDesc*) &TMP2508),
((NimStringDesc*) &TMP2509),
((NimStringDesc*) &TMP2510),
((NimStringDesc*) &TMP2511),
((NimStringDesc*) &TMP2512),
((NimStringDesc*) &TMP2513),
((NimStringDesc*) &TMP2514),
((NimStringDesc*) &TMP2515),
((NimStringDesc*) &TMP2516),
((NimStringDesc*) &TMP2517),
((NimStringDesc*) &TMP2518),
((NimStringDesc*) &TMP2519),
((NimStringDesc*) &TMP2520),
((NimStringDesc*) &TMP2521),
((NimStringDesc*) &TMP2522)}
;
extern TNimType NTI4011; /* RootObj */
TNimType NTI341023; /* GeneralTokenizer */
TNimType NTI341021; /* TokenClass */
extern TNimType NTI108; /* int */
extern TNimType NTI151; /* cstring */

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

N_NIMCALL(void, initgeneraltokenizer_341246)(Generaltokenizer341023* g, NCSTRING buf) {
	NI pos;
	(*g).buf = buf;
	(*g).kind = ((NU8) 0);
	(*g).start = ((NI) 0);
	(*g).length = ((NI) 0);
	(*g).state = ((NU8) 0);
	pos = ((NI) 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 += ((NI) 1);
		} LA2: ;
	}
	(*g).pos = pos;
}

N_NIMCALL(void, initgeneraltokenizer_341289)(Generaltokenizer341023* g, NimStringDesc* buf) {
	initgeneraltokenizer_341246(g, buf->data);
}

N_NIMCALL(NU8, nimgetkeyword_341310)(NimStringDesc* id) {
	NU8 result;
{	result = 0;
	{
		NimStringDesc* k_341354;
		NI i_341404;
		k_341354 = 0;
		i_341404 = ((NI) 0);
		{
			if (!(((NI) (i_341404)) <= ((NI) 69))) goto LA4;
			{
				while (1) {
					k_341354 = copyString(nimkeywords_341093[(i_341404)- 0]);
					{
						NI LOC10;
						LOC10 = 0;
						LOC10 = nsuCmpIgnoreStyle(id, k_341354);
						if (!(LOC10 == ((NI) 0))) goto LA11;
						result = ((NU8) 9);
						goto BeforeRet;
					}
					LA11: ;
					{
						if (!(((NI) 69) <= ((NI) (i_341404)))) goto LA15;
						goto LA6;
					}
					LA15: ;
					i_341404 += ((NI) 1);
				}
			} LA6: ;
		}
		LA4: ;
	}
	result = ((NU8) 8);
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(NI, nimnumber_341540)(Generaltokenizer341023* 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 += ((NI) 1);
		} LA2: ;
	}
	{
		if (!((NU8)((*g).buf[pos]) == (NU8)(46))) goto LA5;
		(*g).kind = ((NU8) 7);
		pos += ((NI) 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 += ((NI) 1);
			} LA8: ;
		}
	}
	LA5: ;
	{
		if (!(((NU8)((*g).buf[pos])) == ((NU8)(101)) || ((NU8)((*g).buf[pos])) == ((NU8)(69)))) goto LA11;
		(*g).kind = ((NU8) 7);
		pos += ((NI) 1);
		{
			if (!(((NU8)((*g).buf[pos])) == ((NU8)(43)) || ((NU8)((*g).buf[pos])) == ((NU8)(45)))) goto LA15;
			pos += ((NI) 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 += ((NI) 1);
			} LA18: ;
		}
	}
	LA11: ;
	result = nimnumberpostfix_341420(g, pos);
	return result;
}

N_NIMCALL(void, nimnexttoken_341687)(Generaltokenizer341023* 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 += ((NI) 1);
					switch (((NU8)((*g).buf[pos]))) {
					case 120:
					case 88:
					{
						pos += ((NI) 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 += ((NI) 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 += ((NI) 1);
						}
						LA15: ;
					}
					break;
					case 48 ... 57:
					{
						{
							while (1) {
								if (!(((NU8)((*g).buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).buf[pos])) <= ((NU8)(57)))) goto LA19;
								pos += ((NI) 1);
							} LA19: ;
						}
					}
					break;
					case 0:
					{
						(*g).state = ((NU8) 1);
					}
					break;
					default:
					{
						pos += ((NI) 1);
					}
					break;
					}
					goto LA5;
				}
				break;
				case 0:
				case 13:
				case 10:
				{
					(*g).state = ((NU8) 1);
					goto LA5;
				}
				break;
				case 34:
				{
					pos += ((NI) 1);
					(*g).state = ((NU8) 1);
					goto LA5;
				}
				break;
				default:
				{
					pos += ((NI) 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 += ((NI) 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 += ((NI) 1);
				} LA31: ;
			}
		}
		break;
		case 97 ... 122:
		case 65 ... 90:
		case 95:
		case 128 ... 255:
		{
			NimStringDesc* id;
			id = copyString(((NimStringDesc*) &TMP2331));
			{
				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 += ((NI) 1);
				} LA34: ;
			}
			{
				if (!((NU8)((*g).buf[pos]) == (NU8)(34))) goto LA37;
				{
					NIM_BOOL LOC41;
					LOC41 = 0;
					LOC41 = ((NU8)((*g).buf[(NI)(pos + ((NI) 1))]) == (NU8)(34));
					if (!(LOC41)) goto LA42;
					LOC41 = ((NU8)((*g).buf[(NI)(pos + ((NI) 2))]) == (NU8)(34));
					LA42: ;
					if (!LOC41) goto LA43;
					pos += ((NI) 3);
					(*g).kind = ((NU8) 11);
					{
						while (1) {
							switch (((NU8)((*g).buf[pos]))) {
							case 0:
							{
								goto LA45;
							}
							break;
							case 34:
							{
								pos += ((NI) 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[(NI)(pos + ((NI) 1))]) == (NU8)(34));
									LA53: ;
									LOC51 = LOC52;
									if (!(LOC51)) goto LA54;
									LOC51 = !(((NU8)((*g).buf[(NI)(pos + ((NI) 2))]) == (NU8)(34)));
									LA54: ;
									if (!LOC51) goto LA55;
									pos += ((NI) 2);
									goto LA45;
								}
								LA55: ;
							}
							break;
							default:
							{
								pos += ((NI) 1);
							}
							break;
							}
						}
					} LA45: ;
				}
				goto LA39;
				LA43: ;
				{
					(*g).kind = ((NU8) 23);
					pos += ((NI) 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[(NI)(pos + ((NI) 1))]) == (NU8)(34)));
								LA64: ;
								if (!LOC63) goto LA65;
								goto LA59;
							}
							LA65: ;
							pos += ((NI) 1);
						} LA60: ;
					} LA59: ;
					{
						if (!((NU8)((*g).buf[pos]) == (NU8)(34))) goto LA69;
						pos += ((NI) 1);
					}
					LA69: ;
				}
				LA39: ;
			}
			goto LA35;
			LA37: ;
			{
				(*g).kind = nimgetkeyword_341310(id);
			}
			LA35: ;
		}
		break;
		case 48:
		{
			pos += ((NI) 1);
			switch (((NU8)((*g).buf[pos]))) {
			case 98:
			case 66:
			{
				pos += ((NI) 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 += ((NI) 1);
					} LA75: ;
				}
				pos = nimnumberpostfix_341420(g, pos);
			}
			break;
			case 120:
			case 88:
			{
				pos += ((NI) 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 += ((NI) 1);
					} LA78: ;
				}
				pos = nimnumberpostfix_341420(g, pos);
			}
			break;
			case 111:
			case 79:
			{
				pos += ((NI) 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 += ((NI) 1);
					} LA81: ;
				}
				pos = nimnumberpostfix_341420(g, pos);
			}
			break;
			default:
			{
				pos = nimnumber_341540(g, pos);
			}
			break;
			}
		}
		break;
		case 49 ... 57:
		{
			pos = nimnumber_341540(g, pos);
		}
		break;
		case 39:
		{
			pos += ((NI) 1);
			(*g).kind = ((NU8) 12);
			{
				while (1) {
					switch (((NU8)((*g).buf[pos]))) {
					case 0:
					case 13:
					case 10:
					{
						goto LA85;
					}
					break;
					case 39:
					{
						pos += ((NI) 1);
						goto LA85;
					}
					break;
					case 92:
					{
						pos += ((NI) 2);
					}
					break;
					default:
					{
						pos += ((NI) 1);
					}
					break;
					}
				}
			} LA85: ;
		}
		break;
		case 34:
		{
			pos += ((NI) 1);
			{
				NIM_BOOL LOC94;
				LOC94 = 0;
				LOC94 = ((NU8)((*g).buf[pos]) == (NU8)(34));
				if (!(LOC94)) goto LA95;
				LOC94 = ((NU8)((*g).buf[(NI)(pos + ((NI) 1))]) == (NU8)(34));
				LA95: ;
				if (!LOC94) goto LA96;
				pos += ((NI) 2);
				(*g).kind = ((NU8) 11);
				{
					while (1) {
						switch (((NU8)((*g).buf[pos]))) {
						case 0:
						{
							goto LA98;
						}
						break;
						case 34:
						{
							pos += ((NI) 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[(NI)(pos + ((NI) 1))]) == (NU8)(34));
								LA106: ;
								LOC104 = LOC105;
								if (!(LOC104)) goto LA107;
								LOC104 = !(((NU8)((*g).buf[(NI)(pos + ((NI) 2))]) == (NU8)(34)));
								LA107: ;
								if (!LOC104) goto LA108;
								pos += ((NI) 2);
								goto LA98;
							}
							LA108: ;
						}
						break;
						default:
						{
							pos += ((NI) 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 += ((NI) 1);
							goto LA112;
						}
						break;
						case 92:
						{
							(*g).state = (*g).kind;
							goto LA112;
						}
						break;
						default:
						{
							pos += ((NI) 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 += ((NI) 1);
			(*g).kind = ((NU8) 15);
		}
		break;
		case 0:
		{
			(*g).kind = ((NU8) 0);
		}
		break;
		default:
		{
			{
				if (!((TMP2402[((NU8)((*g).buf[pos]))/8] &(1<<(((NU8)((*g).buf[pos]))%8)))!=0)) goto LA123;
				(*g).kind = ((NU8) 14);
				{
					while (1) {
						if (!((TMP2402[((NU8)((*g).buf[pos]))/8] &(1<<(((NU8)((*g).buf[pos]))%8)))!=0)) goto LA126;
						pos += ((NI) 1);
					} LA126: ;
				}
			}
			goto LA121;
			LA123: ;
			{
				pos += ((NI) 1);
				(*g).kind = ((NU8) 1);
			}
			LA121: ;
		}
		break;
		}
	}
	LA1: ;
	(*g).length = (NI)(pos - (*g).pos);
	{
		NIM_BOOL LOC130;
		LOC130 = 0;
		LOC130 = !(((*g).kind == ((NU8) 0)));
		if (!(LOC130)) goto LA131;
		LOC130 = ((*g).length <= ((NI) 0));
		LA131: ;
		if (!LOC130) goto LA132;
	}
	LA132: ;
	(*g).pos = pos;
}

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

N_NIMCALL(NI, generalnumber_342505)(Generaltokenizer341023* 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 += ((NI) 1);
		} LA2: ;
	}
	{
		if (!((NU8)((*g).buf[pos]) == (NU8)(46))) goto LA5;
		(*g).kind = ((NU8) 7);
		pos += ((NI) 1);
		{
			while (1) {
				if (!(((NU8)((*g).buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).buf[pos])) <= ((NU8)(57)))) goto LA8;
				pos += ((NI) 1);
			} LA8: ;
		}
	}
	LA5: ;
	{
		if (!(((NU8)((*g).buf[pos])) == ((NU8)(101)) || ((NU8)((*g).buf[pos])) == ((NU8)(69)))) goto LA11;
		(*g).kind = ((NU8) 7);
		pos += ((NI) 1);
		{
			if (!(((NU8)((*g).buf[pos])) == ((NU8)(43)) || ((NU8)((*g).buf[pos])) == ((NU8)(45)))) goto LA15;
			pos += ((NI) 1);
		}
		LA15: ;
		{
			while (1) {
				if (!(((NU8)((*g).buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).buf[pos])) <= ((NU8)(57)))) goto LA18;
				pos += ((NI) 1);
			} LA18: ;
		}
	}
	LA11: ;
	result = pos;
	return result;
}

N_NIMCALL(NI, generalstrlit_342647)(Generaltokenizer341023* g, NI position) {
	NI result;
	NI pos;
	NIM_CHAR c;
	result = 0;
	pos = position;
	(*g).kind = ((NU8) 10);
	c = (*g).buf[pos];
	pos += ((NI) 1);
	{
		while (1) {
			switch (((NU8)((*g).buf[pos]))) {
			case 0:
			{
				goto LA1;
			}
			break;
			case 92:
			{
				pos += ((NI) 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 += ((NI) 1);
						} LA8: ;
					}
				}
				break;
				case 120:
				case 88:
				{
					pos += ((NI) 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 += ((NI) 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 += ((NI) 1);
					}
					LA16: ;
				}
				break;
				default:
				{
					pos += ((NI) 2);
				}
				break;
				}
			}
			break;
			default:
			{
				{
					if (!((NU8)((*g).buf[pos]) == (NU8)(c))) goto LA22;
					pos += ((NI) 1);
					goto LA1;
				}
				goto LA20;
				LA22: ;
				{
					pos += ((NI) 1);
				}
				LA20: ;
			}
			break;
			}
		}
	} LA1: ;
	result = pos;
	return result;
}

N_NIMCALL(void, clikenexttoken_342864)(Generaltokenizer341023* 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 += ((NI) 1);
					switch (((NU8)((*g).buf[pos]))) {
					case 120:
					case 88:
					{
						pos += ((NI) 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 += ((NI) 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 += ((NI) 1);
						}
						LA15: ;
					}
					break;
					case 48 ... 57:
					{
						{
							while (1) {
								if (!(((NU8)((*g).buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).buf[pos])) <= ((NU8)(57)))) goto LA19;
								pos += ((NI) 1);
							} LA19: ;
						}
					}
					break;
					case 0:
					{
						(*g).state = ((NU8) 1);
					}
					break;
					default:
					{
						pos += ((NI) 1);
					}
					break;
					}
					goto LA5;
				}
				break;
				case 0:
				case 13:
				case 10:
				{
					(*g).state = ((NU8) 1);
					goto LA5;
				}
				break;
				case 34:
				{
					pos += ((NI) 1);
					(*g).state = ((NU8) 1);
					goto LA5;
				}
				break;
				default:
				{
					pos += ((NI) 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 += ((NI) 1);
				} LA28: ;
			}
		}
		break;
		case 47:
		{
			pos += ((NI) 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 += ((NI) 1);
					} LA35: ;
				}
			}
			goto LA30;
			LA32: ;
			{
				NI nested;
				if (!((NU8)((*g).buf[pos]) == (NU8)(42))) goto LA37;
				(*g).kind = ((NU8) 17);
				nested = ((NI) 0);
				pos += ((NI) 1);
				{
					while (1) {
						switch (((NU8)((*g).buf[pos]))) {
						case 42:
						{
							pos += ((NI) 1);
							{
								if (!((NU8)((*g).buf[pos]) == (NU8)(47))) goto LA44;
								pos += ((NI) 1);
								{
									if (!(nested == ((NI) 0))) goto LA48;
									goto LA39;
								}
								LA48: ;
							}
							LA44: ;
						}
						break;
						case 47:
						{
							pos += ((NI) 1);
							{
								if (!((NU8)((*g).buf[pos]) == (NU8)(42))) goto LA53;
								pos += ((NI) 1);
								{
									if (!((flags &(1<<((((NU8) 1))&7)))!=0)) goto LA57;
									nested += ((NI) 1);
								}
								LA57: ;
							}
							LA53: ;
						}
						break;
						case 0:
						{
							goto LA39;
						}
						break;
						default:
						{
							pos += ((NI) 1);
						}
						break;
						}
					}
				} LA39: ;
			}
			goto LA30;
			LA37: ;
			LA30: ;
		}
		break;
		case 35:
		{
			pos += ((NI) 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 += ((NI) 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 += ((NI) 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*) &TMP2331));
			{
				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 += ((NI) 1);
				} LA73: ;
			}
			{
				NI LOC76;
				LOC76 = 0;
				LOC76 = iskeyword_342790(keywords, keywordsLen0, id);
				if (!(((NI) 0) <= LOC76)) goto LA77;
				(*g).kind = ((NU8) 9);
			}
			goto LA74;
			LA77: ;
			{
				(*g).kind = ((NU8) 8);
			}
			LA74: ;
		}
		break;
		case 48:
		{
			pos += ((NI) 1);
			switch (((NU8)((*g).buf[pos]))) {
			case 98:
			case 66:
			{
				pos += ((NI) 1);
				{
					while (1) {
						if (!(((NU8)((*g).buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).buf[pos])) <= ((NU8)(49)))) goto LA83;
						pos += ((NI) 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 += ((NI) 1);
				}
				LA86: ;
			}
			break;
			case 120:
			case 88:
			{
				pos += ((NI) 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 += ((NI) 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 += ((NI) 1);
				}
				LA93: ;
			}
			break;
			case 48 ... 55:
			{
				pos += ((NI) 1);
				{
					while (1) {
						if (!(((NU8)((*g).buf[pos])) >= ((NU8)(48)) && ((NU8)((*g).buf[pos])) <= ((NU8)(55)))) goto LA97;
						pos += ((NI) 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 += ((NI) 1);
				}
				LA100: ;
			}
			break;
			default:
			{
				pos = generalnumber_342505(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 += ((NI) 1);
				}
				LA105: ;
			}
			break;
			}
		}
		break;
		case 49 ... 57:
		{
			pos = generalnumber_342505(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 += ((NI) 1);
			}
			LA110: ;
		}
		break;
		case 39:
		{
			pos = generalstrlit_342647(g, pos);
			(*g).kind = ((NU8) 12);
		}
		break;
		case 34:
		{
			pos += ((NI) 1);
			(*g).kind = ((NU8) 10);
			{
				while (1) {
					switch (((NU8)((*g).buf[pos]))) {
					case 0:
					{
						goto LA114;
					}
					break;
					case 34:
					{
						pos += ((NI) 1);
						goto LA114;
					}
					break;
					case 92:
					{
						(*g).state = (*g).kind;
						goto LA114;
					}
					break;
					default:
					{
						pos += ((NI) 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 += ((NI) 1);
			(*g).kind = ((NU8) 15);
		}
		break;
		case 0:
		{
			(*g).kind = ((NU8) 0);
		}
		break;
		default:
		{
			{
				if (!((TMP2402[((NU8)((*g).buf[pos]))/8] &(1<<(((NU8)((*g).buf[pos]))%8)))!=0)) goto LA125;
				(*g).kind = ((NU8) 14);
				{
					while (1) {
						if (!((TMP2402[((NU8)((*g).buf[pos]))/8] &(1<<(((NU8)((*g).buf[pos]))%8)))!=0)) goto LA128;
						pos += ((NI) 1);
					} LA128: ;
				}
			}
			goto LA123;
			LA125: ;
			{
				pos += ((NI) 1);
				(*g).kind = ((NU8) 1);
			}
			LA123: ;
		}
		break;
		}
	}
	LA1: ;
	(*g).length = (NI)(pos - (*g).pos);
	{
		NIM_BOOL LOC132;
		LOC132 = 0;
		LOC132 = !(((*g).kind == ((NU8) 0)));
		if (!(LOC132)) goto LA133;
		LOC132 = ((*g).length <= ((NI) 0));
		LA133: ;
		if (!LOC132) goto LA134;
	}
	LA134: ;
	(*g).pos = pos;
}

N_NIMCALL(void, cppnexttoken_343714)(Generaltokenizer341023* g) {
	clikenexttoken_342864(g, TMP2403, 48, 1);
}

N_NIMCALL(void, csharpnexttoken_343731)(Generaltokenizer341023* g) {
	clikenexttoken_342864(g, TMP2437, 77, 1);
}

N_NIMCALL(void, cnexttoken_343698)(Generaltokenizer341023* g) {
	clikenexttoken_342864(g, TMP2469, 37, 1);
}

N_NIMCALL(void, javanexttoken_343748)(Generaltokenizer341023* g) {
	clikenexttoken_342864(g, TMP2474, 53, 0);
}

N_NIMCALL(void, getnexttoken_343766)(Generaltokenizer341023* g, NU8 lang) {
	switch (lang) {
	case ((NU8) 0):
	{
	}
	break;
	case ((NU8) 1):
	case ((NU8) 2):
	{
		nimnexttoken_341687(g);
	}
	break;
	case ((NU8) 3):
	{
		cppnexttoken_343714(g);
	}
	break;
	case ((NU8) 4):
	{
		csharpnexttoken_343731(g);
	}
	break;
	case ((NU8) 5):
	{
		cnexttoken_343698(g);
	}
	break;
	case ((NU8) 6):
	{
		javanexttoken_343748(g);
	}
	break;
	}
}

N_NIMCALL(void, deinitgeneraltokenizer_341300)(Generaltokenizer341023* g) {
}
NIM_EXTERNC N_NOINLINE(void, docutils_highliteInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, docutils_highliteDatInit000)(void) {
static TNimNode* TMP2327[6];
static TNimNode* TMP2328[33];
NI TMP2330;
static char* NIM_CONST TMP2329[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 TMP971[41];
NTI341023.size = sizeof(Generaltokenizer341023);
NTI341023.kind = 17;
NTI341023.base = (&NTI4011);
NTI341023.flags = 1;
TMP2327[0] = &TMP971[1];
NTI341021.size = sizeof(NU8);
NTI341021.kind = 14;
NTI341021.base = 0;
NTI341021.flags = 3;
for (TMP2330 = 0; TMP2330 < 33; TMP2330++) {
TMP971[TMP2330+2].kind = 1;
TMP971[TMP2330+2].offset = TMP2330;
TMP971[TMP2330+2].name = TMP2329[TMP2330];
TMP2328[TMP2330] = &TMP971[TMP2330+2];
}
TMP971[35].len = 33; TMP971[35].kind = 2; TMP971[35].sons = &TMP2328[0];
NTI341021.node = &TMP971[35];
TMP971[1].kind = 1;
TMP971[1].offset = offsetof(Generaltokenizer341023, kind);
TMP971[1].typ = (&NTI341021);
TMP971[1].name = "kind";
TMP2327[1] = &TMP971[36];
TMP971[36].kind = 1;
TMP971[36].offset = offsetof(Generaltokenizer341023, start);
TMP971[36].typ = (&NTI108);
TMP971[36].name = "start";
TMP2327[2] = &TMP971[37];
TMP971[37].kind = 1;
TMP971[37].offset = offsetof(Generaltokenizer341023, length);
TMP971[37].typ = (&NTI108);
TMP971[37].name = "length";
TMP2327[3] = &TMP971[38];
TMP971[38].kind = 1;
TMP971[38].offset = offsetof(Generaltokenizer341023, buf);
TMP971[38].typ = (&NTI151);
TMP971[38].name = "buf";
TMP2327[4] = &TMP971[39];
TMP971[39].kind = 1;
TMP971[39].offset = offsetof(Generaltokenizer341023, pos);
TMP971[39].typ = (&NTI108);
TMP971[39].name = "pos";
TMP2327[5] = &TMP971[40];
TMP971[40].kind = 1;
TMP971[40].offset = offsetof(Generaltokenizer341023, state);
TMP971[40].typ = (&NTI341021);
TMP971[40].name = "state";
TMP971[0].len = 6; TMP971[0].kind = 2; TMP971[0].sons = &TMP2327[0];
NTI341023.node = &TMP971[0];
}

