node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป

menace

menace

This is a very early implementation of a Smalltalk/Self/Io-inspired language.

At the moment there's nothing useful to the end user but it might be worth taking a peek if you're interested in observing a language evolve from its beginnings...

Syntax

No-argument messages

console inspect

Messages with arguments

console print:"Hello"
console print:"whoops!" withPrefix:"DEBUG"

It's possible to define selectors with comma-separated argument fragments:

canvas drawLineFrom:10,10 to:30,30

TODO

  • Flesh-out object model
  • While, if control structures
  • Binary expressions
  • Collection parsing + object model