Commit graph

17 commits

Author SHA1 Message Date
Sven M. Hallberg
9585a5946e use lookahead stream directly for LR (terminal) lookup 2013-06-21 23:22:07 +02:00
Sven M. Hallberg
853e1fba46 split LR table representation by key type (terminals/nonterminals) 2013-06-21 22:55:04 +02:00
Sven M. Hallberg
5a57adabab some refactoring trying to get h_many to work 2013-06-15 20:30:57 +02:00
Sven M. Hallberg
fd297b636c add LALR conflict resolution (untested) 2013-06-13 14:45:26 +02:00
Sven M. Hallberg
f041775bb9 declare h_cfgrammar_new in cfgrammar.h 2013-06-07 22:38:26 +02:00
Sven M. Hallberg
373a7aef94 make h_pprint_char from cfgrammar public so LR pretty printers can use it 2013-06-07 16:29:14 +02:00
Sven M. Hallberg
dba9d41eda rename HCFStringMap to HStringMap 2013-06-04 21:47:09 +02:00
Sven M. Hallberg
c6d3bc7fd5 let h_stringmap_get_char return the proper type 2013-05-24 04:32:14 +02:00
Sven M. Hallberg
428636f3d0 h_predict for k>1, more debugging 2013-05-24 01:31:56 +02:00
Sven M. Hallberg
748845ca0c add API for pretty-printing for grammar symbols and symbol sequences 2013-05-23 23:35:10 +02:00
Sven M. Hallberg
5e3c681dbc generalize most of llk.c to arbitrary k (ex. h_predict) - still bugged 2013-05-23 21:01:37 +02:00
Sven M. Hallberg
9112452709 fix incorrect usage of h_stringset_put_char in stringset_extend 2013-05-23 14:19:37 +02:00
Sven M. Hallberg
2c8d76d7ea refactor and bughunt unsuccessfully trying to find out why
h_first(2, ...) won't give me length-2 strings
2013-05-22 22:45:25 +02:00
Sven M. Hallberg
f5d5c36756 generalize grammar analysis to k>1 2013-05-22 20:38:36 +02:00
Sven M. Hallberg
d081cf4284 reshape bits parsers 2013-05-14 17:20:05 +02:00
Sven M. Hallberg
9f5c32e205 add h_cfgrammar_free() 2013-05-08 18:02:35 +02:00
Sven M. Hallberg
188d369a9b move grammar analysis stuff to its own files 2013-05-07 23:56:47 +02:00