Commit graph

1254 commits

Author SHA1 Message Date
Meredith L. Patterson
9dbd2debda fix --coverage build option; building with it now creates .gcda files that gcov can use 2015-10-04 00:03:24 +02:00
Meredith L. Patterson
755b771ee2 more thorough comments 2015-10-03 22:26:40 +02:00
Meredith L. Patterson
969d768205 Don't cache dummy results for primitive parsers. 2015-10-03 17:54:11 +02:00
TQ Hirsch
65dcf8d0d6 Merge pull request #151 from abiggerhammer/master
add platform.h to distribution headers
2015-10-03 16:47:43 +02:00
Meredith L. Patterson
578ac05154 add platform.h to distribution headers 2015-10-03 14:32:54 +02:00
Sven M. Hallberg
89e675bd2a Merge remote-tracking branch 'upstream/master' into fix-wrong_bit_length 2015-09-26 18:09:58 +02:00
Meredith L. Patterson
fea3a69d4b Merge pull request #149 from pesco/fix-charset_bits
Allocate 256 bits, not 256 bytes, for a charset
2015-09-26 17:45:41 +02:00
Meredith L. Patterson
9c89b999a1 Merge pull request #148 from pesco/fix-charset_conflicts
Fix charset conflicts
2015-09-26 17:44:36 +02:00
Sven M. Hallberg
cbae05b614 Merge remote-tracking branch 'upstream/master' into fix-wrong_bit_length 2015-09-25 19:19:16 +02:00
Sven M. Hallberg
f3011f8263 allocate 256 bits, not 256 bytes, for a charset 2015-09-25 16:48:32 +02:00
Sven M. Hallberg
c770fbab1b add regression test for charset over-allocation 2015-09-25 16:47:07 +02:00
Sven M. Hallberg
df179eba43 fix conflict resolution with charset productions 2015-09-25 01:28:52 +02:00
Sven M. Hallberg
c9de11c883 Merge branch 'master' of git://github.com/UpstandingHackers/hammer into iterative 2015-09-24 16:36:53 +02:00
Sven M. Hallberg
520884739c cosmetic changes 2015-09-24 16:33:13 +02:00
Meredith L. Patterson
690985dddd Merge pull request #147 from pesco/iterative
Report correct token position from LR backends
2015-09-24 16:31:11 +02:00
Sven M. Hallberg
65dbcf56fc make sure LALR doesn't confuse terminal symbols in the enhanced grammar 2015-09-24 16:29:56 +02:00
Sven M. Hallberg
96503ac497 Merge remote-tracking branch 'upstream/master' into iterative 2015-09-24 16:12:32 +02:00
Sven M. Hallberg
d70e720073 Merge remote-tracking branch 'upstream/master' into fix-wrong_bit_length 2015-09-24 13:52:30 +02:00
Meredith L. Patterson
cb93c3b4ec Merge pull request #141 from pesco/iterative
Iterative (chunked) input processing
2015-09-23 10:52:22 +02:00
Meredith L. Patterson
8d631d0724 Merge pull request #146 from uucidl/master
Remove now unneeded workaround
2015-09-22 15:44:08 +02:00
Nicolas Léveillé
a02045b44e Remove now unneeded workaround
The workaround would now cause build failures in Appveyor as seem to
have pre-emptively applied it to their environments.

I'm not too happy about their handling of the issue. Seems fiddly.

Anyway this commit is now required to build on Appveyor.
2015-09-22 10:16:53 +02:00
Meredith L. Patterson
cfeb740a75 Merge pull request #145 from uucidl/master
Add workaround for VS2015 so that appveyor works
2015-09-20 19:47:16 +02:00
Nicolas Léveillé
e0a41a85fc Add workaround for VS2015 so that appveyor works
It seems Appveyor's images have been changed. The builds could not
find standard library headers anymore.

It seems to be an interaction between MS' scripts and the Windows
Driver Kit that is installed there.

One way to disable this interaction is to rename the `wdf` folder to
some other name.

See:
- http://stackoverflow.com/questions/31862627/vs2015-cl-cant-find-crt-libs-stido-h-ctype-h-etc-when-building-on-command-l
- http://help.appveyor.com/discussions/problems/3062-problem-with-new-updates-visual-studio-2015-and-cmake
- https://github.com/appveyor/ci/issues/414
2015-09-20 17:16:43 +02:00
Meredith L. Patterson
87aa543739 Merge pull request #144 from pesco/fix-lalr_bugs
Fix two context-free backend bugs
2015-09-18 01:00:14 +02:00
Sven M. Hallberg
09db791089 Merge branch 'fix-lalr_bugs' into iterative 2015-09-17 16:40:13 +02:00
Sven M. Hallberg
9edef88bbc fix a formatting error in h_pprint_stringmap 2015-09-17 16:39:22 +02:00
Sven M. Hallberg
a4179fca02 note why token position is not set correctly by LL(k) right now 2015-09-17 00:33:14 +02:00
Sven M. Hallberg
6094deda96 report correct token position from LR backends 2015-09-17 00:19:22 +02:00
Sven M. Hallberg
caf00006f3 add iterative API to LALR backend 2015-09-16 23:43:30 +02:00
Sven M. Hallberg
ff55937e00 split out h_pprint_lr_info for debugging purposes 2015-09-16 23:42:18 +02:00
Sven M. Hallberg
42d35fb883 move chunk position into HInputStream and simplify internal chunk API 2015-09-16 23:25:36 +02:00
Sven M. Hallberg
e385e0e5de Merge branch 'fix-lalr_bugs' into iterative 2015-09-16 22:21:53 +02:00
Sven M. Hallberg
cdd1289936 fix printing of "negative" byte values 2015-09-16 22:17:31 +02:00
Sven M. Hallberg
7319c48e59 fix reshape for h_many 2015-09-16 20:06:24 +02:00
Sven M. Hallberg
db95cda229 add regression test for wrong nesting of h_many/h_sequence results with CFG backends 2015-09-16 20:06:06 +02:00
Sven M. Hallberg
3eb2a2023d add a comment regarding another CHARSET case 2015-09-16 18:51:16 +02:00
Sven M. Hallberg
422f88c4aa handle charset left-hand-side in LALR compile 2015-09-16 18:43:52 +02:00
Sven M. Hallberg
31c460780f add regression test for unhandled charset left-hand-side case in LALR compile 2015-09-16 18:23:32 +02:00
Sven M. Hallberg
5b4550ab0f make MARK a constant that points to itself 2015-09-08 16:19:45 +02:00
Sven M. Hallberg
fb5122ec88 fix result bit_length for LR backends 2015-09-07 15:37:26 +02:00
Sven M. Hallberg
4f455aa97e fix result bit_length for LL(k) 2015-09-07 15:33:50 +02:00
Sven M. Hallberg
29434869d5 add result_length test 2015-09-07 11:05:06 +02:00
Sven M. Hallberg
bfb795b093 add window buffer to look across chunk boundaries 2015-09-06 14:48:51 +02:00
Sven M. Hallberg
73e92f04df save kmax in HLLkTable 2015-09-06 14:48:41 +02:00
Sven M. Hallberg
8995097a1d let's just use ((void *)-1) as another invalid pointer result 2015-09-05 22:43:49 +02:00
Sven M. Hallberg
90b6f30fa1 add a test that needs to suspend on lookahead in the middle of a chunk 2015-09-04 21:06:50 +02:00
Sven M. Hallberg
1276004250 handle suspend on lookahead at the very end of the chunk 2015-09-04 21:05:56 +02:00
Sven M. Hallberg
010a1a36ff int_range test does not work for regex backend 2015-09-04 16:48:01 +02:00
Sven M. Hallberg
d4f933b2d3 move last_chunk flag into HInputStream 2015-09-04 12:55:37 +02:00
Sven M. Hallberg
28fa93d4cc make overrun flag a bool to match its usage 2015-09-04 12:54:00 +02:00