Skip to content

Instantly share code, notes, and snippets.

Meinte Boersma dslmeinte

Block or report user

Report or block dslmeinte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dslmeinte
dslmeinte / projection-essence.ts
Last active Jul 17, 2017
Projection of a directed graph (pseudo-TS-code)
View projection-essence.ts
export enum Style {
none, selected, highlighted
}
export abstract class Element {
abstract style(): Style;
}
export class ProjectedVertex extends Element {
id: number;
@dslmeinte
dslmeinte / model-essence.ts
Last active Jul 17, 2017
Model of a directed graph (pseudo-TS-code)
View model-essence.ts
export class Point { x: number; y: number; }
export class Vertex { id: number; position: Point; toIds: number[]; }
export class Model { vertices: Vertex[]; }
@dslmeinte
dslmeinte / DomainModelExtensions.xtend
Created Nov 23, 2011
extensions for model elements of the enhanced DomainModel example (Xtext 1.0)
View DomainModelExtensions.xtend
package nl.dslmeinte.xtext.examples.domainmodel.services
import nl.dslmeinte.xtext.examples.domainmodel.domainModel.Entity
import nl.dslmeinte.xtext.examples.domainmodel.domainModel.Reference
import nl.dslmeinte.xtext.examples.domainmodel.domainModel.Attribute
import nl.dslmeinte.xtext.examples.domainmodel.domainModel.StructuralFeature
/**
* Extensions for model elements of a domain model.
* Usage in Xtend files:
@dslmeinte
dslmeinte / DomainModel.xtext
Created Nov 23, 2011
grammar for Xtext 1.0's DomainModel example, enhanced with "path expressions"
View DomainModel.xtext
/*
* Grammar taken from the Xtext 1.0.x Domainmodel example
* and enhanced with path expressions: see .
*/
grammar nl.dslmeinte.xtext.examples.domainmodel.DomainModel with org.eclipse.xtext.common.Terminals
generate domainModel "http://www.dslmeinte.nl/xtext/examples/DomainModel"
DomainModel:
You can’t perform that action at this time.