Nobody Prefers Margarine
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    menacepublic

    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

    Keywords

    none

    install

    npm i menace

    Downloadslast 7 days

    2

    version

    0.0.2

    license

    ISC

    last publish

    collaborators

    • avatar