Are there extensible interpretable programming languages written in standard, platform-independent C or C ++?
I would just like to place all the sources in one directory, compile the sources with any standard C or C ++ compiler and create an executable file that reads and interprets script files in the specified scripting language.
It seems that many programming languages written in C often include many functions depending on the platform on which they are located, and as a result, some configuration program is required to run based on your target system (for example, Autoconf), which complicated issues and limited cross-platform compatibility.
Reason for question:
I am interested in learning about programming language design. I played with some toy programming languages after the following lessons involving yacc, lex and llvm. Recently, however, I have become interested in learning a programming language written in portable C / C ++, so I can study the program and code on any machine that supports the standard C or C ++ compiler (possibly even on my ipad) and still have a fairly uniform experience.
Since this is for educational purposes only, the scripting language does not need to support super low-level functions such as C, and it should not include a graphical interface similar to Java (I don’t think you can write any GUI limited to standard C / C ++ anyway) or any complex io for that matter. However, I would like the language to be complete enough to make it convenient to write some useful programs in the language (for example, it should be possible to extend the language with C / C ++ so that you can use it as a shell in tty) .
Thanks.
Edit:
@ AndréCaron I would prefer that at least the core language is 100% platform independent. It would be nice if the language included a large standard library, which depended on other libraries to make it “more useful," however, I would like to be able to split the standard library and use only the core language (possibly with a custom written manually) if I wanted to.
source share