Scout can now read and parse json files(with the library cjson) and it also now contains a function that returns other functions!
Why cJSON?
It was easily availible with my package manager, and it looked the simplest out of all the json libraries.
how does higher-order functions benefit this project?
It dosent, the code is definitely less readable aand its completely unnecessary, but its fun!
While implementing this, i have started beef with gcc, as you can see in the attached screenshot, i have absolutely no idea what its talking about or what i did wrong and im pretty certain the compiler had a stroke, but i switched to clang for a while and when i switched back it was working again. As far as ive checked, the code is valid C, it compiled perfectly with clang, so i have no idea what happend, maybe gcc uses another C standard, or thers some weird macro in cjson that fucks things up.
The json reading will be used for pattern matching in the file with the patterns in the json file (similar to YARA, but simpler).
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.