New track for the Squirrel language

I’m interested in creating a language track for Squirrel: a lightweight and object-oriented programming language that feels like Lua, but with a more C-like syntax. As I wanted to show how fun it can be to learn that language, I took the opportunity to create a test unit framework that can be found here. The language itself is made by Alberto Demichelis, but I’m also working on it in my free time.

Right now I’m trying to see what exercises I could implement. I already made a “Hello World” exercise in the meantime to test the unit testing framework. And as simplistic as it is, it turned out to be really good. So I’m really happy to do something about this language.

If anything is needed, don’t hesitate to reply here. I’d be glad to see what you think.

New track docs
It looks like you covered bunch of the steps already. Mind sharing the hello world test and solution?

Sure! Here is what I did for the “Hello World” program ^^

hello_world.nut

HelloWorld <- class {}

HelloWorld.hello <- function() {
	return "Hello, World!"
}

hello_world_test.nut

dofile("hello_world.nut")

HelloWorldTest <- class extends Test {
	function test_say_hi() {
		assert_equal("Hello, World!", HelloWorld.hello())
	}
}

To execute the test, you simply need to download the testnut.nut from my repo, install the Squirrel language, and execute sq testnut.nut hello_world_test.nut

1 Like

Looks good! Thanks :slight_smile:

Maybe @ErikSchierboom wouldn’t mind working some magic to get you started, so I don’t have to dig into my memory banks (/notes) to work out the steps? :grin:

@FlutterTal what’s your github username?

Yeah my Github username is still FlutterTal. That makes me think, I should really take the opportunity to use it if need be

Is there anything I need to know before I do anything? I heard there are at least 20 exercises I need to prepare, and I saw the Exercism doc to see what I can do. But is there anything else before I really start?

Repos created! You should have an invite.

2 Likes

Thanks @ErikSchierboom :blue_heart:

Nope - crack on with adding exercises and making the test runner. Lots of people here have made tracks from scratch and will be happy to help if you ask questions in the Building Exercism section :slight_smile:

2 Likes

Ahh, that new track smell! I’ve launched two tracks and manage a few others so I’d be delighted to help out with any questions or issues.

1 Like

So, I’ve been writing some exercises already (and I will keep doing it), but I feel like I might need help for the CI part. I still have my unit test framework if anyone needs it to make it happen, but it’s likely I will delegate this task to someone else

You can get pretty far for large parts by copy/pasting from other tracks :slight_smile: The “run tests and format output” is track specific but “run the tests” is a bit more generic.