Commit graph

  • 23b2be3025 Remove dladdr (Merge branch 'master' of https://github.com/thequux/hammer) Meredith L. Patterson 2013-05-23 17:56:36 -07:00
  • c1b7d9307d On second thought, let's not use dladdr. It's a silly extension. Dan Hirsch 2013-05-24 02:56:14 +02:00
  • 6cc6e7b572 Merge tq's regex backend fixes (branch 'master' of https://github.com/thequux/hammer) Meredith L. Patterson 2013-05-23 17:51:56 -07:00
  • de38f7bce8 Got more regex tests passing Dan Hirsch 2013-05-24 02:50:05 +02:00
  • 8da48913b1 don't extend table entries that are already unambiguous Sven M. Hallberg 2013-05-24 01:49:39 +02:00
  • 428636f3d0 h_predict for k>1, more debugging Sven M. Hallberg 2013-05-24 01:31:56 +02:00
  • 748845ca0c add API for pretty-printing for grammar symbols and symbol sequences Sven M. Hallberg 2013-05-23 23:35:10 +02:00
  • 0600440b7c Got a lot of regex test cases working Dan Hirsch 2013-05-23 23:26:22 +02:00
  • f6983a5041 debug table generation Sven M. Hallberg 2013-05-23 23:25:32 +02:00
  • 4c5ca5ceab clean up a bit Sven M. Hallberg 2013-05-23 22:54:49 +02:00
  • faebe355a8 fix h_stringmap_replace for the all-values case Sven M. Hallberg 2013-05-23 22:53:45 +02:00
  • e5ee61029c herp-a-derp, that wasn't actually done - still bugged, though Sven M. Hallberg 2013-05-23 22:19:13 +02:00
  • 5e3c681dbc generalize most of llk.c to arbitrary k (ex. h_predict) - still bugged Sven M. Hallberg 2013-05-23 21:01:37 +02:00
  • 3ff32e86e4 make dummy example require LL(2) Sven M. Hallberg 2013-05-23 14:42:43 +02:00
  • d789d90017 fix comma-separation some more in h_pprint_stringset Sven M. Hallberg 2013-05-23 14:42:16 +02:00
  • 9112452709 fix incorrect usage of h_stringset_put_char in stringset_extend Sven M. Hallberg 2013-05-23 14:19:37 +02:00
  • 859f7e3990 Merge branch 'master' of github.com:abiggerhammer/hammer into LL Sven M. Hallberg 2013-05-23 12:40:30 +02:00
  • f37a13ef41 Fixed the 'unknown HCF_CHOICE' problem with indirect; test_leftrec is not an LL(k) test Meredith L. Patterson 2013-05-23 03:38:22 -07:00
  • 0b98b19ef0 Merge remote-tracking branch 'mlp/master' into LL Sven M. Hallberg 2013-05-23 11:58:05 +02:00
  • 7a681faeeb remove a dead line Sven M. Hallberg 2013-05-23 11:57:46 +02:00
  • 3978266651 further merging of pesco's and aegis' changes Meredith L. Patterson 2013-05-23 02:16:52 -07:00
  • 1c7e9947a4 merging in aegis' JNI bindings Meredith L. Patterson 2013-05-23 00:58:27 -07:00
  • 570c798be7 Regex tests too. Only int_range() and nothing() work. Meredith L. Patterson 2013-05-23 00:16:08 -07:00
  • 22b0471050 Only LL(k)'s many() and many1(), and benchmark 1, are failing. Meredith L. Patterson 2013-05-23 00:12:47 -07:00
  • 10584ba22a Refactor for separate tests for packrat and LL(k). Meredith L. Patterson 2013-05-22 23:50:48 -07:00
  • 2c8d76d7ea refactor and bughunt unsuccessfully trying to find out why h_first(2, ...) won't give me length-2 strings Sven M. Hallberg 2013-05-22 22:45:25 +02:00
  • 289c57aef5 h_stringmap_update wasn't merging results correctly Sven M. Hallberg 2013-05-22 21:58:34 +02:00
  • e4d0b636dd add h_hashtable_merge function Sven M. Hallberg 2013-05-22 21:57:46 +02:00
  • 194ddee90b generalize grammar data structure allocation to k>1 Sven M. Hallberg 2013-05-22 21:10:47 +02:00
  • 46525ede2d remove some left-over dead code that I think is bullshit Sven M. Hallberg 2013-05-22 20:51:23 +02:00
  • 475d0ea9f3 comma-separate properly in h_pprint_stringset Sven M. Hallberg 2013-05-22 20:49:05 +02:00
  • f5d5c36756 generalize grammar analysis to k>1 Sven M. Hallberg 2013-05-22 20:38:36 +02:00
  • 337cbc2695 ugh, forgot to commit actions.c! Sven M. Hallberg 2013-05-22 12:20:44 +02:00
  • 3d3bd39d36 add Session.vim to gitignore Sven M. Hallberg 2013-05-22 12:20:22 +02:00
  • 91c04314a4 refactor h_llk_lookup to take the input stream as argument Sven M. Hallberg 2013-05-20 21:28:16 +02:00
  • fb3aae7aec fix free of previous backend data Sven M. Hallberg 2013-05-20 17:10:38 +02:00
  • 1afef6c3d2 reshape for h_attr_bool Sven M. Hallberg 2013-05-20 16:59:38 +02:00
  • f48903d85e reshape for h_ignore Sven M. Hallberg 2013-05-20 16:31:37 +02:00
  • a42d97f053 fix desugar_optional Sven M. Hallberg 2013-05-20 16:25:42 +02:00
  • 3be766b741 reshape for h_epsilon Sven M. Hallberg 2013-05-20 16:25:02 +02:00
  • e03513b59a reshape for h_sequence Sven M. Hallberg 2013-05-20 15:32:15 +02:00
  • e5300e2836 roll the positive cases for int16, int32 back into the existing test Sven M. Hallberg 2013-05-20 15:26:14 +02:00
  • 482851b3e2 reshape for h_action and h_choice Sven M. Hallberg 2013-05-20 15:24:19 +02:00
  • 29cee318f9 move the h_act_* functions to src/actions.c Sven M. Hallberg 2013-05-20 14:58:20 +02:00
  • 31256ba867 reshape for h_left and friends Sven M. Hallberg 2013-05-20 14:44:18 +02:00
  • 8976238bcc Switched sequence and choice in JNI to varargs aegis 2013-05-16 11:32:37 +02:00
  • 745aaebe02 fix desugaring of h_whitespace and add reshape action Sven M. Hallberg 2013-05-14 18:29:18 +02:00
  • d081cf4284 reshape bits parsers Sven M. Hallberg 2013-05-14 17:20:05 +02:00
  • c794be5b6f consider HCF_CHARSET terminal symbols (as the LL driver already treats them) Sven M. Hallberg 2013-05-14 16:15:58 +02:00
  • efae603c6b fix an off-by-one alloc error in desugar_bits Sven M. Hallberg 2013-05-14 16:12:09 +02:00
  • 4138506273 unwrap (reshape) singleton terminal symbols correctly Sven M. Hallberg 2013-05-14 14:14:31 +02:00
  • 010d957fe8 add token reshaper Sven M. Hallberg 2013-05-14 12:14:45 +02:00
  • 1fac551429 add reshapers to 'many' parsers (makes the benchmark run with llk!) Sven M. Hallberg 2013-05-14 11:55:30 +02:00
  • 623fd6b030 add "reshape" action to HCFChoice Sven M. Hallberg 2013-05-14 11:54:43 +02:00
  • 0431528065 detect parse error in llk dummy test Sven M. Hallberg 2013-05-14 11:51:54 +02:00
  • b488e5485f always put end_token in the start symbol's follow set Sven M. Hallberg 2013-05-12 16:51:35 +02:00
  • f33390a510 fix memory issues in benchmark.c Sven M. Hallberg 2013-05-12 01:27:19 +02:00
  • fa1e59fe68 Revert "don't touch parser->backend in benchmark.c" Sven M. Hallberg 2013-05-12 01:18:46 +02:00
  • 75326263df silence a warning when compiling with NDEBUG Sven M. Hallberg 2013-05-12 00:20:42 +02:00
  • 1c8764e1da minor cosmetics Sven M. Hallberg 2013-05-12 00:20:27 +02:00
  • fdcfc243b8 formatting Sven M. Hallberg 2013-05-11 23:41:47 +02:00
  • d81d820dca don't touch parser->backend in benchmark.c Sven M. Hallberg 2013-05-11 22:24:49 +02:00
  • f1810d8be6 make h_llktable_free a no-op on NULL, just to be safe Sven M. Hallberg 2013-05-11 22:22:02 +02:00
  • 31c5189974 call previous backend's free function in h_compile Sven M. Hallberg 2013-05-11 22:21:30 +02:00
  • 1fe6b2ade9 add h_packrat_free Sven M. Hallberg 2013-05-11 22:19:36 +02:00
  • 286458f58a parser->data got renamed to backend_data, also h_llk_free Sven M. Hallberg 2013-05-11 22:02:59 +02:00
  • a1105d413a make h_parse_result_free a no-op on NULL Sven M. Hallberg 2013-05-11 21:45:02 +02:00
  • 207fc6adef fix (I think?) the test case failure detection login in benchmark.c Sven M. Hallberg 2013-05-11 21:44:01 +02:00
  • 62d48d2f5a derp, forgot that table lookup can fail Sven M. Hallberg 2013-05-11 21:41:53 +02:00
  • ccdb0fa85c eliminate duplication of result handling code in LL driver Sven M. Hallberg 2013-05-11 20:40:33 +02:00
  • 88261f69ba derp, forgot to save original nonterminal in stack frame Sven M. Hallberg 2013-05-11 19:26:22 +02:00
  • b6aab591ea add compile and parse steps to the llk dummy test (segfaults on parse) Sven M. Hallberg 2013-05-11 19:06:23 +02:00
  • c64a4e435e Merge remote-tracking branch 'tq/master' into LL such that it compiles Sven M. Hallberg 2013-05-11 19:04:59 +02:00
  • b63980f137 add LL(1) driver Sven M. Hallberg 2013-05-11 15:14:10 +02:00
  • 369dbcd21f actually, just cast off the const inside h_compile Sven M. Hallberg 2013-05-11 15:10:31 +02:00
  • 62501e5447 Updated gitignore for JNI aegis 2013-05-10 14:55:28 +02:00
  • 106b8bb6a7 JNI ready for testing. -fPIC enabled for objects in src and jni. aegis 2013-05-10 12:05:20 +02:00
  • ebcfa86911 finish (untested) LL(1) table generation Sven M. Hallberg 2013-05-08 18:49:05 +02:00
  • 52f81045fc start filling in h_ll_compile() Sven M. Hallberg 2013-05-08 18:04:08 +02:00
  • 9f5c32e205 add h_cfgrammar_free() Sven M. Hallberg 2013-05-08 18:02:35 +02:00
  • 65ee3593bd compile function can't take a const parser Sven M. Hallberg 2013-05-08 18:01:55 +02:00
  • af4971b265 add proper parse table type and lookup function Sven M. Hallberg 2013-05-08 17:04:19 +02:00
  • 1631e9c08f constify read-only hashtable methods Sven M. Hallberg 2013-05-08 17:01:23 +02:00
  • f00060b2bd add (untested) predict set computation Sven M. Hallberg 2013-05-08 16:12:34 +02:00
  • 2943cfdfdd quick fix to improve "hashing" of pointers (discard 4 least significant bits) Sven M. Hallberg 2013-05-08 16:07:51 +02:00
  • 66b0ed7bf1 move h_eq_ptr and h_hash_ptr into datastructures.c / internal.h Sven M. Hallberg 2013-05-08 15:54:29 +02:00
  • 5593b826e3 add scaffold for grammar tests and codify the dummy test case Sven M. Hallberg 2013-05-08 00:48:46 +02:00
  • 188d369a9b move grammar analysis stuff to its own files Sven M. Hallberg 2013-05-07 23:56:47 +02:00
  • dab5159550 rename h_grammar to h_cfgrammar Sven M. Hallberg 2013-05-07 23:37:02 +02:00
  • e31e03927a don't output extraneous comma in symbol sets Sven M. Hallberg 2013-05-07 18:51:42 +02:00
  • 16f933013a represent input tokens in a way that doesn't clash with NULL Sven M. Hallberg 2013-05-07 18:47:32 +02:00
  • e504c6fc36 add dummy test function Sven M. Hallberg 2013-05-05 22:15:40 +02:00
  • d0eb2ce891 add pretty printers for symbol and token sets Sven M. Hallberg 2013-05-05 22:14:21 +02:00
  • cd4ce77bec fix derpy bugs in grammar analysis Sven M. Hallberg 2013-05-05 22:13:50 +02:00
  • b28d82bdeb h_hashtable_put generated double entries if the match was last in list Sven M. Hallberg 2013-05-05 22:12:05 +02:00
  • 5dee5fec6c add grammar pretty printer Sven M. Hallberg 2013-05-05 19:34:12 +02:00
  • 2f81c2b400 fix hashtable iteration in h_hashtable_update Sven M. Hallberg 2013-05-05 19:32:23 +02:00
  • 916027a55f take the const off static epsilon parser so h_desugar can memoize Sven M. Hallberg 2013-05-05 19:31:37 +02:00
  • c26d5c114a totally forgot to record the start symbol of the grammar Sven M. Hallberg 2013-05-05 11:17:57 +02:00
  • 2ce5d1129c forgot to initialize g->follow Sven M. Hallberg 2013-04-30 21:55:44 +02:00