Sven M. Hallberg
ff55937e00
split out h_pprint_lr_info for debugging purposes
2015-09-16 23:42:18 +02:00
Sven M. Hallberg
fb5122ec88
fix result bit_length for LR backends
2015-09-07 15:37:26 +02:00
Dan Hirsch
69e84bcbb0
Added a void* user_data pointer to HPredicate
2013-11-23 13:01:55 -06:00
Dan Hirsch
e487d5435c
Added a void* user_data pointer to HAction
2013-11-23 12:53:11 -06:00
Peter Johnson
c8fc061ea6
Ditch longs and long longs in favor of stdint.h types, which has cascading
...
effects throughout, including use of inttypes.h/PRI[ud]64 because printf() is
still stuck in a long world, conversion of %lu to %zu for printing values of
type size_t, and changing/renaming the g_check_cmp* family of functions.
2013-11-15 00:12:57 -05:00
Sven M. Hallberg
67681a119a
finish engine merging
2013-06-22 17:40:47 +02:00
Sven M. Hallberg
23afea4b4e
add demerge code path (untested)
2013-06-22 14:21:19 +02:00
Sven M. Hallberg
bf9c9b5f7a
refactoring in preparation for engine merging
2013-06-22 12:51:25 +02:00
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
534a29b7ba
split h_lr_lookup into two (yet identical) functions
2013-06-21 20:21:40 +02:00
Sven M. Hallberg
c32cf709b2
eliminate the right stack; work with the HInputStream directly
2013-06-21 20:11:19 +02:00
Sven M. Hallberg
ec88580b22
make h_lrengine_step a void function again
2013-06-21 18:46:16 +02:00
Sven M. Hallberg
bf3e3c162e
don't even touch the right stack on piggy-back shifts
2013-06-21 15:31:37 +02:00
Sven M. Hallberg
7cd143c0c4
piggy-back the next shift directly onto the reduce
2013-06-21 15:06:31 +02:00
Sven M. Hallberg
bbbaf1634c
add an assertion checking that HLR_REDUCE is always followed by HLR_SHIFT
2013-06-21 15:00:04 +02:00
Sven M. Hallberg
b1e8e29774
add engine forking
2013-06-20 11:05:57 +02:00
Sven M. Hallberg
4f36fcd2c1
avoid duplicate conflict branches
2013-06-19 18:51:16 +02:00
Sven M. Hallberg
ecfc0a8e62
fix conflict pretty-printing
2013-06-19 18:21:53 +02:00
Sven M. Hallberg
54ba62bfb7
record conflicts in a special HLRAction type
2013-06-19 17:01:13 +02:00
Sven M. Hallberg
168760b10a
return running state from h_lrengine_step
2013-06-19 14:16:34 +02:00
Sven M. Hallberg
409d33c916
split out h_lrengine_action()
2013-06-19 14:09:39 +02:00
Sven M. Hallberg
129d50c0ef
split LR code into lr.c, lr0.c, and lalr.c
2013-06-17 20:08:25 +02:00