My programming language aka JMP

I made my own programming language! You can find the replit template here. JumpLang is interpreted, and with limited testing, is faster than python.

Features

JumpLang has:

  • A semantic checker
  • Bytecode compiler
  • Bytecode interpreter
  • Basic int, float and bool ops
  • Echo keyword
  • Jump and flag keywords
  • Basic functions, with return
  • If statements

Examples

# Hello world
echo "Hello world"
# Add and divide
func addAndDiv(a, b):
    num = a + b
    return num / b
echo addAndDiv(6, 2)
# Factorials

func factorial(num):
  current = num
  result = 1
  flag r
  result = result * current
  current = current - 1
  if current <= 1:
    return result
  jump r

echo factorial(5)
echo factorial(10)

10 Likes

why colons? colons are cringe

2 Likes

I have not seen an indented language that does not use them. It also makes parsing easier.

3 Likes

wait what language did you make this in?

3 Likes

wait your language is indented? even cringier

3 Likes

At least it is not ugly like js and c. I thought you already new it was indented?

2 Likes

lol I didn’t but Ig it makes sense since no curly braces

2 Likes

Look at the source code? Unless the link does not work

2 Likes

… you realize that your github profile gives 404, right

Also, a 100% TL3 convo :smiley:

2 Likes

No, I meant this entire thread is 100% TL3 (also, BTW could you send the source code and follow me?)

2 Likes

@bigminiboss you said?

Anyways, seems pretty cool! I’m working on my own programming language, but yours seems 100% more complex haha

4 Likes

I am interested to see it!

2 Likes

Sure - here’s the GH repo to it

I haven’t worked on it in a while, and a lot of the keywords (yes it’s keyword based, ew) I’m thinking of don’t seem to work with my setup, so I’ll have to definitely refactor a lot

Note that it’s called “Custom Language” since you can customize it :+1:

5 Likes

Same here lol =) still dk what to call it ¯\_(ツ)_/¯

3 Likes

Is there a repl? I have some recommendations and questions that wouldn’t really go on this ask topic.

2 Likes

You can always make an issue on the GH repo, right now I’m keeping the Repl private until I’m “finished”

3 Likes

Aw just beat me to it… :smiley:

@dragonhunter1 this looks fantastic! Thank you for sharing and for all the hard work that must have gone into creating this!

4 Likes

Alright, but that might be awhile, as GitHub is blocked on my current machine, and I had to clone the repo just to view the code XD

2 Likes

Ah alright, lemme invite you to a Repl where you can just list whatever you feel like can be changed

3 Likes

… NOOO WHYY @IanAtReplit you too whyy (You have to follow us now :angry: )

3 Likes