Commit graph

8 commits

Author SHA1 Message Date
Ilja
ed970aa77d Move Encoder logic to own module 2022-07-25 00:44:45 +02:00
Ilja
d9ffd99e4d Convert a tree to HTML + formatting + docs 2022-07-24 16:32:57 +02:00
Ilja
5f63b7e4bd Make it not crash when tag not properly ended
The following cases are now tested and fixed so they don't crash:
* Providing a "]" without there being a mfm token opened.
* Opening a tag without closing. E.g. "$[spin " and "$[spin chocolatine".
* Starting a tag without finishing it. E.g. "$[sp".
2022-07-24 10:28:29 +02:00
Ilja
5bb5620778 Make parser work for multiple token input
We can now handle multiple tokens and nesting.
2022-07-24 09:04:01 +02:00
Ilja
45519a3c2a Make parser work for single token input
We can handle all needed tokens.
We still need to test for multiple tokens and for nesting.
2022-07-24 07:55:55 +02:00
Ilja
733388fa6e Change Lexer to use a data structure for tokens 2022-07-23 20:17:34 +02:00
Ilja
4748d833b2 Make Reader and Lexer work 2022-07-23 19:15:08 +02:00
Ilja
cf49876a47 First commit
Initialise repository
2022-07-23 16:51:13 +02:00