From 5fa6570f33bc3e0d8e49aeb1ce10985df2dcaad4 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 1 Feb 2020 18:30:23 -0800 Subject: [PATCH] Lexer generator logic problem, leaving emit ptr in wrong location after output chunk ends --- custom/generated/lexer_cpp.cpp | 860 +++++++++--------- .../lexer_generator/4coder_lex_gen_main.cpp | 2 +- 2 files changed, 428 insertions(+), 434 deletions(-) diff --git a/custom/generated/lexer_cpp.cpp b/custom/generated/lexer_cpp.cpp index 213d6ac5..5c62f12e 100644 --- a/custom/generated/lexer_cpp.cpp +++ b/custom/generated/lexer_cpp.cpp @@ -43,453 +43,447 @@ lexeme_table_lookup(u64 *hash_array, String_Const_u8 *key_array, } #endif -u64 cpp_main_keys_hash_array[124] = { -0x26092f2f0215ece3,0x0000000000000000,0x5ce5a2eda58b1f23,0xb2d6c5c6769fa3a3, -0xb9ddf454bfe26d23,0x0000000000000000,0xcd0f6cfa687dd553,0x0000000000000000, -0x0000000000000000,0x5ce5a2e0c5100279,0x5ce5a2ede7babb3d,0x0000000000000000, -0x0000000000000000,0x6f6d951cb7cb582d,0x0e10b5f7624a6565,0xf889fe35be4428e3, -0x6f6d951cb404483f,0x26092f2f02f1c5ef,0x0000000000000000,0xe2b3ddb2fb5b2e6b, -0x0000000000000000,0x6f6d951cb4ea937d,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x0e10b1af23a24eb5,0x5ce5a2f3706ea43f,0x0000000000000000, -0xb2d6ca88b991d451,0xe2b3ddb2fb5a20a9,0x0000000000000000,0x26092f2f02d33cab, -0x0000000000000000,0x0000000000000000,0x5ce5a2e66f839a73,0x0000000000000000, -0x5ce5a2eda5890521,0x0000000000000000,0x6f6d951cb4228ddb,0x6f6d951cba73c8ab, -0xb9ddf454bfe26e41,0xd50b424c05eec7e9,0x8557f78510d2bb43,0x0000000000000000, -0x0000000000000000,0x26092f2f020b132d,0x0000000000000000,0x0000000000000000, -0xe2b3ddb2fb5bc1c9,0x0000000000000000,0x8ef935ae0949ace3,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x0000000000000000,0x26092f2f02d2781b, -0x26092f2f02e7a15d,0xb2d6c74182f6a66d,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x0000000000000000,0x26092f2f02e78453, -0xe2b3ddb2fb5bd5b5,0xb2d6c74182f6a7e9,0x0000000000000000,0x0000000000000000, -0xb2d6c6c7361150b5,0x5ce5a2e0b306cde5,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x5ce5a2e7e5c24db3,0x26092f2f0216583b, -0x0e101bb85ac205ad,0x6f6d951cacb1aa35,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x5ce5a2e197faf9d9,0xe2b3ddb2fb5baba1,0x6f6d951cba402e7b, -0x26092f2f02e1d2eb,0x0000000000000000,0x73a9345f7aa71363,0x0000000000000000, -0x0e10b66610117f15,0x0000000000000000,0xe95e136b18f58763,0x0e10078c941fcafb, -0x0000000000000000,0x0000000000000000,0x5ce5a2f37530abf3,0xb2d6c68c37b0f1f7, -0x5ce5a2e7e4364fe9,0x5ce5a2f37536698d,0x0000000000000000,0x0000000000000000, -0x5ce5a2e049adcf39,0x0000000000000000,0x0000000000000000,0x0e100efea5987c03, -0x6f6d951c847de2fb,0x0e106caf9da9bbbd,0x0e109bd9232f3723,0x0000000000000000, -0x6f6d951c86ec6929,0x0000000000000000,0x0000000000000000,0x0e114d6868e6156b, -0x6f6d951c8f3e1899,0x0e105b1fdc2b41ad,0xb2d6c5dc5a9a53e5,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x26092f2f0212aa4b,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x5ce5a2f37ca36a8b,0xcd1ba7f6b56d6ce3, +u64 cpp_main_keys_hash_array[121] = { +0x0000000000000000,0x0000000000000000,0x0000000000000000,0x8349fa730393363b, +0x0000000000000000,0x8349fa730aae0099,0x60ea26a19b756e79,0x0000000000000000, +0xb93f1a8b9f2a32a5,0x0000000000000000,0x70176a7f513b6149,0x83cfadc08adce95d, +0x0000000000000000,0xef2944a1e021a185,0x33d534df660dd7d1,0xef2944a1e020e4ef, +0x4925ce049db84f37,0x0000000000000000,0xef2944a1e0217bb9,0x0000000000000000, +0x83cfadc025927fad,0x9c990ba137331a7b,0x0000000000000000,0xd0ee94c41229223b, +0x83cfadc218c1af4b,0x83cfadc05860fa51,0x33d534df65d0b7a1,0x8349fa73053a0c29, +0x0000000000000000,0x33d534df666c18fb,0x1af8d017f84db43f,0x0000000000000000, +0x0000000000000000,0x1af8d017f84db719,0x0000000000000000,0x0000000000000000, +0x33d534df66190e59,0x49275265b1018d2d,0x0000000000000000,0x0000000000000000, +0x33d534df6630873d,0x4925e70b40952c2b,0x8349fa731f0043ad,0x0000000000000000, +0xef2944a1e026c143,0x83cfadc027d6a375,0x49240a553feb1893,0x0000000000000000, +0x0000000000000000,0x9c99072ffa085123,0x83cfadc17d987a33,0x49274937cc2c73ab, +0x9c9907648aae4125,0x492415929b88fb15,0x0000000000000000,0x0000000000000000, +0x0000000000000000,0x83cfadc226c3a251,0x8349fa731f1a8b89,0x492739e1687c7c73, +0x0000000000000000,0x0000000000000000,0x492760d5d9233623,0x83cfadc100295e99, +0x83cfadc3f0d53289,0x8349fa731f0596e9,0x0000000000000000,0x0000000000000000, +0x8349fa7336b0ba93,0x9c99074f559d0e07,0x8349fa73039058ed,0x0000000000000000, +0x0000000000000000,0x8349fa73365331d3,0x9c990ba137331761,0x31d873deecc74ec9, +0x83cfadc05d3daf09,0x0000000000000000,0x0000000000000000,0x9c99064c8ae8c92f, +0x0000000000000000,0x0000000000000000,0x33d534df6605b333,0x0000000000000000, +0x33d534df6772a0a9,0x4925b9bfb359db75,0x0000000000000000,0x0000000000000000, +0x0000000000000000,0xb03d472d14c4eec9,0x0000000000000000,0x0000000000000000, +0x0000000000000000,0x0000000000000000,0xd3a2eb0b8808f565,0xef2944a1e0216207, +0x83cfadc024f06dbb,0x83cfadc1887f2993,0x0000000000000000,0x0000000000000000, +0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000, +0x33d534df666c8233,0x0000000000000000,0x0000000000000000,0x49274be6eb62115b, +0x0000000000000000,0x8349fa733124f7c9,0x0000000000000000,0x83cfadc101f1a3f7, +0x33d534df6605923b,0x33d534df6638d32b,0x0000000000000000,0x0000000000000000, +0x0000000000000000,0x83cfadc06ebf6037,0x0000000000000000,0x9c99070bb0253d6d, +0x64fb60a931f3c149, }; -u8 cpp_main_keys_key_array_0[] = {0x74,0x72,0x75,0x65,}; -u8 cpp_main_keys_key_array_2[] = {0x73,0x69,0x67,0x6e,0x65,0x64,}; -u8 cpp_main_keys_key_array_3[] = {0x76,0x69,0x72,0x74,0x75,0x61,0x6c,}; -u8 cpp_main_keys_key_array_4[] = {0x64,0x6f,}; -u8 cpp_main_keys_key_array_6[] = {0x70,0x72,0x6f,0x74,0x65,0x63,0x74,0x65,0x64,}; -u8 cpp_main_keys_key_array_9[] = {0x64,0x6f,0x75,0x62,0x6c,0x65,}; -u8 cpp_main_keys_key_array_10[] = {0x70,0x75,0x62,0x6c,0x69,0x63,}; -u8 cpp_main_keys_key_array_13[] = {0x63,0x6c,0x61,0x73,0x73,}; -u8 cpp_main_keys_key_array_14[] = {0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,}; -u8 cpp_main_keys_key_array_15[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_16[] = {0x63,0x61,0x74,0x63,0x68,}; -u8 cpp_main_keys_key_array_17[] = {0x67,0x6f,0x74,0x6f,}; -u8 cpp_main_keys_key_array_19[] = {0x61,0x73,0x6d,}; -u8 cpp_main_keys_key_array_21[] = {0x62,0x72,0x65,0x61,0x6b,}; -u8 cpp_main_keys_key_array_25[] = {0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,}; -u8 cpp_main_keys_key_array_26[] = {0x73,0x77,0x69,0x74,0x63,0x68,}; -u8 cpp_main_keys_key_array_28[] = {0x74,0x79,0x70,0x65,0x64,0x65,0x66,}; -u8 cpp_main_keys_key_array_29[] = {0x74,0x72,0x79,}; -u8 cpp_main_keys_key_array_31[] = {0x65,0x6c,0x73,0x65,}; -u8 cpp_main_keys_key_array_34[] = {0x72,0x65,0x74,0x75,0x72,0x6e,}; -u8 cpp_main_keys_key_array_36[] = {0x73,0x69,0x7a,0x65,0x6f,0x66,}; -u8 cpp_main_keys_key_array_38[] = {0x63,0x6f,0x6e,0x73,0x74,}; -u8 cpp_main_keys_key_array_39[] = {0x66,0x61,0x6c,0x73,0x65,}; -u8 cpp_main_keys_key_array_40[] = {0x69,0x66,}; -u8 cpp_main_keys_key_array_41[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x61,0x73,0x73,0x65,0x72,0x74,}; -u8 cpp_main_keys_key_array_42[] = {0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x6c,0x6f,0x63,0x61,0x6c,}; -u8 cpp_main_keys_key_array_45[] = {0x74,0x68,0x69,0x73,}; -u8 cpp_main_keys_key_array_48[] = {0x69,0x6e,0x74,}; -u8 cpp_main_keys_key_array_50[] = {0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_55[] = {0x65,0x6e,0x75,0x6d,}; -u8 cpp_main_keys_key_array_56[] = {0x63,0x68,0x61,0x72,}; -u8 cpp_main_keys_key_array_57[] = {0x61,0x6c,0x69,0x67,0x6e,0x61,0x73,}; -u8 cpp_main_keys_key_array_63[] = {0x63,0x61,0x73,0x65,}; -u8 cpp_main_keys_key_array_64[] = {0x66,0x6f,0x72,}; -u8 cpp_main_keys_key_array_65[] = {0x61,0x6c,0x69,0x67,0x6e,0x6f,0x66,}; -u8 cpp_main_keys_key_array_68[] = {0x64,0x65,0x66,0x61,0x75,0x6c,0x74,}; -u8 cpp_main_keys_key_array_69[] = {0x64,0x65,0x6c,0x65,0x74,0x65,}; -u8 cpp_main_keys_key_array_74[] = {0x65,0x78,0x74,0x65,0x72,0x6e,}; -u8 cpp_main_keys_key_array_75[] = {0x6c,0x6f,0x6e,0x67,}; -u8 cpp_main_keys_key_array_76[] = {0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,}; -u8 cpp_main_keys_key_array_77[] = {0x77,0x68,0x69,0x6c,0x65,}; -u8 cpp_main_keys_key_array_81[] = {0x69,0x6e,0x6c,0x69,0x6e,0x65,}; -u8 cpp_main_keys_key_array_82[] = {0x6e,0x65,0x77,}; -u8 cpp_main_keys_key_array_83[] = {0x66,0x6c,0x6f,0x61,0x74,}; -u8 cpp_main_keys_key_array_84[] = {0x62,0x6f,0x6f,0x6c,}; -u8 cpp_main_keys_key_array_86[] = {0x63,0x6f,0x6e,0x73,0x74,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_88[] = {0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,}; -u8 cpp_main_keys_key_array_90[] = {0x72,0x65,0x69,0x6e,0x74,0x65,0x72,0x70,0x72,0x65,0x74,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_91[] = {0x65,0x78,0x70,0x6c,0x69,0x63,0x69,0x74,}; -u8 cpp_main_keys_key_array_94[] = {0x73,0x74,0x72,0x75,0x63,0x74,}; -u8 cpp_main_keys_key_array_95[] = {0x6e,0x75,0x6c,0x6c,0x70,0x74,0x72,}; -u8 cpp_main_keys_key_array_96[] = {0x65,0x78,0x70,0x6f,0x72,0x74,}; -u8 cpp_main_keys_key_array_97[] = {0x73,0x74,0x61,0x74,0x69,0x63,}; -u8 cpp_main_keys_key_array_100[] = {0x66,0x72,0x69,0x65,0x6e,0x64,}; -u8 cpp_main_keys_key_array_103[] = {0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,}; -u8 cpp_main_keys_key_array_104[] = {0x75,0x73,0x69,0x6e,0x67,}; -u8 cpp_main_keys_key_array_105[] = {0x64,0x65,0x63,0x6c,0x74,0x79,0x70,0x65,}; -u8 cpp_main_keys_key_array_106[] = {0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,}; -u8 cpp_main_keys_key_array_108[] = {0x73,0x68,0x6f,0x72,0x74,}; -u8 cpp_main_keys_key_array_111[] = {0x74,0x79,0x70,0x65,0x6e,0x61,0x6d,0x65,}; -u8 cpp_main_keys_key_array_112[] = {0x75,0x6e,0x69,0x6f,0x6e,}; -u8 cpp_main_keys_key_array_113[] = {0x6e,0x6f,0x65,0x78,0x63,0x65,0x70,0x74,}; -u8 cpp_main_keys_key_array_114[] = {0x70,0x72,0x69,0x76,0x61,0x74,0x65,}; -u8 cpp_main_keys_key_array_118[] = {0x76,0x6f,0x69,0x64,}; -u8 cpp_main_keys_key_array_122[] = {0x74,0x79,0x70,0x65,0x69,0x64,}; -u8 cpp_main_keys_key_array_123[] = {0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,}; -String_Const_u8 cpp_main_keys_key_array[124] = { -{cpp_main_keys_key_array_0, 4}, -{0, 0}, -{cpp_main_keys_key_array_2, 6}, -{cpp_main_keys_key_array_3, 7}, -{cpp_main_keys_key_array_4, 2}, -{0, 0}, -{cpp_main_keys_key_array_6, 9}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_9, 6}, -{cpp_main_keys_key_array_10, 6}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_13, 5}, -{cpp_main_keys_key_array_14, 8}, -{cpp_main_keys_key_array_15, 11}, -{cpp_main_keys_key_array_16, 5}, -{cpp_main_keys_key_array_17, 4}, -{0, 0}, -{cpp_main_keys_key_array_19, 3}, -{0, 0}, -{cpp_main_keys_key_array_21, 5}, +u8 cpp_main_keys_key_array_3[] = {0x66,0x61,0x6c,0x73,0x65,}; +u8 cpp_main_keys_key_array_5[] = {0x73,0x68,0x6f,0x72,0x74,}; +u8 cpp_main_keys_key_array_6[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x61,0x73,0x73,0x65,0x72,0x74,}; +u8 cpp_main_keys_key_array_8[] = {0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x6c,0x6f,0x63,0x61,0x6c,}; +u8 cpp_main_keys_key_array_10[] = {0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,}; +u8 cpp_main_keys_key_array_11[] = {0x74,0x79,0x70,0x65,0x69,0x64,}; +u8 cpp_main_keys_key_array_13[] = {0x6e,0x65,0x77,}; +u8 cpp_main_keys_key_array_14[] = {0x62,0x6f,0x6f,0x6c,}; +u8 cpp_main_keys_key_array_15[] = {0x74,0x72,0x79,}; +u8 cpp_main_keys_key_array_16[] = {0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,}; +u8 cpp_main_keys_key_array_18[] = {0x69,0x6e,0x74,}; +u8 cpp_main_keys_key_array_20[] = {0x73,0x77,0x69,0x74,0x63,0x68,}; +u8 cpp_main_keys_key_array_21[] = {0x61,0x6c,0x69,0x67,0x6e,0x6f,0x66,}; +u8 cpp_main_keys_key_array_23[] = {0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,}; +u8 cpp_main_keys_key_array_24[] = {0x69,0x6e,0x6c,0x69,0x6e,0x65,}; +u8 cpp_main_keys_key_array_25[] = {0x73,0x74,0x61,0x74,0x69,0x63,}; +u8 cpp_main_keys_key_array_26[] = {0x74,0x68,0x69,0x73,}; +u8 cpp_main_keys_key_array_27[] = {0x62,0x72,0x65,0x61,0x6b,}; +u8 cpp_main_keys_key_array_29[] = {0x63,0x61,0x73,0x65,}; +u8 cpp_main_keys_key_array_30[] = {0x69,0x66,}; +u8 cpp_main_keys_key_array_33[] = {0x64,0x6f,}; +u8 cpp_main_keys_key_array_36[] = {0x67,0x6f,0x74,0x6f,}; +u8 cpp_main_keys_key_array_37[] = {0x65,0x78,0x70,0x6c,0x69,0x63,0x69,0x74,}; +u8 cpp_main_keys_key_array_40[] = {0x76,0x6f,0x69,0x64,}; +u8 cpp_main_keys_key_array_41[] = {0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,}; +u8 cpp_main_keys_key_array_42[] = {0x63,0x61,0x74,0x63,0x68,}; +u8 cpp_main_keys_key_array_44[] = {0x61,0x73,0x6d,}; +u8 cpp_main_keys_key_array_45[] = {0x73,0x69,0x67,0x6e,0x65,0x64,}; +u8 cpp_main_keys_key_array_46[] = {0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,}; +u8 cpp_main_keys_key_array_49[] = {0x70,0x72,0x69,0x76,0x61,0x74,0x65,}; +u8 cpp_main_keys_key_array_50[] = {0x64,0x6f,0x75,0x62,0x6c,0x65,}; +u8 cpp_main_keys_key_array_51[] = {0x74,0x79,0x70,0x65,0x6e,0x61,0x6d,0x65,}; +u8 cpp_main_keys_key_array_52[] = {0x76,0x69,0x72,0x74,0x75,0x61,0x6c,}; +u8 cpp_main_keys_key_array_53[] = {0x6e,0x6f,0x65,0x78,0x63,0x65,0x70,0x74,}; +u8 cpp_main_keys_key_array_57[] = {0x70,0x75,0x62,0x6c,0x69,0x63,}; +u8 cpp_main_keys_key_array_58[] = {0x63,0x6c,0x61,0x73,0x73,}; +u8 cpp_main_keys_key_array_59[] = {0x64,0x65,0x63,0x6c,0x74,0x79,0x70,0x65,}; +u8 cpp_main_keys_key_array_62[] = {0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,}; +u8 cpp_main_keys_key_array_63[] = {0x65,0x78,0x70,0x6f,0x72,0x74,}; +u8 cpp_main_keys_key_array_64[] = {0x66,0x72,0x69,0x65,0x6e,0x64,}; +u8 cpp_main_keys_key_array_65[] = {0x63,0x6f,0x6e,0x73,0x74,}; +u8 cpp_main_keys_key_array_68[] = {0x77,0x68,0x69,0x6c,0x65,}; +u8 cpp_main_keys_key_array_69[] = {0x74,0x79,0x70,0x65,0x64,0x65,0x66,}; +u8 cpp_main_keys_key_array_70[] = {0x66,0x6c,0x6f,0x61,0x74,}; +u8 cpp_main_keys_key_array_73[] = {0x75,0x6e,0x69,0x6f,0x6e,}; +u8 cpp_main_keys_key_array_74[] = {0x61,0x6c,0x69,0x67,0x6e,0x61,0x73,}; +u8 cpp_main_keys_key_array_75[] = {0x72,0x65,0x69,0x6e,0x74,0x65,0x72,0x70,0x72,0x65,0x74,0x5f,0x63,0x61,0x73,0x74,}; +u8 cpp_main_keys_key_array_76[] = {0x73,0x74,0x72,0x75,0x63,0x74,}; +u8 cpp_main_keys_key_array_79[] = {0x6e,0x75,0x6c,0x6c,0x70,0x74,0x72,}; +u8 cpp_main_keys_key_array_82[] = {0x65,0x6e,0x75,0x6d,}; +u8 cpp_main_keys_key_array_84[] = {0x6c,0x6f,0x6e,0x67,}; +u8 cpp_main_keys_key_array_85[] = {0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,}; +u8 cpp_main_keys_key_array_89[] = {0x63,0x6f,0x6e,0x73,0x74,0x5f,0x63,0x61,0x73,0x74,}; +u8 cpp_main_keys_key_array_94[] = {0x70,0x72,0x6f,0x74,0x65,0x63,0x74,0x65,0x64,}; +u8 cpp_main_keys_key_array_95[] = {0x66,0x6f,0x72,}; +u8 cpp_main_keys_key_array_96[] = {0x73,0x69,0x7a,0x65,0x6f,0x66,}; +u8 cpp_main_keys_key_array_97[] = {0x64,0x65,0x6c,0x65,0x74,0x65,}; +u8 cpp_main_keys_key_array_104[] = {0x63,0x68,0x61,0x72,}; +u8 cpp_main_keys_key_array_107[] = {0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,}; +u8 cpp_main_keys_key_array_109[] = {0x75,0x73,0x69,0x6e,0x67,}; +u8 cpp_main_keys_key_array_111[] = {0x65,0x78,0x74,0x65,0x72,0x6e,}; +u8 cpp_main_keys_key_array_112[] = {0x65,0x6c,0x73,0x65,}; +u8 cpp_main_keys_key_array_113[] = {0x74,0x72,0x75,0x65,}; +u8 cpp_main_keys_key_array_117[] = {0x72,0x65,0x74,0x75,0x72,0x6e,}; +u8 cpp_main_keys_key_array_119[] = {0x64,0x65,0x66,0x61,0x75,0x6c,0x74,}; +u8 cpp_main_keys_key_array_120[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,}; +String_Const_u8 cpp_main_keys_key_array[121] = { {0, 0}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_25, 8}, -{cpp_main_keys_key_array_26, 6}, +{cpp_main_keys_key_array_3, 5}, {0, 0}, -{cpp_main_keys_key_array_28, 7}, -{cpp_main_keys_key_array_29, 3}, +{cpp_main_keys_key_array_5, 5}, +{cpp_main_keys_key_array_6, 13}, {0, 0}, -{cpp_main_keys_key_array_31, 4}, +{cpp_main_keys_key_array_8, 12}, +{0, 0}, +{cpp_main_keys_key_array_10, 12}, +{cpp_main_keys_key_array_11, 6}, +{0, 0}, +{cpp_main_keys_key_array_13, 3}, +{cpp_main_keys_key_array_14, 4}, +{cpp_main_keys_key_array_15, 3}, +{cpp_main_keys_key_array_16, 8}, +{0, 0}, +{cpp_main_keys_key_array_18, 3}, +{0, 0}, +{cpp_main_keys_key_array_20, 6}, +{cpp_main_keys_key_array_21, 7}, +{0, 0}, +{cpp_main_keys_key_array_23, 9}, +{cpp_main_keys_key_array_24, 6}, +{cpp_main_keys_key_array_25, 6}, +{cpp_main_keys_key_array_26, 4}, +{cpp_main_keys_key_array_27, 5}, +{0, 0}, +{cpp_main_keys_key_array_29, 4}, +{cpp_main_keys_key_array_30, 2}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_34, 6}, -{0, 0}, -{cpp_main_keys_key_array_36, 6}, -{0, 0}, -{cpp_main_keys_key_array_38, 5}, -{cpp_main_keys_key_array_39, 5}, -{cpp_main_keys_key_array_40, 2}, -{cpp_main_keys_key_array_41, 13}, -{cpp_main_keys_key_array_42, 12}, +{cpp_main_keys_key_array_33, 2}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_45, 4}, +{cpp_main_keys_key_array_36, 4}, +{cpp_main_keys_key_array_37, 8}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_48, 3}, +{cpp_main_keys_key_array_40, 4}, +{cpp_main_keys_key_array_41, 8}, +{cpp_main_keys_key_array_42, 5}, {0, 0}, -{cpp_main_keys_key_array_50, 12}, +{cpp_main_keys_key_array_44, 3}, +{cpp_main_keys_key_array_45, 6}, +{cpp_main_keys_key_array_46, 8}, +{0, 0}, +{0, 0}, +{cpp_main_keys_key_array_49, 7}, +{cpp_main_keys_key_array_50, 6}, +{cpp_main_keys_key_array_51, 8}, +{cpp_main_keys_key_array_52, 7}, +{cpp_main_keys_key_array_53, 8}, {0, 0}, {0, 0}, {0, 0}, -{0, 0}, -{cpp_main_keys_key_array_55, 4}, -{cpp_main_keys_key_array_56, 4}, -{cpp_main_keys_key_array_57, 7}, +{cpp_main_keys_key_array_57, 6}, +{cpp_main_keys_key_array_58, 5}, +{cpp_main_keys_key_array_59, 8}, {0, 0}, {0, 0}, +{cpp_main_keys_key_array_62, 8}, +{cpp_main_keys_key_array_63, 6}, +{cpp_main_keys_key_array_64, 6}, +{cpp_main_keys_key_array_65, 5}, {0, 0}, {0, 0}, -{0, 0}, -{cpp_main_keys_key_array_63, 4}, -{cpp_main_keys_key_array_64, 3}, -{cpp_main_keys_key_array_65, 7}, +{cpp_main_keys_key_array_68, 5}, +{cpp_main_keys_key_array_69, 7}, +{cpp_main_keys_key_array_70, 5}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_68, 7}, -{cpp_main_keys_key_array_69, 6}, +{cpp_main_keys_key_array_73, 5}, +{cpp_main_keys_key_array_74, 7}, +{cpp_main_keys_key_array_75, 16}, +{cpp_main_keys_key_array_76, 6}, {0, 0}, {0, 0}, +{cpp_main_keys_key_array_79, 7}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_74, 6}, -{cpp_main_keys_key_array_75, 4}, -{cpp_main_keys_key_array_76, 8}, -{cpp_main_keys_key_array_77, 5}, +{cpp_main_keys_key_array_82, 4}, {0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_81, 6}, -{cpp_main_keys_key_array_82, 3}, -{cpp_main_keys_key_array_83, 5}, {cpp_main_keys_key_array_84, 4}, -{0, 0}, -{cpp_main_keys_key_array_86, 10}, -{0, 0}, -{cpp_main_keys_key_array_88, 8}, -{0, 0}, -{cpp_main_keys_key_array_90, 16}, -{cpp_main_keys_key_array_91, 8}, +{cpp_main_keys_key_array_85, 8}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_94, 6}, -{cpp_main_keys_key_array_95, 7}, +{0, 0}, +{cpp_main_keys_key_array_89, 10}, +{0, 0}, +{0, 0}, +{0, 0}, +{0, 0}, +{cpp_main_keys_key_array_94, 9}, +{cpp_main_keys_key_array_95, 3}, {cpp_main_keys_key_array_96, 6}, {cpp_main_keys_key_array_97, 6}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_100, 6}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_103, 8}, -{cpp_main_keys_key_array_104, 5}, -{cpp_main_keys_key_array_105, 8}, -{cpp_main_keys_key_array_106, 8}, -{0, 0}, -{cpp_main_keys_key_array_108, 5}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_111, 8}, -{cpp_main_keys_key_array_112, 5}, -{cpp_main_keys_key_array_113, 8}, -{cpp_main_keys_key_array_114, 7}, {0, 0}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_118, 4}, +{0, 0}, +{cpp_main_keys_key_array_104, 4}, +{0, 0}, +{0, 0}, +{cpp_main_keys_key_array_107, 8}, +{0, 0}, +{cpp_main_keys_key_array_109, 5}, +{0, 0}, +{cpp_main_keys_key_array_111, 6}, +{cpp_main_keys_key_array_112, 4}, +{cpp_main_keys_key_array_113, 4}, {0, 0}, {0, 0}, {0, 0}, -{cpp_main_keys_key_array_122, 6}, -{cpp_main_keys_key_array_123, 9}, +{cpp_main_keys_key_array_117, 6}, +{0, 0}, +{cpp_main_keys_key_array_119, 7}, +{cpp_main_keys_key_array_120, 11}, }; -Lexeme_Table_Value cpp_main_keys_value_array[124] = { -{8, TokenCppKind_LiteralTrue}, -{0, 0}, -{4, TokenCppKind_Signed}, -{4, TokenCppKind_Virtual}, -{4, TokenCppKind_Do}, -{0, 0}, -{4, TokenCppKind_Protected}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Double}, -{4, TokenCppKind_Public}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Class}, -{4, TokenCppKind_Template}, -{4, TokenCppKind_StaticCast}, -{4, TokenCppKind_Catch}, -{4, TokenCppKind_Goto}, -{0, 0}, -{4, TokenCppKind_Asm}, -{0, 0}, -{4, TokenCppKind_Break}, +Lexeme_Table_Value cpp_main_keys_value_array[121] = { {0, 0}, {0, 0}, {0, 0}, -{4, TokenCppKind_Volatile}, -{4, TokenCppKind_Switch}, -{0, 0}, -{4, TokenCppKind_Typedef}, -{4, TokenCppKind_Try}, -{0, 0}, -{4, TokenCppKind_Else}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Return}, -{0, 0}, -{4, TokenCppKind_SizeOf}, -{0, 0}, -{4, TokenCppKind_Const}, {8, TokenCppKind_LiteralFalse}, -{4, TokenCppKind_If}, +{0, 0}, +{4, TokenCppKind_Short}, {4, TokenCppKind_StaticAssert}, +{0, 0}, {4, TokenCppKind_ThreadLocal}, {0, 0}, +{4, TokenCppKind_DynamicCast}, +{4, TokenCppKind_TypeID}, {0, 0}, -{4, TokenCppKind_This}, -{0, 0}, +{4, TokenCppKind_New}, +{4, TokenCppKind_Bool}, +{4, TokenCppKind_Try}, +{4, TokenCppKind_Operator}, {0, 0}, {4, TokenCppKind_Int}, {0, 0}, -{4, TokenCppKind_DynamicCast}, +{4, TokenCppKind_Switch}, +{4, TokenCppKind_AlignOf}, +{0, 0}, +{4, TokenCppKind_Namespace}, +{4, TokenCppKind_Inline}, +{4, TokenCppKind_Static}, +{4, TokenCppKind_This}, +{4, TokenCppKind_Break}, +{0, 0}, +{4, TokenCppKind_Case}, +{4, TokenCppKind_If}, {0, 0}, {0, 0}, +{4, TokenCppKind_Do}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Goto}, +{4, TokenCppKind_Explicit}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Void}, +{4, TokenCppKind_Continue}, +{4, TokenCppKind_Catch}, +{0, 0}, +{4, TokenCppKind_Asm}, +{4, TokenCppKind_Signed}, +{4, TokenCppKind_Volatile}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Private}, +{4, TokenCppKind_Double}, +{4, TokenCppKind_Typename}, +{4, TokenCppKind_Virtual}, +{4, TokenCppKind_NoExcept}, +{0, 0}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Public}, +{4, TokenCppKind_Class}, +{4, TokenCppKind_DeclType}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Template}, +{4, TokenCppKind_Export}, +{4, TokenCppKind_Friend}, +{4, TokenCppKind_Const}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_While}, +{4, TokenCppKind_Typedef}, +{4, TokenCppKind_Float}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Union}, +{4, TokenCppKind_AlignAs}, +{4, TokenCppKind_ReinterpretCast}, +{4, TokenCppKind_Struct}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_NullPtr}, {0, 0}, {0, 0}, {4, TokenCppKind_Enum}, -{4, TokenCppKind_Char}, -{4, TokenCppKind_AlignAs}, +{0, 0}, +{4, TokenCppKind_Long}, +{4, TokenCppKind_Unsigned}, +{0, 0}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_ConstCast}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, -{0, 0}, -{4, TokenCppKind_Case}, +{4, TokenCppKind_Protected}, {4, TokenCppKind_For}, -{4, TokenCppKind_AlignOf}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Default}, +{4, TokenCppKind_SizeOf}, {4, TokenCppKind_Delete}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, -{4, TokenCppKind_Extern}, -{4, TokenCppKind_Long}, +{0, 0}, +{0, 0}, +{4, TokenCppKind_Char}, +{0, 0}, +{0, 0}, {4, TokenCppKind_Register}, -{4, TokenCppKind_While}, {0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Inline}, -{4, TokenCppKind_New}, -{4, TokenCppKind_Float}, -{4, TokenCppKind_Bool}, -{0, 0}, -{4, TokenCppKind_ConstCast}, -{0, 0}, -{4, TokenCppKind_Operator}, -{0, 0}, -{4, TokenCppKind_ReinterpretCast}, -{4, TokenCppKind_Explicit}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Struct}, -{4, TokenCppKind_NullPtr}, -{4, TokenCppKind_Export}, -{4, TokenCppKind_Static}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Friend}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Continue}, {4, TokenCppKind_Using}, -{4, TokenCppKind_DeclType}, -{4, TokenCppKind_Unsigned}, {0, 0}, -{4, TokenCppKind_Short}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Typename}, -{4, TokenCppKind_Union}, -{4, TokenCppKind_NoExcept}, -{4, TokenCppKind_Private}, +{4, TokenCppKind_Extern}, +{4, TokenCppKind_Else}, +{8, TokenCppKind_LiteralTrue}, {0, 0}, {0, 0}, {0, 0}, -{4, TokenCppKind_Void}, +{4, TokenCppKind_Return}, {0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_TypeID}, -{4, TokenCppKind_Namespace}, +{4, TokenCppKind_Default}, +{4, TokenCppKind_StaticCast}, }; -i32 cpp_main_keys_slot_count = 124; -u64 cpp_main_keys_seed = 0x8546da5e0b8a4494; +i32 cpp_main_keys_slot_count = 121; +u64 cpp_main_keys_seed = 0xbe799f2fde8371d5; u64 cpp_pp_directives_hash_array[25] = { -0xa9c93e3b092cb44d,0x0000000000000000,0x0dd88216be8f0f45,0x0000000000000000, -0x0dd88216bc8af78d,0x92a889595c683c55,0xdab9e300145b906f,0x92a889577e972a4b, -0x0000000000000000,0x0dd88216bb8053ff,0x0000000000000000,0x0dd88216bd573601, -0x0000000000000000,0xdab9e300142a071d,0x0000000000000000,0xa9c93ef34054fce1, -0x0dd88216a4783a45,0xdab9e300145b9a25,0x92a889595b4a2105,0x0000000000000000, -0x86d1d427e10cd86d,0x0000000000000000,0x92a889590753d01d,0x0000000000000000, -0x0000000000000000, +0x0000000000000000,0x7374aea13484b05f,0x0000000000000000,0x13df0688ba346a0b, +0x13df0688baa01c5b,0x0000000000000000,0x7608ddc2856c80e7,0x7608ddb7913d492b, +0xa00a5f761251a671,0x7374abedc5e7bf23,0x0000000000000000,0x7608ddb7b08326a7, +0x0000000000000000,0x0000000000000000,0x13df0688bc2f3331,0x0000000000000000, +0x7608ddc8a5840d1d,0x13df068884fd102b,0x0000000000000000,0xc7e053324abe568b, +0xa00a5f761208b767,0x0000000000000000,0x0000000000000000,0xa00a5f761251cfeb, +0x13df0688bc39ad2b, }; -u8 cpp_pp_directives_key_array_0[] = {0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,}; -u8 cpp_pp_directives_key_array_2[] = {0x69,0x66,0x64,0x65,0x66,}; -u8 cpp_pp_directives_key_array_4[] = {0x65,0x6e,0x64,0x69,0x66,}; -u8 cpp_pp_directives_key_array_5[] = {0x69,0x66,0x6e,0x64,0x65,0x66,}; -u8 cpp_pp_directives_key_array_6[] = {0x65,0x6c,0x73,0x65,}; -u8 cpp_pp_directives_key_array_7[] = {0x70,0x72,0x61,0x67,0x6d,0x61,}; -u8 cpp_pp_directives_key_array_9[] = {0x75,0x73,0x69,0x6e,0x67,}; -u8 cpp_pp_directives_key_array_11[] = {0x65,0x72,0x72,0x6f,0x72,}; -u8 cpp_pp_directives_key_array_13[] = {0x6c,0x69,0x6e,0x65,}; -u8 cpp_pp_directives_key_array_15[] = {0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,}; -u8 cpp_pp_directives_key_array_16[] = {0x75,0x6e,0x64,0x65,0x66,}; -u8 cpp_pp_directives_key_array_17[] = {0x65,0x6c,0x69,0x66,}; -u8 cpp_pp_directives_key_array_18[] = {0x69,0x6d,0x70,0x6f,0x72,0x74,}; -u8 cpp_pp_directives_key_array_20[] = {0x69,0x66,}; -u8 cpp_pp_directives_key_array_22[] = {0x64,0x65,0x66,0x69,0x6e,0x65,}; +u8 cpp_pp_directives_key_array_1[] = {0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,}; +u8 cpp_pp_directives_key_array_3[] = {0x65,0x6e,0x64,0x69,0x66,}; +u8 cpp_pp_directives_key_array_4[] = {0x65,0x72,0x72,0x6f,0x72,}; +u8 cpp_pp_directives_key_array_6[] = {0x64,0x65,0x66,0x69,0x6e,0x65,}; +u8 cpp_pp_directives_key_array_7[] = {0x69,0x66,0x6e,0x64,0x65,0x66,}; +u8 cpp_pp_directives_key_array_8[] = {0x65,0x6c,0x73,0x65,}; +u8 cpp_pp_directives_key_array_9[] = {0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,}; +u8 cpp_pp_directives_key_array_11[] = {0x69,0x6d,0x70,0x6f,0x72,0x74,}; +u8 cpp_pp_directives_key_array_14[] = {0x75,0x73,0x69,0x6e,0x67,}; +u8 cpp_pp_directives_key_array_16[] = {0x70,0x72,0x61,0x67,0x6d,0x61,}; +u8 cpp_pp_directives_key_array_17[] = {0x69,0x66,0x64,0x65,0x66,}; +u8 cpp_pp_directives_key_array_19[] = {0x69,0x66,}; +u8 cpp_pp_directives_key_array_20[] = {0x6c,0x69,0x6e,0x65,}; +u8 cpp_pp_directives_key_array_23[] = {0x65,0x6c,0x69,0x66,}; +u8 cpp_pp_directives_key_array_24[] = {0x75,0x6e,0x64,0x65,0x66,}; String_Const_u8 cpp_pp_directives_key_array[25] = { -{cpp_pp_directives_key_array_0, 7}, {0, 0}, -{cpp_pp_directives_key_array_2, 5}, +{cpp_pp_directives_key_array_1, 7}, {0, 0}, +{cpp_pp_directives_key_array_3, 5}, {cpp_pp_directives_key_array_4, 5}, -{cpp_pp_directives_key_array_5, 6}, -{cpp_pp_directives_key_array_6, 4}, +{0, 0}, +{cpp_pp_directives_key_array_6, 6}, {cpp_pp_directives_key_array_7, 6}, +{cpp_pp_directives_key_array_8, 4}, +{cpp_pp_directives_key_array_9, 7}, {0, 0}, -{cpp_pp_directives_key_array_9, 5}, -{0, 0}, -{cpp_pp_directives_key_array_11, 5}, -{0, 0}, -{cpp_pp_directives_key_array_13, 4}, -{0, 0}, -{cpp_pp_directives_key_array_15, 7}, -{cpp_pp_directives_key_array_16, 5}, -{cpp_pp_directives_key_array_17, 4}, -{cpp_pp_directives_key_array_18, 6}, -{0, 0}, -{cpp_pp_directives_key_array_20, 2}, -{0, 0}, -{cpp_pp_directives_key_array_22, 6}, +{cpp_pp_directives_key_array_11, 6}, {0, 0}, {0, 0}, +{cpp_pp_directives_key_array_14, 5}, +{0, 0}, +{cpp_pp_directives_key_array_16, 6}, +{cpp_pp_directives_key_array_17, 5}, +{0, 0}, +{cpp_pp_directives_key_array_19, 2}, +{cpp_pp_directives_key_array_20, 4}, +{0, 0}, +{0, 0}, +{cpp_pp_directives_key_array_23, 4}, +{cpp_pp_directives_key_array_24, 5}, }; Lexeme_Table_Value cpp_pp_directives_value_array[25] = { -{5, TokenCppKind_PPVersion}, {0, 0}, -{5, TokenCppKind_PPIfDef}, +{5, TokenCppKind_PPInclude}, {0, 0}, {5, TokenCppKind_PPEndIf}, +{5, TokenCppKind_PPError}, +{0, 0}, +{5, TokenCppKind_PPDefine}, {5, TokenCppKind_PPIfNDef}, {5, TokenCppKind_PPElse}, -{5, TokenCppKind_PPPragma}, +{5, TokenCppKind_PPVersion}, +{0, 0}, +{5, TokenCppKind_PPImport}, +{0, 0}, {0, 0}, {5, TokenCppKind_PPUsing}, {0, 0}, -{5, TokenCppKind_PPError}, -{0, 0}, -{5, TokenCppKind_PPLine}, -{0, 0}, -{5, TokenCppKind_PPInclude}, -{5, TokenCppKind_PPUndef}, -{5, TokenCppKind_PPElIf}, -{5, TokenCppKind_PPImport}, +{5, TokenCppKind_PPPragma}, +{5, TokenCppKind_PPIfDef}, {0, 0}, {5, TokenCppKind_PPIf}, -{0, 0}, -{5, TokenCppKind_PPDefine}, +{5, TokenCppKind_PPLine}, {0, 0}, {0, 0}, +{5, TokenCppKind_PPElIf}, +{5, TokenCppKind_PPUndef}, }; i32 cpp_pp_directives_slot_count = 25; -u64 cpp_pp_directives_seed = 0x6e8a1011f7d8dd90; +u64 cpp_pp_directives_seed = 0xd17159c86f8daa32; u64 cpp_pp_keys_hash_array[2] = { -0x56dd32803fcaa4ab,0x0000000000000000, +0x0000000000000000,0x11c2628dcdcd8d85, }; -u8 cpp_pp_keys_key_array_0[] = {0x64,0x65,0x66,0x69,0x6e,0x65,0x64,}; +u8 cpp_pp_keys_key_array_1[] = {0x64,0x65,0x66,0x69,0x6e,0x65,0x64,}; String_Const_u8 cpp_pp_keys_key_array[2] = { -{cpp_pp_keys_key_array_0, 7}, {0, 0}, +{cpp_pp_keys_key_array_1, 7}, }; Lexeme_Table_Value cpp_pp_keys_value_array[2] = { -{4, TokenCppKind_PPDefined}, {0, 0}, +{4, TokenCppKind_PPDefined}, }; i32 cpp_pp_keys_slot_count = 2; -u64 cpp_pp_keys_seed = 0xbb7907ea1860ef2c; +u64 cpp_pp_keys_seed = 0x965fd683eb991685; struct Lex_State_Cpp{ u32 flags_ZF0; u32 flags_KF0; @@ -560,10 +554,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -643,10 +637,10 @@ token.kind = 13; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -665,10 +659,10 @@ token.kind = 14; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -697,10 +691,10 @@ token.kind = 15; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -750,10 +744,10 @@ token.kind = 15; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -791,10 +785,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -830,10 +824,10 @@ token.kind = 13; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -857,10 +851,10 @@ token.kind = 14; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -879,10 +873,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -907,10 +901,10 @@ token.kind = 11; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -934,10 +928,10 @@ token.kind = 12; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -956,10 +950,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1038,10 +1032,10 @@ token.kind = 6; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1088,10 +1082,10 @@ token.kind = 1; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1151,10 +1145,10 @@ token.kind = 10; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1196,10 +1190,10 @@ token.kind = 1; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1218,10 +1212,10 @@ token.kind = 1; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1263,10 +1257,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1285,10 +1279,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1341,10 +1335,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1373,10 +1367,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1418,10 +1412,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1494,10 +1488,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1577,10 +1571,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1610,10 +1604,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1632,10 +1626,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1677,10 +1671,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1710,10 +1704,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1732,10 +1726,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1777,10 +1771,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1805,10 +1799,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1827,10 +1821,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1872,10 +1866,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1900,10 +1894,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1922,10 +1916,10 @@ token.kind = 9; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -1967,10 +1961,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2020,10 +2014,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2088,10 +2082,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2175,10 +2169,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2250,10 +2244,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2287,10 +2281,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2352,10 +2346,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2384,10 +2378,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2449,10 +2443,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2481,10 +2475,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2551,10 +2545,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2583,10 +2577,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2648,10 +2642,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2680,10 +2674,10 @@ token.kind = 8; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2725,10 +2719,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2824,10 +2818,10 @@ state.flags_KF0 |= 0x2; } token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2882,10 +2876,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2918,10 +2912,10 @@ token.kind = 10; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2963,10 +2957,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -2999,10 +2993,10 @@ token.kind = 10; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3171,10 +3165,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3214,10 +3208,10 @@ token.kind = 10; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3260,10 +3254,10 @@ token.kind = 10; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3637,10 +3631,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3768,10 +3762,10 @@ token.kind = 10; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3895,10 +3889,10 @@ token.kind = 3; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3945,10 +3939,10 @@ token.kind = 3; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -3990,10 +3984,10 @@ token.kind = 15; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4012,10 +4006,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4057,10 +4051,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4079,10 +4073,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4101,10 +4095,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4146,10 +4140,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4168,10 +4162,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4190,10 +4184,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4240,10 +4234,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4262,10 +4256,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4307,10 +4301,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4362,10 +4356,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4384,10 +4378,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4434,10 +4428,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4456,10 +4450,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4501,10 +4495,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4523,10 +4517,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4568,10 +4562,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4590,10 +4584,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4635,10 +4629,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4657,10 +4651,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4702,10 +4696,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4724,10 +4718,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4769,10 +4763,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4791,10 +4785,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4836,10 +4830,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4858,10 +4852,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4903,10 +4897,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4925,10 +4919,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4970,10 +4964,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -4992,10 +4986,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -5037,10 +5031,10 @@ token.kind = 15; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -5059,10 +5053,10 @@ token.kind = 15; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -5104,10 +5098,10 @@ token.kind = 2; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root @@ -5126,10 +5120,10 @@ token.kind = 7; }while(0); token_list_push(arena, list, &token); emit_counter += 1; +state.emit_ptr = state.ptr; if (emit_counter == max){ goto end; } -state.emit_ptr = state.ptr; } state.flags_ZF0 = 0; goto state_label_1; // root diff --git a/custom/lexer_generator/4coder_lex_gen_main.cpp b/custom/lexer_generator/4coder_lex_gen_main.cpp index ec02a67b..086715b2 100644 --- a/custom/lexer_generator/4coder_lex_gen_main.cpp +++ b/custom/lexer_generator/4coder_lex_gen_main.cpp @@ -3531,12 +3531,12 @@ gen_SLOW_action_list__cont_flow(Arena *scratch, Token_Kind_Set tokens, Flag_Set fprintf(out, "token_list_push(arena, list, &token);\n"); fprintf(out, "emit_counter += 1;\n"); + fprintf(out, "state.emit_ptr = state.ptr;\n"); if (context != ActionContext_EndOfFile){ fprintf(out, "if (emit_counter == max){\n"); fprintf(out, "goto end;\n"); fprintf(out, "}\n"); } - fprintf(out, "state.emit_ptr = state.ptr;\n"); fprintf(out, "}\n"); }break; }