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)

11 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.

4 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?

3 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 @IanAtCSTeach you too whyy (You have to follow us now :angry: )

3 Likes