CSOM - C implementation of the Simple Object Machine Smalltalk
C Objective-C Makefile C++ Ruby
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with smarr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CSOM.xcodeproj
build
core-lib @ 475be7e
doc
src
.gitignore
.gitmodules
.travis.yml
AUTHORS
Examples
INSTALL
LICENSE
Makefile
README.md
Smalltalk
TestSuite
som.sh

README.md

CSOM - The Simple Object Machine implemented in C

Introduction

SOM is a minimal Smalltalk dialect used to teach VM construction at the Hasso Plattner Institute. It was originally built at the University of Århus (Denmark) where it was also used for teaching.

Currently, implementations exist for Java (SOM), C (CSOM), C++ (SOM++), and Squeak/Pharo Smalltalk (AweSOM).

A simple SOM Hello World looks like:

Hello = (
  run = (
    'Hello World!' println.
  )
)

This repository contains a plain C implementation of SOM, including an implementation of the SOM standard library and a number of examples. Please see the main project page for links to the VM implementations.

CSOM can be built with Make:

$ make

Afterwards, the tests can be executed with:

./som.sh -cp Smalltalk TestSuite/TestHarness.som

A simple Hello World program is executed with:

./som.sh -cp Smalltalk Examples/Hello.som

The debug version of CSOM can be built using the debug target:

$ make debug

Information on previous authors are included in the AUTHORS file. This code is distributed under the MIT License. Please see the LICENSE file for details. Additional documentation, detailing for instance the object model and how to implement primitives, is available in the doc folder.

Build Status

Thanks to Travis CI, all commits of this repository are tested. The current build status is: Build Status