Measures Concepts
GitHub icon

epsilon

epsilon - Programming language

< >

epsilon is a programming language created in 1967.

#1335on PLDB 57Years Old

EOL is an imperative programming language for creating, querying and modifying EMF models. You can think of it as a mixture of Javascript and OCL, combining the best of both worlds. As such, it provides all the usual imperative features found in Javascript (e.g. statement sequencing, variables, for and while loops, if branches etc.) and all the nice features of OCL such as those handy collection querying functions.


Example from the web:
var m : new Model; m.name = "m"; // Create five packages for (i in 1.to(5)){ var package : Package = new Package; package.name = "p" + i; package.package = m; // Create three classes in each package for (j in 1.to(3)) { var class : Class = new Class; class.name = "c" + i + "" + j; class.isAbstract = false; class.package = package; } } // Assign random supertypes to the classes created for (c in Class.allInstances) { c.extends = Class.allInstances.random(); }

Language features

Feature Supported Token Example
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout