Git Product home page Git Product logo

mojo's Introduction

mojo is an object language which is influenced by in a lot of ways by
io and smalltalk. I originally started it because I wanted to understand
smalltalk, but I felt squeak a little too weird to spend time in it - I
guess you can call it a pretty serious case of NIH.


Building
========

Just type 'make' to build the 'mojo' executable.

Whirlwind tour of the language
==============================

The language is quite simple : it consists, put simply, of blocks, variable declarations and messages.

# This is a comment

# Assign a value to x:
x := 3;

# Send a message to x:
x + 3;

# Test the value of x, and execute a block it is true
# Note that a block doesn't get parameters, only 
x = 3 ifTrue: [ # doStuff... ]

Hacking
=======

mojo is as simple as possible. I'm not an expert in language implementation, but the interpreter loosely
follows the eval/apply pattern.

Coding conventions
==================

All the names beginning with mojo_ are internal.

mojo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.