Demo entry 6632764

xtext

   

Submitted by anonymous on Jul 29, 2017 at 11:57
Language: Xtend. Code size: 462 Bytes.

grammer de.luh.mbse.simpleuniversity.Scml
with org.eclipse.xtext.common.Terminals
import "http://de.luh.mbse.simpleuniversity"

University:
	'University' name=ID 
	'{'
		( 'faculties' '{' faculty+=Faculty+ '}' )?
	'}';

Faculty:
	'Facluty' name=ID
	'{'
		//extend here
		( 'director' director=[Person] )?
	'}';

Person:
	//extend here

Employee:
	'Employee' name=ID
	//extend here
	;

Professor:
	'Professor' name=ID
	//extend here
	;

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).