summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2024-02-09Bump edition to 2021 and introduce rustfmtPro
2024-02-09Update nom and iso8601 dependenciesPro
2024-02-09CleanupPro
2024-02-09Bump env_loggerPro
Some tests were failing with: env_logger::init should not be called after logger initialized: SetLoggerError(())
2020-03-05Merge branch 'thiserror'Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-05Remove unused importMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-05Downgrade comment to normal commentMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-05Replace try!() with ? operatorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-05Replace failure with thiserrorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07Move code to failure as error handling libraryMatthias Beyer
2018-05-28Replace wrong variable in error output of sub_from_momentMalte Brandy
2018-03-21Add aliases for 1second -> secondlyMatthias Beyer
2017-11-24Use NaiveDate::from_ymd_opt() / ::and_hms_opt() functions for error safetyMatthias Beyer
2017-11-24Optimize implementationMatthias Beyer
Change the implementation from O(n) to O(1).
2017-11-24Add out of bounds check and error propagation for NaiveDate::from_ymd() callsMatthias Beyer
* Added recursion limit for error_chain * Added new error for out-of-bounds error * Added IntoTimeType helper trait
2017-11-19Implement not-yet implemented match armsMatthias Beyer
We can simply use our own infrastructure here to calculate the actual value of these patterns. Now things like "2015-306" (as supported by the iso8601 crate) work.
2017-11-19Remove warningsMatthias Beyer
* Remove unused imports * Remove unused variables * Remove unused functions
2017-11-19Split parser into modulesMatthias Beyer
The TimeType::parse() function was removed because we don't want that there. It is not that nice, because the interface would return either a TimeType or an Iterator.
2017-11-19Fix: Offset problemMatthias Beyer
The core iterator did not yield the base on the first iteration. This is fixed with this commit, using a flag to check whether it already yielded the base and if, start incrementing. Not a clean solution, but a working one.
2017-11-19Add tests for iteratorsMatthias Beyer
2017-11-19Add more tests for UntilIterMatthias Beyer
2017-11-19Add parser iterator type -> API iterator type mappingMatthias Beyer
2017-11-19Add "Times" iterator helper typeMatthias Beyer
2017-11-19Add error for calculating non-date inside iterator parsingMatthias Beyer
2017-11-19Fix until_spec parserMatthias Beyer
2017-11-19Fix date() parser fnMatthias Beyer
2017-11-11Replace unimplemented!() matcher with actual patternMatthias Beyer
2017-11-11Merge pull request #3 from matthiasbeyer/parserMatthias Beyer
Parser
2017-11-11Merge branch 'minor'Matthias Beyer
2017-11-11Fix Bug: Called subtraction fn instead of addition fnMatthias Beyer
2017-11-11Add test for parser which contains subtractionMatthias Beyer
2017-11-11Fix Bug: Called subtraction fn instead of addition fnMatthias Beyer
2017-11-11Add TimeType::parse()Matthias Beyer
2017-11-11Error-chain setup for nom errorsMatthias Beyer
2017-11-11Make parser::timetype() pub, add documentation about interfaceMatthias Beyer
2017-11-11Add internal timetype which resolves to either AmountExpr or DateMatthias Beyer
2017-11-11Fix: There must we whitespace!Matthias Beyer
2017-11-11Add tests for iso8601 parsingMatthias Beyer
2017-11-11Add into-conversions and simple test for itMatthias Beyer
2017-10-30Fix: Parse complete next expressionMatthias Beyer
2017-10-29Break amount expression parsing into multiple partsMatthias Beyer
2017-10-28Add testsMatthias Beyer
2017-10-28Add optional whitespaceMatthias Beyer
2017-10-28Use alt_complete!() hereMatthias Beyer
2017-10-28Add debug, partialeq, eq deriveMatthias Beyer
2017-10-28Sort tagsMatthias Beyer
2017-10-28Initial bootstrapping of nom-based parserMatthias Beyer
2017-10-22Design syntaxMatthias Beyer
2017-10-22Initial import for parserMatthias Beyer
2017-10-09Add another testcase for adding months over year-bordersMatthias Beyer