Commit graph

171 commits

Author SHA1 Message Date
3a219ecac2 Evaluate some simple statements 2021-12-04 22:37:01 +01:00
778576a63c Use simpler date type for entries 2021-12-04 21:52:23 +01:00
de1f4a303f Make eval compile again 2021-12-04 21:42:45 +01:00
d8782fa28a Remove EntryMap 2021-12-04 19:55:47 +01:00
b5ef9e8134 Change commands to a more statement-driven format 2021-12-04 19:39:15 +01:00
f42027e378 Collect relevant entries based on different modes 2021-12-04 18:44:56 +01:00
b8aeb79323 Evaluate some deltas 2021-12-03 20:17:49 +00:00
0eda941ed7 Keep file contents in memory 2021-11-29 11:16:33 +00:00
1170009b4f Carry source spans for error messages 2021-11-29 11:14:48 +00:00
1d80ab681e Add eval representation of DateSpec 2021-11-26 14:55:44 +00:00
e827556c84 Add eval representation of FormulaSpec 2021-11-25 02:42:27 +01:00
21739c7314 Implement basic structure for task evaluation 2021-11-25 01:24:16 +01:00
11399468e7 Allow repetitions to start from last DONE 2021-11-25 01:23:50 +01:00
bfbf53784b Include more info in DONE 2021-11-24 03:03:24 +01:00
0bb01369b8 Implement basic structure for note evaluation 2021-11-24 02:05:31 +01:00
8034ec19cd Support undated entries in EntryMap 2021-11-24 01:24:14 +01:00
35184e21e9 Restructure eval module 2021-11-24 01:13:45 +01:00
817732abf6 Make Source less of a hassle to work with 2021-11-23 23:59:21 +01:00
f39dbdaba7 Enable and fix more lints 2021-11-22 15:23:52 +00:00
bac673ea65 Iterate over commands in all files 2021-11-22 15:22:06 +00:00
6f49c32e79 Format example file 2021-11-22 15:11:44 +00:00
78bb0eb9e0 Calculate upper and lower bounds for deltas 2021-11-22 11:04:50 +00:00
2c7aa78d08 Format files properly again
I forgot to include the includes and time zone commands
2021-11-22 10:20:41 +00:00
d7df47eba4 Use system tzinfo instead of compiling it into the binary 2021-11-22 00:45:48 +01:00
36aa6abcb9 Implement includes and setting a time zone 2021-11-22 00:15:18 +01:00
b4b8dd53e0 Move stuff to files module 2021-11-21 23:03:12 +01:00
5674bcdc00 Start reorganizing code by creating files module 2021-11-21 22:48:41 +01:00
f1ff3f7aaa Evaluate birthdays 2021-11-20 16:08:13 +01:00
48faf910fd Add some more examples 2021-11-20 01:31:18 +01:00
d9e13b1a11 Trim whitespace where appropriate 2021-11-20 00:47:13 +01:00
0dd9fa3e30 Fix delta parsing 2021-11-20 00:43:17 +01:00
e678a2bb31 Implement Display for all commands 2021-11-20 00:12:40 +01:00
a0781d574d Parse file instead of command vec 2021-11-19 22:55:11 +01:00
e9cff194d3 Unify number parsing again 2021-11-19 21:34:32 +01:00
7ed4ba2372 Parse all DATE variants 2021-11-19 21:34:19 +01:00
99259784cf Return type directly if Result is unnecessary 2021-11-19 20:35:18 +01:00
04417ea0f9 Start parsing expressions 2021-11-19 20:31:46 +01:00
991df5e026 Fix description in example 2021-11-19 19:51:55 +01:00
8fb69df548 Create own Time
This allows me to use "24:00" as time
2021-11-19 19:51:55 +01:00
8143c2bf35 Parse DATE with fixed start date 2021-11-19 19:49:37 +01:00
8c83c0b0b9 Parse deltas 2021-11-19 19:14:14 +01:00
d298ffabb2 Split up DATE parsing 2021-11-19 12:25:51 +00:00
d006f03df3 Parse DONE 2021-11-19 11:46:04 +00:00
743e07b215 Adjust grammar for deltas and wildcard date expressions
This should make it a bit easier to work with
2021-11-19 01:35:08 +01:00
747e6db8a5 Print file path in error message 2021-11-19 01:15:34 +01:00
2724d2aefe Parse FROM, UNTIL and EXCEPT 2021-11-19 01:04:48 +01:00
d7c843ed86 Change description format
Descriptions must now be prefixed by a '#' symbol instead of indented.
2021-11-19 00:48:12 +01:00
76eed7f30d Parse descriptions properly 2021-11-18 23:57:16 +01:00
90f74c82bc Continue parsing the pest output 2021-11-18 23:46:49 +01:00
6e53446a08 Start interpreting pest output 2021-11-18 21:59:18 +01:00