🔲 Mirror 🔳 - My Other Programming Language!
DynamicSquid

Hi!

I made another language. It's called Mirror.

It's statically typed and riddled with bugs. It's coded using Rust and transpiles down to C++.

I only had like 10 hours to make this so it isn't much. And this is also my first time coding in Rust so the code is really bad.

I'll probably revisit this sometime in the future though.

Check out its GitHub repo!


Here's Mirror's syntax.

Mirror has a built in print function that acts as standard output.

Variables are created using the set keyword. Their type is automagically deduced.

Conditionals are as expected.

Functions are defined using the def keyword.

Ranged based for loops are also supported.

And arrays.

And that's it!


Write code in the source.mir file. Here's some code to reverse your name. Try it out!

Enjoy :)

You are viewing a single comment. View All
zplusfour
firefish

@ZDev1 haha palindrome go brrr

zplusfour

@firefish indeed

DynamicSquid

@firefish oh, how's the pkg manger going?

firefish

@DynamicSquid wut i'm too busy working on slicelang to do really anything (wanna join the project? we are currently working on a garbage transpiler. considering you've made one, do you consent to us (me) ransacking Mirror?)

firefish

@DynamicSquid I'll take that as permission to copy mirror for our trash transpiler.

DynamicSquid

@firefish what no

firefish

@DynamicSquid

wut i'm too busy working on slicelang to do really anything (wanna join the project? we are currently working on a garbage transpiler. considering you've made one, do you consent to us (me) ransacking Mirror?)

read the previous comment

DynamicSquid

@firefish I would, but I'm way to busy :( I barely have enough time to code Night

firefish

@DynamicSquid hm... sad :(
but if I erm... were to slightly change mirror's source to make slicelang transpile down?

DynamicSquid

@firefish sure, I'm fine with that. just don't copy everything lol

firefish

@DynamicSquid well we are only doing the bad transpiler to get the number of slice repos to 200 before the real thing comes out