About a few days ago I posted this, asking for help to implement the parser. It seems like I boomer'd and I forgot to set the Gist to public. This is public (hopefully!). Someone did gave me a link, but I kinda could not 'parse' it (get it? get it?). I still would appreciate it if you would give me guidance in parsing with...
In the Gist, I have explained my problem, and I have provided my tokenizer as well. If you can help me with the parser, that would be great. Also if my tokenizer is not very well-structured, please tell me....
Please tell me what you honestly think of it --- this is not a 'labor of love' exactly, I only spent a few hours on it. But I think its a strong foundation for what comes next. The implementation, I hope, will be an orgy of love!...
Automatic garbage collection in C is possible with libraries like libgc, but with allocppx.pl, you can just preprocess your file into generating heaps, and these heaps can be used for memory allocation. The type of GC is used, mark and sweep + reference counting. Every memory allocation MAY have a trace, and this trace can be...
I wrote a simple script in order to help someone in a recent reply from me, to make running Flatpak applications from terminal easier. After that I worked a little bit on it further and now ended up with 2 completely different approaches....
I am implementing my own POSIX Shell so I wrote this not to get lost. I posted a much more inferior iteration of this weeks ago ---that one was truly subpar. This one is much better....
A good amount of people liked my C99 EBNF grammar. I was defining grammars for most of today because you can't really blindly make a language, and you need a grammar to be there, even if the language exists and has dozens of implementations. As it happens, I have a couple of AWK-related projects, AWK2c and Squawk (people from Le...
This since I don't have a blog and I don't know how to make a blog I will post my way of defining a grammar using EBNF and Regular Definitions in Gist form....
Consider this: it's much easier to parse S-Expressions than JSON! Plus, in statically typed languages, this script could excel, because it declares the type first. Remember that you can always use my S-Expression parser in C to parse them:...
I have scraped a lot of links from instagram and threads using selenium python. It was a good learning experience. I will be running that script for few days more and will see how many more media links I can scrape from instagram and threads....
Yesterday I setup remote access to my QNAP NAS and wrote a guide for it, that I can reference later. Might be helpful for someone. This was my first time doing something like this. So any notes on my approach are also welcome.
Getting GPU acceleration working is a common task for those of us running Plex or Jellyfin. There is not much documentation for getting the NVIDIA container stack to work with Podman, even less on Gentoo, plus there have been a lot of changes to NVIDIA’s container toolkit lately....
A few friends recently commented that navigating the download page of Debian for the install media of their choice can be really tricky. I came up with this little gist to solve their frustration.