Coder Social home page Coder Social logo

tonel's Introduction

Tonel Tonel-dev

Tonel is a file-per-class format for monticello repositories.

Installing

Pharo > 6.1

Tonel comes out of the box in Pharo > 6.1

Pharo 4.0 to 6.0

Metacello new
  baseline: 'Metacello';
  repository: 'github://Metacello/metacello:pharo-6.1_dev/repository';
  get.
Metacello new
  baseline: 'Metacello';
  repository: 'github://Metacello/metacello:pharo-6.1_dev/repository';
  onConflict: [:ex | ex allow];
  load.
Metacello new 
  repository: 'github://pharo-vcs/tonel';
  baseline: 'Tonel';
  load.

Tonel Spec

[comment]
type { typeDefinition }
(
    [{ methodMetadata }]
    method [
        methodBody ] 
)*
  1. comment

    comment declaration is this:

    " comment string "

    it's optional (but normally there, in a good design ;)

  2. type

    Class|Trait|Extension

  3. typeDefinition

    STON file with class/trait/extension metadata

  4. methodMetadata

    STON file with method metadata it's optional (but also, recommended)

  5. method

    method declaration is this:

    Class[ class] >> selector

  6. methodBody

    the method body (we do not parse contents, that's a classbuilder task)

Miscelanous

When using Iceberg to save Smalltalk in this format it is customary to follow the convention of saving Tonel source in a in immediate project sub directory called src. To cause Iceberg to use Tonel format you must additionaly create a file called .properties in this directory containing the following directive:

{
	#format : #tonel
}

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.