Spaz Documentation Gets A Start
New Documentation!
Today I decided it would be a good idea to start work on a documentation website. I went through a few options for documentation frameworks. I started by trying a framework called Docsify. This for a while was doing well, but I found that it was a little hard to work with and the documentation for it didn't expose certain things enough for me to continue with it. So I kept looking and found VitePress. I realize that these two are very different in that Docsify is a technically much lighter system, which I thought is what I wanted. Though that isn't really what I wanted, and VitePress allowed me to focus more on the documentation content rather than struggling to get the format and layout of the documentation the way I wanted.
Interpreter Improvements?
The interpreter is a point of constant change, whether its when I find a new better way it could work, or I get annoyed with how inflexible it is. Today, I thought that the expression evaluation code was simply too large to make it even somewhat readable. But that code is inherently large, so I did my best to leverage C's macro system to shrink up some of the repetitive code. I am fully aware that macros can be done bad, and to be honest I'm not sure if I fell victim to that. But for now its working, is more readable, and is more maintainable than it was. If you are curious about the actual code I'm speaking of you can find it here.
To close off the day, I got a little self-conscious about one of the code design decisions I made in the interpreter code. I made use of pre-processor macros to shorten what would be a fairly long (and repetitive piece of code). So I went over to one of my trusty C/C++ discord server to see what other people thought of the idea, and they reassured me that it was fine idea. This made me feel quite good about my code, so I am going to move on and not worry about it anymore.
Comments
Post a Comment