Prolog DCG "distilled" - Part 3 - Capturing and assembling textual elements from rules
Capturing and assembling textual elements from rules This article builds on the previous ones, featuring a small parser for Org Mode files. I use the Clocking feature of emacs to capture how long I work on specific tasks. However from time to time, I have to aggregate data over several files, on a monthly or yearly basis, and this is where the small tool described here can prove useful. The code and tests for this article may be found [ here ]. One of the tests may be run in SWI-Prolog with those steps: ?- consult('/path/to/clocking_tool.pl'). true. ?- test_parse_clock(Start, End, Elapsed). Start = [2020-2-5, 16:6:0], End = [2020-2-5, 17:26:0], Elapsed = 1:20 ; false. A version for Tau-Prolog can be found [he...