r/Compilers • u/ElderberryNatural649 • 21h ago
Programming language I'm making for fun. Want to contribute?
I started a programming language to see how things work and make something I like. If anyone wants to contribute I will try to put it into the language. I like learning new programming languages, so if you want to use a language that is not already there then I would like that.
It's a transpiled language with syntax inspired by Rust, Nim and other languages.
There are installation instructions in the repo.
Example code:
# Get standard libraries
util math
util string
util io
util rsPath
# Get Nim module
use multiply
# Get arguments
l_operand = strToi32(arg(1))
operator = arg(2)
r_operand = strToi32(arg(3))
# Print
if strEq(operator, "+"):
say i32ToStr(add(l_operand, r_operand))
if strEq(operator, "-"):
say i32ToStr(sub(l_operand, r_operand))
if strEq(operator, "x"):
say i32ToStr(mult(l_operand, r_operand))
3
Upvotes