156 Commits

Author SHA1 Message Date
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
Florian Schroedl
1d7d669146 Cleanup 2022-02-06 11:23:31 +01:00
Florian Schroedl
75566c30f1 Add set[char] parser 2022-02-06 11:23:08 +01:00
Florian Schroedl
dd62925e61 Add set pretty printer 2022-02-06 11:22:49 +01:00
Florian Schroedl
3df4a68e71 Fix flake 2022-02-06 11:16:12 +01:00
Florian Schroedl
24d335363e Fix switch-up 2022-02-06 07:30:37 +01:00
Florian Schroedl
96bf7fe263 Fix negative index for start of parser 2022-02-06 07:30:21 +01:00
Florian Schroedl
d4f4a8a4d7 Implement manyUntil 2022-02-06 07:30:00 +01:00
Florian Schroedl
440077fb06 Use string as error for ease of use 2022-02-04 17:02:18 +01:00
Florian Schroedl
d4266b53ed Pretty print errors 2022-02-04 16:51:59 +01:00
Florian Schroedl
dae845d57f Token folding 2022-02-04 15:43:20 +01:00
Florian Schroedl
5dca3d01f5 Helper methods 2022-02-04 15:07:38 +01:00