Skip to content
forked from SOM-st/CSOM

CSOM - C implementation of the Simple Object Machine Smalltalk

License

Notifications You must be signed in to change notification settings

charliegracie/CSOM

This branch is 138 commits behind SOM-st/CSOM:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c19a76b · Oct 18, 2015

History

49 Commits
Oct 25, 2013
Oct 20, 2013
Oct 25, 2013
Oct 20, 2013
Oct 16, 2015
Sep 23, 2013
Sep 23, 2013
Oct 25, 2013
Sep 23, 2013
Sep 23, 2013
Sep 23, 2013
Sep 23, 2013
Sep 29, 2013
Oct 16, 2015
Sep 23, 2013
Sep 23, 2013
Sep 23, 2013

Repository files navigation

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

About

CSOM - C implementation of the Simple Object Machine Smalltalk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.2%
  • Objective-C 9.2%
  • Makefile 2.8%
  • Ruby 2.1%
  • Other 0.7%