jojk
- 6 Devlogs
- 15 Total hours
A markup language with parser written in haskell
A markup language with parser written in haskell
Final prepares before shipping, and git merge conflicts
Been a while scince the last devlog
Since then i have:
Nesting commands dont work super well, but for simpler nesting it should work fine
I have also learnt that haskell types are super weird, somehow theres a difference between String and [Char], and i have no idea what it is
Screenshot is of it compiling without errors
I have made multiple large changes, including
Making the markdown output took a lot of time, since i basically had to rewrite every formatting function, but it went faster than with html output, probably because im better at haskell now
Several notable changes, including:
Getting the lists to work was a nightmare, i had to do some cheeky recursion thing and it was not easy. I also had to put parentheses like everywhere for the compiler to understand what ordering i wanted, but it didnt say that, it just said “Couldn’t match expected type with actual type”, and i had no idea what was going on.
Jojk now has the following features:
Ive learnt lots, most of it being that haskell is weird, but the compiler warnings are awesome. You forgot to specify the input and return type of a function? The compiler warning literally tells you the type, and gives you the exact codepiece you need to add!
I did encounter a couple of errors, but most of them were just things like haskell needing an int instead of a “maybe int”(what the hell is a maybe int?)
Jojk is a markup language im making, and im using it to learn haskell, so i anticipate a lot of issues.
Right now it takes a file as an input and outputs the file but in html format