I am currently playing with programming languages. I spent some time creating parsers and interpreters in high-level languages ββ(primarily haXe).
I had some results, which, in my opinion, are actually quite pleasant, but now I would like to make them quick.
My idea was to translate the input language to C.
My C knowledge is limited to what you study at university. Besides some exercises, I never wrote real programs in C. But I'm sure I can make it work.
Of course, I could try writing an interface for LLVM or creating MSIL or JVM bytecode. But I feel that there is too much to learn right now, and I do not see much benefit in fact. In addition, C is human-readable, so if I messed up, itβs much easier to understand why. And C, after all, is a high level. I can really translate concepts from the input language without excessive intelligence. I should have something working and working within a reasonable time, and then optimize it as I see fit.
So: Are there any flaws in using C? Can you recommend an alternative?
Thank you for your understanding:)
Edit: Some clarification
- The reason I want to go all the way is because I am writing a language with OOP support, and I want to actually implement my sending method manually, because I have something very specific.
- The main area of ββuse would be to write HTTP services, but I could add bindings to the GUI library (possibly wxWidgets) or something else.
source share