519
submitted 1 year ago* (last edited 1 year ago) by prof@infosec.pub to c/programmer_humor@programming.dev

Insert <it's not much but it's honest work> meme. It only supports ints and bools, some logic and simple arithmetics and it compiles to Java but damn was it hard to get that far.

Can you guess what everything does?

you are viewing a single comment's thread
view the rest of the comments
[-] catastrophicblues@lemmy.ca 1 points 1 year ago

It’s likely transpiring and not compiling, so it’s a lot easier than it seems. Source: made a language that adds features to Python and transpiles to valid Python.

[-] prof@infosec.pub 1 points 1 year ago

It doesn't compile or transpile in actuality. It generates Java based on an abstract syntax tree. The concrete syntax is not considered in Java generation by MPS.

this post was submitted on 18 Feb 2024
519 points (96.9% liked)

Programmer Humor

25594 readers
1409 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS