Advertisement · 728 × 90
#
Hashtag
#toylang
Advertisement · 728 × 90
Preview
The Toy Programming Language

Do you like games?

Do you like modding?

Do you like games with modding?

I'm building a scripting language to enable easy modding, and I'm gonna build a roguelike with it!

Come check it out, and drop me a follow!

#gamedev #langdev #toylang #roguelike

toylang.com

9 2 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

Functions are successfully called.

No return statement or tests yet, but it's time for a break.

I'm happy now, even if today is a hard day.

#gamedev #langdev #coding #toylang

github.com/Ratstail91/Toy

9 2 0 0

-bool constant = false;
+bool constant = true; //parameters are immutable

It took me all day to change one line.

The simplest solutions are usually the best. I'm not exactly upset, I just wish more of that time had gone towards actually getting the functions working.

#coding #langdev #toylang

0 0 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

In case you missed it: Toy now has unofficial support for NetBSD, thanks to NishiOwO!

While not covered by CI, the newly added code is quite minimal, so it should work with little effort. I might even look into custom runners at some point.

#coding #langdev #toylang

github.com/Ratstail91/Toy

0 0 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

Why save a peice of text multiple times, when you can save it once and point to it instead?

I finally got this working today!! I've had the outline there for ages, but finally added the actual check - which wasn't easy.

github.com/Ratstail91/Toy

#coding #langdev #toylang

1 0 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

Fixed the keyword 'continue', changed the value '0' to be falsey, and started work on functions proper.

They're being parsed into the AST, but compilation is a no-op for now. Parameter types are also not parsed correctly, and the keyword 'return' is its own thing.

#langdev #toylang #coding

0 0 1 0
Post image Post image Post image Post image

OK, be honest, who has the coolest mascot?

(My mascot has no eyes, but it does have one "I", just off screen.)

#rust #toylang #zig #cpp

0 0 0 0
Preview
WIP, adjusting architecture, read more · Ratstail91/Toy@12aedb1 The 'source' directory compiles, but the repl and tests are almost untouched so far. There's no guarantee that the code in 'source' is correct, so I'm branching this for a s...

A big chunk of text, showing my thoughts and plans for the current sprint.

#programming #coding #langdev #toylang

github.com/Ratstail91/T...

0 0 0 0
I Am Speed I’ve just ran a speed test, comparing Toy v1 against Toy v2. After a long day coding, I’m worn out - let’s get straight to the data. I’ll likely add more data down the road, such as comparisons withou...

Toy Speed Test!

#programming #coding #toylang #langdev

krgamestudios.com/posts/2025-0...

0 0 0 0
Post image

GitHub's action runners seem to be bugging out, so the last couple commits lack the fancy tick.

Nonetheless, I've gotten some small features implemented today, including prefix and postfix ++ and --.

The code looks a lot cleaner with those.

github.com/Ratstail91/Toy

#langdev #toylang

2 0 1 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

It took a bit, but 'break' and 'continue' keywords are working & tested!

It's not exactly easy, when you're jumping around in memory - you need to be super thorough when looking for issues, because the VM will simply keep reading garbage, thinking it's code.

#coding #langdev #toylang

0 0 1 0
Post image

Yay! I put off the break & continue keywords for a bit, but I didn't really need to. Still, it gave me time to think on it.

I'll need to write a proper disassembler soon.

#coding #langdev #toylang

0 0 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

Yeah, your favourite programming language may be cool, but is it "working key-value tables" cool?

#coding #langdev #toylang

github.com/Ratstail91/Toy

0 0 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

I finally finished this benchmark and proved...

The default 'malloc()' is much faster than my 'Toy_Bucket' arena allocator. In hindsight, it makes sense, though it wasn't what I was expecting/hoping for.

It's better to know you're wrong than think you're right. Time to keep #coding.

#toylang

0 0 0 0
Preview
Reworked Toy_String as a union, enabled -Wpedantic · Ratstail91/Toy@a28053d Toy now fits into the C spec. Fixed #158 Addendum: MacOS test caught an error: error: a function declaration without a prototype is deprecated in all versions of C That took 3 attempts to fix c...

github.com/Ratstail91/T...

Top-tier commit message.

On the upside, I reworked Toy_String, so now Toy is C spec compliant across all platforms.

In other words, it shouldn't cause any errors or warnings if someone just dropped it into their project's toolchain.

#langdev #toylang

1 0 0 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

So how is your day going? I spent the morning having a great chat with a VP from a company worth over 27 billion USD about my scripting language Toy.

Yes I am serious, and no I will not elaborate.

#toylang #langdev

github.com/Ratstail91/Toy

1 0 1 0
Post image

It's the little things that matter.

github.com/Ratstail91/Toy

#toylang #langdev

1 0 0 0
Post image

Assignment within an array is working - even within nested arrays! It's not easy to get fundamental features working, but it's slowly getting closer to my goal.

#toylang #langdev #coding

github.com/Ratstail91/Toy

0 0 1 0
Preview
Toy/scripts/fizzbuzz.toy at v2 · Ratstail91/Toy The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

The 'while' keyword is working, though break and continue aren't done yet.

But, it does mean fizzbuzz is possible - I'm turing complete, bitches!

#toylang #langdev #coding

github.com/Ratstail91/T...

0 0 1 0
Preview
GitHub - Ratstail91/Toy: The Toy Programming Language. The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

IF. THEN. ELSE.

IS.

FINISHED.

Only took about 8 days lol. On the upside, a lot of the groundwork for the other control flow keywords is in place now.

#toylang #langdev #coding

github.com/Ratstail91/Toy

0 0 0 0

github.com/Ratstail91/T...

Even when I'm trying to rest I'm still doing stuff :/

Types aren't working yet, but this is how they will.

#coding #langdev #toylang

0 0 0 0
Preview
Benchmarks · Ratstail91/Toy@5d37d06 The Toy Programming Language. Contribute to Ratstail91/Toy development by creating an account on GitHub.

github.com/Ratstail91/T...

I'm worn out. At some point, you just end up hacking away at the code like you're hacking a carcass with a blunt knife.

#programming #coding #langdev #toylang

1 0 1 0