I Made A Python library/DSL for making C Parser tools

Published: 21 January 2023
on channel: Vizonex Builds
207
3

In this video I had decided to show a library that I've made myself with the use of llhttp to help me plan out some things that I wanted to include in my library , My inspiration was because of llhttp , aiohttp , llparse and "no memory for you", and an honorable mention that isn't in this video sqlite's lemon parser. I wanted to thank all those devs for inspiring me to make a python compatible dsl for making my own C code.

I did have plans to make this into a python library but I didn't want to be rude or have a full on copy of llparse's output structures and I wanted the main C code to be unique. I didn't make this video sooner because I was nervous and I didn't want to violate copyrights or draw any attention away from the llparse library or nmfu which if you understand typescript or want to learn nmfu , then you should use it. I didn't understand Node-js or Typescript very well but C and Python were my specialties and making this library was a passion project. I hope to come up with a creative name for it soon if you really badly want it to both be on github and a python package.

And again I want to give a huge thank you to Fedor Indutny , the llhttp devs , aiolibs team (aiohttp devs) and mincrmatt12 (no memory for you dev) and (sqlite3 devs) for inspiring me make this library to even exist at all.

I do recommend you take a look at the JS conference for llhttp as I found it very interesting
   • llhttp - new HTTP 1.1 parser for Node.js b...  

If you have any ideas for names that I can give my python library please let me know down in the comments :)

Let me also know if you would like a tutorial on how to use llhttp or any future changes to my Python to C DSL. I plan to add more custom blocks to the DSL soon including the ability to invoke outside C functions, Change and alter custom state structure flags ect... , I didn't show this much but my tool also has the ability to generate a pxd import in Cython as well.
This library also compiles you a test run to make sure that all the bells and whistles in fact work correctly without having to write it yourself for over an hour only to later be disappointed that your code has hit a segfault.

I also thought about making it possible to bridge my library by compiling to typescript code so that you can use the llparse library as an optional feature so that you can have more options for parsing.

I also thought about making a python version of LLparse completely in python as well , but like I said I would like permission to do it first.

My discord server :   / discord  
Please Do Not raid my sever.

I will make a github link to my project when I upload all the files.

Links to the other libraries mentioned in this video:
https://github.com/nodejs/llhttp
https://github.com/nodejs/llparse
https://github.com/mincrmatt12/nmfu
https://github.com/aio-libs/aiohttp

Also here's those cloudflare enum flags I put together mentioned in this video:
https://gist.github.com/Vizonex/49c01...

#llparsing #Vizonex #Python2Ccode


On this page of the site you can watch the video online I Made A Python library/DSL for making C Parser tools with a duration of hours minute second in good quality, which was uploaded by the user Vizonex Builds 21 January 2023, share the link with friends and acquaintances, this video has already been watched 207 times on youtube and it was liked by 3 viewers. Enjoy your viewing!