Commit graph

6 commits

Author SHA1 Message Date
Meredith L. Patterson
f4d116d411 See previous commit message. Saved hammer.h later than I should've. Sorry. 2012-05-01 00:45:46 +01:00
Meredith L. Patterson
318b594bed Parser combinators are well underway. Ones that are now finished are:
* token: matches a sequence of bytes (with length)
 * ch: matches a single byte
 * range: matches any byte within the range [lower, upper] (inclusive)
 * join_action: joins the results of another parser with a separator
 * negate: matches the opposite of any single-character parser
 * end_p: succeeds if there's no input left to parse
 * nothing_p: always fails

One other big change: the AST is now a GSequence of parsed_token_t's. WARNING: This is not actually enforced, because C.

Also tweaked the makefile a little (which will get clobbered in TQ's next commit) and added some documentary comments to hammer.h.
2012-05-01 00:33:47 +01:00
Meredith L. Patterson
dfd8cf2a97 Settled on cache layout, wrote djbhash variant for indexing byte/bit positions into inner hash table 2012-04-30 03:44:10 +01:00
Dan Hirsch
faab7b7cf8 Wrote basic makefile, wrote tests, and then fixed them 2012-04-29 01:45:52 +01:00
Dan Hirsch
7adae0da7c Wrote bitwise reader; needs tests 2012-04-23 19:39:44 +01:00
Dan Hirsch
2e3aa10af0 Moved source files 2012-04-23 00:35:00 +01:00
Renamed from hammer.h (Browse further)