Commit Graph

23 Commits

Author SHA1 Message Date
Richard Jones 68a376da98 much refactoring to reduce the use of regex so that regex chars in the parse pattern can be handled sanely 2011-11-22 14:46:55 +11:00
Richard Jones 246c20a33a typo 2011-11-22 12:37:47 +11:00
Richard Jones 2fafd7ad4c allow "d" fields to have number base "0x" etc. prefixes;
fix up some field type interactionsi after stress-testing the parser;
  implement "%" type.
2011-11-22 12:37:08 +11:00
Richard Jones 7e0a9d0d9f cleanup of Parser.parse() and attribute naming; cleanup of number prefix and allow prefix for "d". test_mixed_types fails. 2011-11-22 10:45:24 +11:00
Richard Jones 5b602066fb more tests 2011-11-22 09:04:15 +11:00
Richard Jones a48a32f2dd add not about stripping and spans; remove test that will never pass; clean up 2011-11-22 08:46:15 +11:00
Richard Jones 3f07130d1f some Python 2.5 and 3.2 compatibility tweaks; remove some "#" turds 2011-11-22 08:37:02 +11:00
Richard Jones 667ecef322 add "g" type; removed redundant "h" and "X";
removed need for explicit "#".
2011-11-21 17:18:41 +11:00
Richard Jones a5694a7d59 add "e" field type 2011-11-21 17:07:19 +11:00
Richard Jones b25c319ff3 moar tests 2011-11-21 16:22:05 +11:00
Richard Jones 3ff564520b accept textual dates in more places; Result now holds match span
positions.
2011-11-21 15:28:55 +11:00
Richard Jones 7e31bdf3c3 accept textual dates in more places; Result now holds match span
positions.
2011-11-21 14:41:06 +11:00
Richard Jones f1ad68724e fixes to some int type conversion; implemented "=" alignment; added date/time parsing with a variety of formats handled. 2011-11-21 13:43:29 +11:00
Richard Jones 9d4c0cc9f6 type conversion based on parsed types; also add "f" and "n" types 2011-11-18 18:02:55 +11:00
Richard Jones 50d103b5b2 fix doc 2011-11-18 16:45:18 +11:00
Richard Jones b4a5467b08 refactored, added compile() 2011-11-18 16:42:46 +11:00
Richard Jones 5b37c42685 doc fixes 2011-11-18 16:10:48 +11:00
Richard Jones 00a9eacc7d more doc tweaks 2011-11-18 10:55:39 +11:00
Richard Jones eb6edb5a0c documentation tweak 2011-11-18 10:49:53 +11:00
Richard Jones 23b89610f7 implement loads more of format() spec
implement closer to the format() spec
2011-11-18 10:44:55 +11:00
Richard Jones d26ba29b2d moar 2011-11-17 16:40:06 +11:00
Richard Jones 452123f0bb moar 2011-11-17 16:37:47 +11:00
Richard Jones 1d656b930b first commit 2011-11-17 16:32:27 +11:00