fix: ".nom" -> ".nom.nom"

This commit is contained in:
Laurent Fainsin 2021-12-04 12:34:01 +01:00
parent c540fd69ad
commit b700810bb1
7 changed files with 540 additions and 7 deletions

View file

@ -1 +0,0 @@
/fr/

View file

@ -0,0 +1,496 @@
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:mtl="http://www.eclipse.org/acceleo/mtl/3.0" xmlns:ocl.ecore="http://www.eclipse.org/ocl/1.1.0/Ecore">
<mtl:Module name="toPrototype" nsURI="fr::n7::game::toPrototype::main::toPrototype" startHeaderPosition="29" endHeaderPosition="146">
<input>
<takesTypesFrom href="http://www.n7.fr/game/xtext/Game#/"/>
</input>
<ownedModuleElement xsi:type="mtl:Template" name="jeuToPrototype" visibility="Public" main="true">
<body xsi:type="mtl:FileBlock" openMode="OverWrite">
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="public static void main(String"/>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="[">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="]">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" args) {&#xA;&#xA;Condition vraie = new Condition(new ConditionEt(new ConditionBoolean(true)));&#xA;&#xA;&#xA;List&lt;Objet> jeu_objets = new ArrayList&lt;>();&#xA;"/>
<body xsi:type="mtl:ForBlock">
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="&#x9;List&lt;Description> objet_"/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<source xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Nom"/>
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Objet/nom"/>
</source>
<referredProperty xsi:type="ecore:EAttribute" href="http://www.n7.fr/game/xtext/Game#//Nom/nom"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="_descriptions = new new ArrayList&lt;>();&#xA;"/>
<body xsi:type="mtl:ForBlock">
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="&#x9;&#x9;objet_"/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<source xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Nom"/>
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Objet/nom"/>
</source>
<referredProperty xsi:type="ecore:EAttribute" href="http://www.n7.fr/game/xtext/Game#//Nom/nom"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="_descriptions.add(&#xA;&#x9;&#x9;&#x9;new Description(&#xA;&#x9;&#x9;&#x9;&#x9;"/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<source xsi:type="ocl.ecore:VariableExp" name="d" referredVariable="/0/jeuToPrototype/%/%.4/%.3/d">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Description"/>
</source>
<referredProperty xsi:type="ecore:EAttribute" href="http://www.n7.fr/game/xtext/Game#//Description/texte"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=",&#xA;&#x9;&#x9;&#x9;&#x9;vraie));&#xA;"/>
<loopVariable name="d">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Description"/>
</loopVariable>
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/10/OrderedSet(Description)">
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Objet/descriptions"/>
</iterSet>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="&#x9;&#xA;&#x9;Objet objet_"/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<source xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Nom"/>
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Objet/nom"/>
</source>
<referredProperty xsi:type="ecore:EAttribute" href="http://www.n7.fr/game/xtext/Game#//Nom/nom"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" = new Objet(&#xA;&#x9; "/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<source xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Nom"/>
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Objet/nom"/>
</source>
<referredProperty xsi:type="ecore:EAttribute" href="http://www.n7.fr/game/xtext/Game#//Nom/nom"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=",&#xA;&#x9; "/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/>
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EAttribute" href="http://www.n7.fr/game/xtext/Game#//Objet/taille"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=",&#xA;&#x9; vraie,&#xA;&#x9; objet_"/>
<body xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Nom"/>
<source xsi:type="ocl.ecore:VariableExp" name="o" referredVariable="/0/jeuToPrototype/%/%.4/o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Objet/nom"/>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="_descriptions);&#xA;&#x9;jeu_objets.add(tentative_objet);&#xA;"/>
<loopVariable name="o">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</loopVariable>
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/10/OrderedSet(Objet)">
<source xsi:type="ocl.ecore:VariableExp" name="jeu" referredVariable="/0/jeuToPrototype/jeu">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</source>
<referredProperty xsi:type="ecore:EReference" href="http://www.n7.fr/game/xtext/Game#//Jeu/objets"/>
</iterSet>
</body>
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="&#xA;}&#xA;"/>
<fileUrl xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="Prototype.java">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
</fileUrl>
<charset xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="UTF-8">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
</charset>
</body>
<parameter name="jeu">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</parameter>
</ownedModuleElement>
</mtl:Module>
<ecore:EPackage name="additions">
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_String_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Integer_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Real_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Real"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ecore_EObject_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
</eAnnotations>
<eOperations name="jeuToPrototype">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<contents xsi:type="ocl.ecore:Constraint"/>
</eAnnotations>
<eAnnotations source="MTL" references="/0/jeuToPrototype"/>
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<eParameters name="jeu">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</eParameters>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_OclAny_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Collection(T)_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Collection(T)"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_Sequence(T)_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="oclstdlib_OrderedSet(T)_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="game_Jeu_Class">
<eAnnotations source="http://www.eclipse.org/ocl/1.1.0/OCL">
<references href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</eAnnotations>
</eClassifiers>
</ecore:EPackage>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ecore:EPackage name="collections">
<eClassifiers xsi:type="ocl.ecore:OrderedSetType" name="OrderedSet(Objet)" instanceClassName="java.util.LinkedHashSet">
<elementType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</eClassifiers>
<eClassifiers xsi:type="ocl.ecore:OrderedSetType" name="OrderedSet(Description)" instanceClassName="java.util.LinkedHashSet">
<elementType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Description"/>
</eClassifiers>
</ecore:EPackage>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Description"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Description"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Description"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="i">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Objet"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.n7.fr/game/xtext/Game#//Jeu"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="i">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/>
</ocl.ecore:Variable>
<ocl.ecore:Variable name="self">
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
</ocl.ecore:Variable>
<ecore:EAnnotation source="positions">
<eAnnotations source="positions.0" references="/0/jeuToPrototype">
<details key="start" value="88"/>
<details key="end" value="800"/>
<details key="line" value="5"/>
</eAnnotations>
<eAnnotations source="positions.1" references="/0/jeuToPrototype/%">
<details key="start" value="149"/>
<details key="end" value="788"/>
<details key="line" value="7"/>
</eAnnotations>
<eAnnotations source="positions.2" references="/0/jeuToPrototype/%/%">
<details key="start" value="191"/>
<details key="end" value="221"/>
<details key="line" value="8"/>
</eAnnotations>
<eAnnotations source="positions.3" references="/0/jeuToPrototype/%/%.1">
<details key="start" value="222"/>
<details key="end" value="225"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.4" references="/0/jeuToPrototype/%/%.2">
<details key="start" value="228"/>
<details key="end" value="231"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.5" references="/0/jeuToPrototype/%/%.3">
<details key="start" value="233"/>
<details key="end" value="367"/>
<details key="line" value="8"/>
</eAnnotations>
<eAnnotations source="positions.6" references="/0/jeuToPrototype/%/%.4">
<details key="start" value="367"/>
<details key="end" value="777"/>
<details key="line" value="14"/>
</eAnnotations>
<eAnnotations source="positions.7" references="/0/jeuToPrototype/%/%.4/%">
<details key="start" value="398"/>
<details key="end" value="423"/>
<details key="line" value="15"/>
</eAnnotations>
<eAnnotations source="positions.8" references="/0/jeuToPrototype/%/%.4/%.1">
<details key="start" value="424"/>
<details key="end" value="433"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.9" references="/0/jeuToPrototype/%/%.4/%.1/%">
<details key="start" value="424"/>
<details key="end" value="429"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.10" references="/0/jeuToPrototype/%/%.4/%.1/%/o">
<details key="start" value="424"/>
<details key="end" value="425"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.11" references="/0/jeuToPrototype/%/%.4/%.2">
<details key="start" value="435"/>
<details key="end" value="474"/>
<details key="line" value="15"/>
</eAnnotations>
<eAnnotations source="positions.12" references="/0/jeuToPrototype/%/%.4/%.3">
<details key="start" value="475"/>
<details key="end" value="611"/>
<details key="line" value="16"/>
</eAnnotations>
<eAnnotations source="positions.13" references="/0/jeuToPrototype/%/%.4/%.3/%">
<details key="start" value="516"/>
<details key="end" value="524"/>
<details key="line" value="17"/>
</eAnnotations>
<eAnnotations source="positions.14" references="/0/jeuToPrototype/%/%.4/%.3/%.1">
<details key="start" value="525"/>
<details key="end" value="534"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.15" references="/0/jeuToPrototype/%/%.4/%.3/%.1/%">
<details key="start" value="525"/>
<details key="end" value="530"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.16" references="/0/jeuToPrototype/%/%.4/%.3/%.1/%/o">
<details key="start" value="525"/>
<details key="end" value="526"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.17" references="/0/jeuToPrototype/%/%.4/%.3/%.2">
<details key="start" value="536"/>
<details key="end" value="579"/>
<details key="line" value="17"/>
</eAnnotations>
<eAnnotations source="positions.18" references="/0/jeuToPrototype/%/%.4/%.3/%.3">
<details key="start" value="580"/>
<details key="end" value="587"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.19" references="/0/jeuToPrototype/%/%.4/%.3/%.3/d">
<details key="start" value="580"/>
<details key="end" value="581"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.20" references="/0/jeuToPrototype/%/%.4/%.3/%.4">
<details key="start" value="589"/>
<details key="end" value="604"/>
<details key="line" value="19"/>
</eAnnotations>
<eAnnotations source="positions.21" references="/0/jeuToPrototype/%/%.4/%.3/d">
<details key="start" value="481"/>
<details key="end" value="496"/>
<details key="line" value="16"/>
</eAnnotations>
<eAnnotations source="positions.22" references="/0/jeuToPrototype/%/%.4/%.3/%.5">
<details key="start" value="499"/>
<details key="end" value="513"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.23" references="/0/jeuToPrototype/%/%.4/%.3/%.5/o">
<details key="start" value="499"/>
<details key="end" value="500"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.24" references="/0/jeuToPrototype/%/%.4/%.4">
<details key="start" value="612"/>
<details key="end" value="627"/>
<details key="line" value="22"/>
</eAnnotations>
<eAnnotations source="positions.25" references="/0/jeuToPrototype/%/%.4/%.5">
<details key="start" value="628"/>
<details key="end" value="637"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.26" references="/0/jeuToPrototype/%/%.4/%.5/%">
<details key="start" value="628"/>
<details key="end" value="633"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.27" references="/0/jeuToPrototype/%/%.4/%.5/%/o">
<details key="start" value="628"/>
<details key="end" value="629"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.28" references="/0/jeuToPrototype/%/%.4/%.6">
<details key="start" value="639"/>
<details key="end" value="658"/>
<details key="line" value="23"/>
</eAnnotations>
<eAnnotations source="positions.29" references="/0/jeuToPrototype/%/%.4/%.7">
<details key="start" value="659"/>
<details key="end" value="668"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.30" references="/0/jeuToPrototype/%/%.4/%.7/%">
<details key="start" value="659"/>
<details key="end" value="664"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.31" references="/0/jeuToPrototype/%/%.4/%.7/%/o">
<details key="start" value="659"/>
<details key="end" value="660"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.32" references="/0/jeuToPrototype/%/%.4/%.8">
<details key="start" value="670"/>
<details key="end" value="677"/>
<details key="line" value="24"/>
</eAnnotations>
<eAnnotations source="positions.33" references="/0/jeuToPrototype/%/%.4/%.9">
<details key="start" value="678"/>
<details key="end" value="686"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.34" references="/0/jeuToPrototype/%/%.4/%.9/o">
<details key="start" value="678"/>
<details key="end" value="679"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.35" references="/0/jeuToPrototype/%/%.4/%.10">
<details key="start" value="688"/>
<details key="end" value="713"/>
<details key="line" value="25"/>
</eAnnotations>
<eAnnotations source="positions.36" references="/0/jeuToPrototype/%/%.4/%.11">
<details key="start" value="714"/>
<details key="end" value="719"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.37" references="/0/jeuToPrototype/%/%.4/%.11/o">
<details key="start" value="714"/>
<details key="end" value="715"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.38" references="/0/jeuToPrototype/%/%.4/%.12">
<details key="start" value="721"/>
<details key="end" value="771"/>
<details key="line" value="27"/>
</eAnnotations>
<eAnnotations source="positions.39" references="/0/jeuToPrototype/%/%.4/o">
<details key="start" value="373"/>
<details key="end" value="382"/>
<details key="line" value="14"/>
</eAnnotations>
<eAnnotations source="positions.40" references="/0/jeuToPrototype/%/%.4/%.13">
<details key="start" value="385"/>
<details key="end" value="395"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.41" references="/0/jeuToPrototype/%/%.4/%.13/jeu">
<details key="start" value="385"/>
<details key="end" value="388"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.42" references="/0/jeuToPrototype/%/%.5">
<details key="start" value="778"/>
<details key="end" value="781"/>
<details key="line" value="30"/>
</eAnnotations>
<eAnnotations source="positions.43" references="/0/jeuToPrototype/%/%.6">
<details key="start" value="156"/>
<details key="end" value="172"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.44" references="/0/jeuToPrototype/%/%.7">
<details key="start" value="181"/>
<details key="end" value="188"/>
<details key="line" value="0"/>
</eAnnotations>
<eAnnotations source="positions.45" references="/0/jeuToPrototype/jeu">
<details key="start" value="120"/>
<details key="end" value="129"/>
<details key="line" value="5"/>
</eAnnotations>
</ecore:EAnnotation>
</xmi:XMI>

View file

@ -0,0 +1,35 @@
[comment encoding = UTF-8 /]
[module toPrototype('http://www.n7.fr/game/xtext/Game')]
[template public jeuToPrototype(jeu : Jeu)]
[comment @main/]
[file ('Prototype.java', false, 'UTF-8')]
public static void main(String['['/][']'/] args) {
Condition vraie = new Condition(new ConditionEt(new ConditionBoolean(true)));
List<Objet> jeu_objets = new ArrayList<>();
[for (o : Objet | jeu.objets)]
List<Description> objet_[o.nom.nom/]_descriptions = new new ArrayList<>();
[for (d : Description | o.descriptions)]
objet_[o.nom.nom/]_descriptions.add(
new Description(
[d.texte/],
vraie));
[/for]
Objet objet_[o.nom.nom/] = new Objet(
[o.nom.nom/],
[o.taille/],
vraie,
objet_[o.nom/]_descriptions);
jeu_objets.add(tentative_objet);
[/for]
}
[/file]
[/template]

View file

@ -340,6 +340,9 @@ public class ToPrototype extends AbstractAcceleoGenerator {
@Override
public void registerPackages(ResourceSet resourceSet) {
super.registerPackages(resourceSet);
if (!isInWorkspace(fr.n7.game.xtext.game.GamePackage.class)) {
resourceSet.getPackageRegistry().put(fr.n7.game.xtext.game.GamePackage.eINSTANCE.getNsURI(), fr.n7.game.xtext.game.GamePackage.eINSTANCE);
}
/*
* If you want to change the content of this method, do NOT forget to change the "@generated"

View file

@ -1,5 +1,5 @@
[comment encoding = UTF-8 /]
[module toPrototype('http://www.n7.fr/xtext/GAME')]
[module toPrototype('http://www.n7.fr/game/xtext/Game')]
[template public jeuToPrototype(jeu : Jeu)]

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="toPrototype" name="fr.n7.game.toPrototype">
<property name="ECLIPSE_HOME" value="../../../../../../../../mnt/n7fs/ens/tp_cregut/eclipse-gls-2020-09"/>
<property name="ECLIPSE_WORKSPACE" value="../.."/>
<property name="ECLIPSE_WORKSPACE" value="../../../runtime-EclipseXtext"/>
<!-- The classpath with only the dependencies used by the project -->
<path id="fr.n7.game.toPrototype.libraryclasspath">

View file

@ -27,7 +27,7 @@ rule Lieu2PetriNet {
to
-- PLACES d'un Lieu
p: petrinet!Place(
name <- 'lieu_' + l.nom,
name <- 'lieu_' + l.nom.nom,
tokens <- 0,
network <- p.network())
}
@ -38,16 +38,16 @@ rule Chemin2PetriNet {
to
-- TRANSITIONS d'un Chemin
t: petrinet!Transition(
name <- 'chemin_' + c.nom,
name <- 'chemin_' + c.nom.nom,
network <- t.network()),
-- ARCS d'un Chemin
arcIn: petrinet!Arc(
place <- c.getPlaceOf('lieu_' + c.lieuIn.nom),
place <- c.getPlaceOf('lieu_' + c.lieuIn.nom.nom),
transition <- t,
outgoing <- false,
weight <- 1),
arcOut: petrinet!Arc(
place <- c.getPlaceOf('lieu_' + c.lieuOu.nom),
place <- c.getPlaceOf('lieu_' + c.lieuOu.nom.nom),
transition <- t,
outgoing <- true,
weight <- 1)