ive done something very shitty just like this
https://gist.github.com/zyugyzarc/ff102169540e0b4638e6eeae756b90c7
how to use:
from lang import L, compile
# for example, to get javascript functionality:
document = L()
document.getElementById("some-id").innerHTML._ = "this is javascript..?"
print( compile( document ) )
# prints out | document.getElementById("some-id").innerHTML = "this is javascript..?";
#for C,
C = L()
C.include("stdio")
def main():
C.printf("Hello world\n")
C.func(main, C.void)
print( compile(C) )
# prints out :
"""
#include stdio
void main(){
printf("Hello world\n");
}
"""
15
u/green_meklar Oct 29 '21
Wait, did you actually make this work, or are you just trolling?
53
u/De-Tomaso Oct 29 '21
I feel physical pain looking at this... Why just why
34
u/[deleted] Oct 28 '21
;
17
u/skellious Oct 28 '21
why??? why have you cursed us with this?
12
u/[deleted] Oct 29 '21
Can we get meta programming?
11
u/YesSoupForYou Oct 29 '21
Missed opportunity to call it CPyPy
7
u/kthepropogation Oct 29 '21
kill me
5
u/LaLiLuLeLo_0 Oct 29 '21
I wonder if you could somehow hook the exception handler to inflate error messages by an order of magnitude
3
u/[deleted] Oct 29 '21
Where is this shitty programming?
This is a beautiful interface to python objects.
3
u/CastleRain22454 Oct 29 '21
This is kinda cool tbh
2
u/kreetikal Oct 29 '21
Wow
2
u/mizuofficial Dec 09 '21
Update?
2
u/zyugyzarc Jan 01 '22
ive done something very shitty just like this https://gist.github.com/zyugyzarc/ff102169540e0b4638e6eeae756b90c7
how to use:
3
u/Deon2137 Oct 29 '21
Why why whyyyyyyyy why would tpu need comething like this this is cursed
1
u/Beginning-Safe4282 Nov 03 '21
Just WHY??????????