Post B6jX61zz3Jrt6cNMlU by icedquinn@blob.cat
(DIR) More posts by icedquinn@blob.cat
(DIR) Post #B6jWoArBNc4HMkkCrA by b@mrrp.place
1 likes, 0 repeats
my wiki software is terrifyingly close to being finished,, it's now about 150 lines of ocaml plus a few hundred lines of liquid templates. i'm trying to keep complexity down as much as possible and i've found that doing layout stuff entirely in liquid templates is a good way to achieve that
(DIR) Post #B6jX61zz3Jrt6cNMlU by icedquinn@blob.cat
0 likes, 0 repeats
@b > ocamli learned that one once :blobcat3c: forgot most of it since. long time ago. haven't tackled a template system yet though. still boggled on finishing up a basic calculator parser for some narrative shit.if i recall parsing templates is mostly going to be an algebraic data type for opcodes, and the ops are mostly "emit this string" or "insert this variable," and then a potato interpreter on top. formatting the markup itself is probably more aggravating.djot is designed to be reasonably machine parsed, but it still has some... annoying edges (lists have to be recognized and then ambiguity resolved between the list types)