Skip to content
Snippets Groups Projects
Commit 789c2f38 authored by Bernhard Johannes Berger's avatar Bernhard Johannes Berger
Browse files

Next DSL version.

parent 4917ba28
No related branches found
No related tags found
No related merge requests found
Pipeline #222263 passed
Showing
with 11 additions and 490 deletions
......@@ -13,15 +13,16 @@
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Launch EvoAl Eclipse"/>
<booleanAttribute key="default" value="true"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
<stringAttribute key="location" value="${workspace_loc}/../../runtime-EclipseXtext"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JAVA_COMMAND" value="java"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/OpenJDK 11 (x86_64)"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Zulu 17.30.15 [17.0.1]"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx2g"/>
......
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.eal.dsl.generator;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.generator.AbstractGenerator;
import org.eclipse.xtext.generator.IFileSystemAccess2;
import org.eclipse.xtext.generator.IGeneratorContext;
/**
* Generates code from your model files on save.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#code-generation
*/
@SuppressWarnings("all")
public class EvolutionaryAlgorithmLanguageGenerator extends AbstractGenerator {
@Override
public void doGenerate(final Resource resource, final IFileSystemAccess2 fsa, final IGeneratorContext context) {
}
}
......@@ -16,16 +16,14 @@ Require-Bundle: org.eclipse.xtext,
org.eclipse.emf.common,
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)",
de.evoal.languages.model.dl;bundle-version="1.0.0",
de.evoal.languages.model.ddl;bundle-version="1.0.0"
de.evoal.languages.model.ddl;bundle-version="1.0.0",
de.evoal.languages.model.generator;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: de.evoal.languages.model.generator.dsl,
de.evoal.languages.model.generator.dsl.services,
de.evoal.languages.model.generator.dsl.validation,
de.evoal.languages.model.generator.dsl.parser.antlr.internal,
de.evoal.languages.model.generator.dsl.generatorDSL,
de.evoal.languages.model.generator.dsl.serializer,
de.evoal.languages.model.generator.dsl.generatorDSL.impl,
de.evoal.languages.model.generator.dsl.generatorDSL.util,
de.evoal.languages.model.generator.dsl.scoping,
de.evoal.languages.model.generator.dsl.generator,
de.evoal.languages.model.generator.dsl.parser.antlr
......
source.. = src/,\
src-gen/,\
xtend-gen/
bin.includes = model/generated/,\
.,\
META-INF/,\
plugin.xml
bin.includes = .,\
META-INF/
bin.excludes = **/*.mwe2,\
**/*.xtend
additional.bundles = org.eclipse.xtext.xbase,\
......
# generated by Xtext 2.25.0
pluginName = de.evoal.languages.model.generator.dsl
providerName = EvoAl Project
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http://www.evoal.de/languages/model/generator/dsl/GeneratorDSL"
class = "de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage"
genModel = "model/generated/GeneratorDSL.genmodel" />
</extension>
</plugin>
......@@ -5,9 +5,7 @@ package de.evoal.languages.model.generator.dsl;
import com.google.inject.Guice;
import com.google.inject.Injector;
import de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage;
import de.evoal.languages.model.instance.dsl.InstanceLanguageStandaloneSetup;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.ISetup;
import org.eclipse.xtext.resource.IResourceFactory;
......@@ -30,9 +28,6 @@ public class GeneratorDSLStandaloneSetupGenerated implements ISetup {
}
public void register(Injector injector) {
if (!EPackage.Registry.INSTANCE.containsKey("http://www.evoal.de/languages/model/generator/dsl/GeneratorDSL")) {
EPackage.Registry.INSTANCE.put("http://www.evoal.de/languages/model/generator/dsl/GeneratorDSL", GeneratorDSLPackage.eINSTANCE);
}
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
......
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.generator.dsl.generatorDSL;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Apply Statement</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getFile <em>File</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getCount <em>Count</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getFunction <em>Function</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getGenerator <em>Generator</em>}</li>
* </ul>
*
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getApplyStatement()
* @model
* @generated
*/
public interface ApplyStatement extends Statement
{
/**
* Returns the value of the '<em><b>File</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>File</em>' attribute.
* @see #setFile(String)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getApplyStatement_File()
* @model
* @generated
*/
String getFile();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getFile <em>File</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>File</em>' attribute.
* @see #getFile()
* @generated
*/
void setFile(String value);
/**
* Returns the value of the '<em><b>Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Count</em>' attribute.
* @see #setCount(int)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getApplyStatement_Count()
* @model
* @generated
*/
int getCount();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getCount <em>Count</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Count</em>' attribute.
* @see #getCount()
* @generated
*/
void setCount(int value);
/**
* Returns the value of the '<em><b>Function</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Function</em>' containment reference.
* @see #setFunction(FunctionReference)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getApplyStatement_Function()
* @model containment="true"
* @generated
*/
FunctionReference getFunction();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getFunction <em>Function</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Function</em>' containment reference.
* @see #getFunction()
* @generated
*/
void setFunction(FunctionReference value);
/**
* Returns the value of the '<em><b>Generator</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Generator</em>' containment reference.
* @see #setGenerator(GeneratorReference)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getApplyStatement_Generator()
* @model containment="true"
* @generated
*/
GeneratorReference getGenerator();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.ApplyStatement#getGenerator <em>Generator</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Generator</em>' containment reference.
* @see #getGenerator()
* @generated
*/
void setGenerator(GeneratorReference value);
} // ApplyStatement
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.generator.dsl.generatorDSL;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Configuration</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.Configuration#getUses <em>Uses</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.Configuration#getGenerators <em>Generators</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.Configuration#getFunctions <em>Functions</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.Configuration#getStatements <em>Statements</em>}</li>
* </ul>
*
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getConfiguration()
* @model
* @generated
*/
public interface Configuration extends EObject
{
/**
* Returns the value of the '<em><b>Uses</b></em>' containment reference list.
* The list contents are of type {@link de.evoal.languages.model.generator.dsl.generatorDSL.Use}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Uses</em>' containment reference list.
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getConfiguration_Uses()
* @model containment="true"
* @generated
*/
EList<Use> getUses();
/**
* Returns the value of the '<em><b>Generators</b></em>' containment reference list.
* The list contents are of type {@link de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDefinition}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Generators</em>' containment reference list.
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getConfiguration_Generators()
* @model containment="true"
* @generated
*/
EList<GeneratorDefinition> getGenerators();
/**
* Returns the value of the '<em><b>Functions</b></em>' containment reference list.
* The list contents are of type {@link de.evoal.languages.model.generator.dsl.generatorDSL.ParametrizedFunctionDefinition}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Functions</em>' containment reference list.
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getConfiguration_Functions()
* @model containment="true"
* @generated
*/
EList<ParametrizedFunctionDefinition> getFunctions();
/**
* Returns the value of the '<em><b>Statements</b></em>' containment reference list.
* The list contents are of type {@link de.evoal.languages.model.generator.dsl.generatorDSL.Statement}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Statements</em>' containment reference list.
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getConfiguration_Statements()
* @model containment="true"
* @generated
*/
EList<Statement> getStatements();
} // Configuration
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.generator.dsl.generatorDSL;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Counter Range</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.CounterRange#getStart <em>Start</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.CounterRange#getEnd <em>End</em>}</li>
* </ul>
*
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getCounterRange()
* @model
* @generated
*/
public interface CounterRange extends Range
{
/**
* Returns the value of the '<em><b>Start</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Start</em>' attribute.
* @see #setStart(int)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getCounterRange_Start()
* @model
* @generated
*/
int getStart();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.CounterRange#getStart <em>Start</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Start</em>' attribute.
* @see #getStart()
* @generated
*/
void setStart(int value);
/**
* Returns the value of the '<em><b>End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>End</em>' attribute.
* @see #setEnd(int)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getCounterRange_End()
* @model
* @generated
*/
int getEnd();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.CounterRange#getEnd <em>End</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>End</em>' attribute.
* @see #getEnd()
* @generated
*/
void setEnd(int value);
} // CounterRange
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.generator.dsl.generatorDSL;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>For Statement</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ForStatement#getName <em>Name</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ForStatement#getRange <em>Range</em>}</li>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.ForStatement#getStatements <em>Statements</em>}</li>
* </ul>
*
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getForStatement()
* @model
* @generated
*/
public interface ForStatement extends Statement
{
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getForStatement_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.ForStatement#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Range</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Range</em>' containment reference.
* @see #setRange(Range)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getForStatement_Range()
* @model containment="true"
* @generated
*/
Range getRange();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.ForStatement#getRange <em>Range</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Range</em>' containment reference.
* @see #getRange()
* @generated
*/
void setRange(Range value);
/**
* Returns the value of the '<em><b>Statements</b></em>' containment reference list.
* The list contents are of type {@link de.evoal.languages.model.generator.dsl.generatorDSL.Statement}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Statements</em>' containment reference list.
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getForStatement_Statements()
* @model containment="true"
* @generated
*/
EList<Statement> getStatements();
} // ForStatement
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.generator.dsl.generatorDSL;
import de.evoal.languages.model.dl.FunctionDefinition;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Function Definition Reference</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.FunctionDefinitionReference#getDefinition <em>Definition</em>}</li>
* </ul>
*
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getFunctionDefinitionReference()
* @model
* @generated
*/
public interface FunctionDefinitionReference extends FunctionDefReference
{
/**
* Returns the value of the '<em><b>Definition</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Definition</em>' reference.
* @see #setDefinition(FunctionDefinition)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getFunctionDefinitionReference_Definition()
* @model
* @generated
*/
FunctionDefinition getDefinition();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.FunctionDefinitionReference#getDefinition <em>Definition</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Definition</em>' reference.
* @see #getDefinition()
* @generated
*/
void setDefinition(FunctionDefinition value);
} // FunctionDefinitionReference
/**
* generated by Xtext 2.25.0
*/
package de.evoal.languages.model.generator.dsl.generatorDSL;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Functions</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.evoal.languages.model.generator.dsl.generatorDSL.Functions#getFunctionReferences <em>Function References</em>}</li>
* </ul>
*
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getFunctions()
* @model
* @generated
*/
public interface Functions extends Range
{
/**
* Returns the value of the '<em><b>Function References</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Function References</em>' containment reference.
* @see #setFunctionReferences(FunctionReferences)
* @see de.evoal.languages.model.generator.dsl.generatorDSL.GeneratorDSLPackage#getFunctions_FunctionReferences()
* @model containment="true"
* @generated
*/
FunctionReferences getFunctionReferences();
/**
* Sets the value of the '{@link de.evoal.languages.model.generator.dsl.generatorDSL.Functions#getFunctionReferences <em>Function References</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Function References</em>' containment reference.
* @see #getFunctionReferences()
* @generated
*/
void setFunctionReferences(FunctionReferences value);
} // Functions
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment