Dash docsets now available

2024-01-27 Thread niontrix
As I had some issues in getting dash-docs.el to work in Emacs, there is another great solution in my opinion: There is also an Emacs package devdocs.el and it's working great for me, if someone wants to give it a try. I also saw that there is a VSCode extension for this, too

Parser combinators experiment causes Error: "cannot instantiate return:type"

2024-01-26 Thread niontrix
@Araq I appreciate the links. Thanks! I'll have look at those projects. Creating these parser combinators is just an experiment to get a better understanding of Nim as a language, though. So, I think my question is: Can I define a procedural type like I did and pass it around to a function that

Parser combinators experiment causes Error: "cannot instantiate return:type"

2024-01-26 Thread niontrix
Ok, my next probably stupid step is: I want to create a parser combinator function that takes a variable amount of other parser combinators and creates a new one. I thought about using a varargs[Parser] parameter, but I think I unfortunately don't understand it correctly at that point. My code i

Parser combinators experiment causes Error: "cannot instantiate return:type"

2024-01-22 Thread niontrix
@xigoi Thanks for the explanation! In the meantime I thought that this might not be possible. Another way of getting what I want would be to use an `Option[T]`, but it would have the drawback of not having the error message, but instead just signaling that nothing was found. Just as a kind of a

Parser combinators experiment causes Error: "cannot instantiate return:type"

2024-01-22 Thread niontrix
Hi guys! I'm doing an experiment in creating some small parser combinator to eventually parse JSON. I thought I could create a type that is the function signature of the function to return from `jsObj` \- so it would be a bit better to read. But there seems to be something wrong with my code, b