Commit Graph

217 Commits

Author SHA1 Message Date
Florian Schroedl
fd8e0254f0 Fix test case 2022-02-09 15:12:03 +01:00
Florian Schroedl
3af4337d1e Add other parsers 2022-02-09 14:39:45 +01:00
Florian Schroedl
5c3446eeb2 Add delimiter parser 2022-02-09 14:34:18 +01:00
Florian Schroedl
a24f89f7ff Add whitespaceParser helper 2022-02-09 14:33:42 +01:00
Florian Schroedl
9d6be9707f Add block test 2022-02-09 13:04:05 +01:00
Florian Schroedl
305bd1e503 Restructure 2022-02-09 11:49:42 +01:00
Florian Schroedl
9bb0f8e38c Rename: parser to parser internals 2022-02-09 11:41:58 +01:00
Florian Schroedl
1aa07d943a Typo 2022-02-09 11:39:39 +01:00
Florian Schroedl
58100fb8dd Temp: Remove nimble install in nix-shell 2022-02-09 11:34:16 +01:00
Florian Schroedl
488d0b173b Seperate types & utils to files 2022-02-09 11:34:13 +01:00
Florian Schroedl
854d5d356d Remove config.nims 2022-02-09 08:08:41 +01:00
Florian Schroedl
d0bc161a8c Add properties block parser 2022-02-08 17:15:50 +01:00
Florian Schroedl
50c2bf6e4c Fix indentation 2022-02-08 17:15:33 +01:00
Florian Schroedl
5c1e3a73ea Remove unneeded flags 2022-02-08 17:15:23 +01:00
Florian Schroedl
4823c372b3 Add option to add seperator between tokens 2022-02-08 17:15:03 +01:00
Florian Schroedl
e2942154a2 Cleanup 2022-02-08 17:10:28 +01:00
Florian Schroedl
a188a0f97b Add newline to end properties block 2022-02-08 17:10:16 +01:00
Florian Schroedl
61897b1c66 Restore propertiesEndParser 2022-02-08 17:09:02 +01:00
Florian Schroedl
97eb1cb80a Fix property without value case 2022-02-08 17:07:49 +01:00
Florian Schroedl
acbb5387cd Fix first character always getting parser applied before stop 2022-02-08 16:57:57 +01:00
Florian Schroedl
81dbdd8d69 Remove parser prefix 2022-02-08 16:33:20 +01:00
Florian Schroedl
5ba68c5f61 Update parsers 2022-02-08 16:30:57 +01:00
Florian Schroedl
d7b281f7cd Fix start parsers 2022-02-08 16:30:40 +01:00
Florian Schroedl
20a81fed98 keep token fields seperate 2022-02-08 16:30:12 +01:00
Florian Schroedl
194ebea0b6 Add custom error setter 2022-02-08 16:29:31 +01:00
Florian Schroedl
9d85ba8ae4 Add index for choice 2022-02-08 16:29:20 +01:00
Florian Schroedl
afcb55b21f Cap error on error line 2022-02-08 16:28:52 +01:00
Florian Schroedl
49ebf7329a Add tests 2022-02-08 16:28:35 +01:00
Florian Schroedl
d24e596ce3 Add tests results to ignore dir 2022-02-08 16:28:08 +01:00
Florian Schroedl
21a6234149 Extract properties block parser to file 2022-02-08 09:34:53 +01:00
Florian Schroedl
cad191a976 Properties parser 2022-02-08 09:19:33 +01:00
Florian Schroedl
62a56662f9 Implement Multi type tokens 2022-02-07 17:09:53 +01:00
Florian Schroedl
b5744dc40a Fix test 2022-02-07 16:04:44 +01:00
Florian Schroedl
64548cdec8 Implement newline parser 2022-02-07 11:56:51 +01:00
Florian Schroedl
6ca3f4a9ba Add index to error 2022-02-07 11:56:31 +01:00
Florian Schroedl
3dac05efdd Fix endOfStream impementation 2022-02-07 11:56:14 +01:00
Florian Schroedl
d98cf8adf1 Add EndOFString parsing error 2022-02-07 11:45:43 +01:00
Florian Schroedl
288380cab7 Add testing setup 2022-02-07 11:40:36 +01:00
Florian Schroedl
b46b81de42 Add andParser 2022-02-07 10:03:06 +01:00
Florian Schroedl
811bf23fe7 Add optional parser method 2022-02-07 09:25:02 +01:00
Florian Schroedl
905fd06348 Add parser result initialiser 2022-02-07 09:24:46 +01:00
Florian Schroedl
20712cef95 Structure 2022-02-07 09:08:44 +01:00
Florian Schroedl
5863304456 Add fold fn for builder 2022-02-07 08:56:49 +01:00
Florian Schroedl
4683b5a19b Add transformer function 2022-02-07 08:38:35 +01:00
Florian Schroedl
1bc7db6be3 Parse heading 2022-02-06 19:52:31 +01:00
Florian Schroedl
3c6bea01a6 Cleanup 2022-02-06 19:49:17 +01:00
Florian Schroedl
ce07cbc8da Parser transformation 2022-02-06 19:48:52 +01:00
Florian Schroedl
b6fd4faad1 Abstract builder 2022-02-06 14:08:22 +01:00
Florian Schroedl
383a234921 Implement choice parser 2022-02-06 12:13:11 +01:00
Florian Schroedl
dfb4baa8c8 Implement anyUntil using endOfStream 2022-02-06 11:30:59 +01:00