L++ Language
bitbucket.org
bitbucket.org
The L++ source also looks very much like this lovely write-up on how to write a Scheme x86 compiler: http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf
If there were Lisp-style Macros available, that would beat the pants off the C Preprocessor for boilerplate.
I thought silly parentheses are just as easy to parse as in an imperative language like C. Are you referring to the Polish prefix form being easy to parse?
I should have explained myself more clearly, I thought that the operator appearing at the beginning of the list means that operator precedence is no longer relevant. With infix operators the precedence is important.
What actually makes lisps easy to parse is a near complete absence of syntax; particularly structures/constructs that require considerable effort to disambiguate.
[0]: https://bitbucket.org/ktg/l/src/cb93b589c03ec1e39007c1907deb...
I find the L++ version to be very way more elegant.
Edit: More examples... https://bitbucket.org/ktg/l/src/cb93b589c03ec1e39007c1907deb...
int main()
{
for (int i = 99; i--;) {
std::cout << i << " bottles of beer on the wall, " << i << " bottles of beer.\n"
<< "Take one down, pass it around, " << i << " bottle of beer on the wall.";
}
}
is basically the same thing as the L++ version, with a few added bitshift operators.In fact it uses Racket behind the scenes which might open the door to use regular Lisp features.
"The golden rule of CoffeeScript is: 'It's just JavaScript'"
https://bitbucket.org/ktg/l/src/cb93b589c03ec1e39007c1907deb...
Anyone who has done things like this before: is it peformant? The Racket documentation mentions against compiling out C/C++ sources it can emit, because it misses the JIT and other optimizations. Would the emitted C++ code be worthwhile?
Ironically, this seems to be exactly what Naught Dog was doing for the infamous Racket on PS3 talk, even though it was not actually running on the PS3 (it was MzScheme that transpiled to C++ code that could be compiled to patch together game demos).
It could have been easier if you just replied to the comment, then I wouldn't have to extrapolate an answer.