blob: 7c37eaa060faa1cb63760adb798433d63314eec3 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
grammar org.eclipse.papyrus.marte.textedit.stereotypeapplicationwithvsl.xtext.StereotypeApplicationWithVSL
//with org.eclipse.xtext.common.Terminals
with org.eclipse.papyrus.marte.vsl.VSL
import "http://www.eclipse.org/uml2/5.0.0/UML" as uml
generate stereotypeApplicationWithVSL "http://www.eclipse.org/papyrus/marte/textedit/stereotypeapplicationwithvsl/xtext/StereotypeApplicationWithVSL"
StereotypeApplicationsRule :
(stereotypeApplications += StereotypeApplicationRule)* ;
StereotypeApplicationRule :
'<<' stereotype = [uml::Stereotype] '>>'
(tagSpecification += TagSpecificationRule (',' tagSpecification += TagSpecificationRule)*)?;
TagSpecificationRule :
property = [uml::Property] (value = ExpressionValueRule) ;
ExpressionValueRule :
'=' expression = Expression ;