Commit Graph

45 Commits

Author SHA1 Message Date
9bdbff68fb license 2023-07-14 10:04:01 -03:00
a2b5c99287 start crystal side of things 2023-07-14 10:03:51 -03:00
c0f4da86fe return errors from parse()
* Create a sc_result struct that can contain errors as well as the parse results.
* Use sccount to report the found shortcodes instead of checking values
* Various Makefile and test-running fixes

Reviewed-on: #1
Co-authored-by: Roberto Alsina <roberto.alsina@gmail.com>
Co-committed-by: Roberto Alsina <roberto.alsina@gmail.com>
2023-07-13 22:05:11 -03:00
b910e00a47 cleanup 2023-07-12 20:37:55 -03:00
29d1e7ab2e more tests 2023-07-12 20:33:37 -03:00
1d4e60ec55 detect mismatched 2023-07-12 19:40:25 -03:00
cead5d075f more tests 2023-07-12 18:03:05 -03:00
809bfd1e42 test args 2023-07-12 18:01:46 -03:00
558230ea50 more tests 2023-07-12 17:37:03 -03:00
2a3fa5b189 meh 2023-07-12 17:30:45 -03:00
5d7d1c45db meh 2023-07-12 17:30:41 -03:00
d3e5ed9dcf More tests 2023-07-12 17:17:48 -03:00
89beb7bbbc minor changes 2023-07-12 17:10:55 -03:00
64053c3f37 Basic tests passing 2023-07-12 16:49:46 -03:00
5110de2042 More convenient makefile 2023-07-12 16:40:15 -03:00
5f376b0b35 First meaningul tests 2023-07-12 16:22:54 -03:00
06a65cab7a Basic test framework in place 2023-07-12 16:09:17 -03:00
62040d023e README.md 2023-07-11 22:25:57 -03:00
fa27e12e59 todo 2023-07-11 22:22:45 -03:00
c098c79436 minor refactor 2023-07-11 22:20:26 -03:00
8dad75b6f8 extract args into struct 2023-07-11 21:09:42 -03:00
071393f757 start extracting args 2023-07-11 20:58:19 -03:00
179ee55826 More data extraction 2023-07-11 20:49:33 -03:00
a4f98c56bc Start extracting data properly 2023-07-11 20:18:05 -03:00
b0fde035c7 fix 2023-07-11 16:51:11 -03:00
008bd05459 tmp 2023-07-11 16:48:02 -03:00
e0b1c8b365 extract data in matched shortcodes 2023-07-11 10:22:18 -03:00
be56f4110e Ported to bglibs 2023-07-11 09:58:58 -03:00
d59fa56473 Added matched_shortcode 2023-07-10 22:29:53 -03:00
05a6fac332 Handle error closing code 2023-07-10 22:26:19 -03:00
8c7f2b471f gitignore 2023-07-10 22:25:54 -03:00
57cbde96ce todo 2023-07-10 22:18:40 -03:00
8e7b2fa78a open/close match code 2023-07-10 22:11:43 -03:00
469ff7cd8d tweaks 2023-07-10 21:55:45 -03:00
8cde5e9590 names can be paths, have numbers 2023-07-10 20:36:50 -03:00
326d13839a Shortcodes with {{% and {{< , more than one 2023-07-10 20:30:50 -03:00
3fa44de352 meh 2023-07-10 18:27:41 -03:00
380a25eccf Makefile 2023-07-10 18:19:34 -03:00
1f58f0b25e Getting there 2023-07-10 18:17:17 -03:00
d3488349b4 Getting there 2023-07-10 18:11:54 -03:00
94516408d3 Ragel state machine 2023-07-10 16:39:01 -03:00
ffd94b9d97 small progresses 2023-07-10 16:38:27 -03:00
bd9ae94adb Give correct input to dumb machine 2023-07-10 14:12:10 -03:00
81c6a87704 Starting the ragel machine (not working yet) 2023-07-10 14:09:19 -03:00
23b2af1000 Initial skeleton of code 2023-07-10 12:51:21 -03:00