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?

  • pivot_root@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    9 months ago

    Does it compile into JVM bytecode or Java source code?

    JVM bytecode is one of the most infuriating IRs I ever had the displeasure to work with, and if you managed to make a compiler for that, I applaud you.

    • prof@infosec.pubOP
      link
      fedilink
      arrow-up
      7
      ·
      9 months ago

      Fortunately I generate Java source code from it. However MPS generates both source and byte code when you build the solution. For some reason I can’t get the byte code to run though, but the source code does, so I don’t care too much.