Skip to content

Commit

Permalink
[lang] Create a batch compiler for SARL.
Browse files Browse the repository at this point in the history
see #149

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Oct 10, 2016
1 parent 5d02531 commit b97ec38
Show file tree
Hide file tree
Showing 14 changed files with 2,384 additions and 15 deletions.
8 changes: 4 additions & 4 deletions eclipse-sarl/features/io.sarl.compiler/feature.xml
Expand Up @@ -225,13 +225,15 @@
<import plugin="io.sarl.lang.core" version="0.5.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtend.core" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.osgi" version="3.11.1" match="greaterOrEqual"/>
<import plugin="com.ibm.icu" version="56.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.codegen" version="2.11.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext.xbase" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext.common.types" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.antlr.runtime" version="3.2.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext.xbase.lib" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext.util" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.core" version="3.12.1" match="greaterOrEqual"/>
<import plugin="org.apache.log4j"/>
<import plugin="io.sarl.lang" version="0.5.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext.ui" version="2.10.0" match="greaterOrEqual"/>
Expand All @@ -242,7 +244,9 @@
<import plugin="org.eclipse.xtend.ide" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtext.common.types.ui" version="2.10.0" match="greaterOrEqual"/>
<import plugin="org.apache.log4j" version="1.2.15" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.ui" version="3.12.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.compare" version="3.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.debug.ui" version="3.7.201" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui" version="3.108.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui.editors" version="3.10.0" match="greaterOrEqual"/>
<import plugin="org.arakhne.afc.core.references" version="14.0.0" match="greaterOrEqual"/>
Expand Down Expand Up @@ -280,10 +284,6 @@
<import plugin="org.eclipse.xtext.xbase.ide" version="2.10.0" match="compatible"/>
<import feature="io.sarl.lib" version="0.5.0"/>
<import feature="org.eclipse.xtend.sdk" version="2.10.0.v201605250459"/>
<import plugin="org.eclipse.osgi" version="3.11.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.core" version="3.12.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.ui" version="3.12.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.debug.ui" version="3.7.201" match="greaterOrEqual"/>
<import plugin="org.antlr.runtime" version="3.2.0" match="greaterOrEqual"/>
</requires>

Expand Down
5 changes: 3 additions & 2 deletions eclipse-sarl/plugins/io.sarl.lang/META-INF/MANIFEST.MF
Expand Up @@ -10,14 +10,14 @@ Require-Bundle: io.sarl.lang.core;bundle-version="0.5.0";visibility:=reexport,
org.eclipse.xtend.core;bundle-version="2.10.0",
org.eclipse.xtext;bundle-version="2.10.0",
org.eclipse.osgi;bundle-version="3.11.1",
com.ibm.icu;bundle-version="56.1.0",
org.eclipse.emf.codegen;bundle-version="2.11.0",
org.eclipse.xtext.xbase;bundle-version="2.10.0",
org.eclipse.xtext.common.types;bundle-version="2.10.0",
org.antlr.runtime;bundle-version="3.2.0",
org.eclipse.xtext.xbase.lib;bundle-version="2.10.0",
org.objectweb.asm;bundle-version="5.0.1";resolution:=optional,
org.eclipse.xtext.util;bundle-version="2.10.0"
org.eclipse.xtext.util;bundle-version="2.10.0",
org.eclipse.jdt.core;bundle-version="3.12.1"
Bundle-Activator: io.sarl.lang.SARLLangActivator
Export-Package: io.sarl.lang,
io.sarl.lang.actionprototype,
Expand All @@ -27,6 +27,7 @@ Export-Package: io.sarl.lang,
io.sarl.lang.codebuilder.appenders,
io.sarl.lang.codebuilder.builders,
io.sarl.lang.compiler,
io.sarl.lang.compiler.batch,
io.sarl.lang.controlflow,
io.sarl.lang.documentation,
io.sarl.lang.formatting2,
Expand Down
Expand Up @@ -21,6 +21,7 @@

package io.sarl.lang;

import com.google.inject.Injector;

/**
* Initialization support for running Xtext languages
Expand All @@ -35,9 +36,11 @@
public class SARLStandaloneSetup extends SARLStandaloneSetupGenerated {

/** Set up the EMF modules for the SARL language.
*
* @return the injector.
*/
public static void doSetup() {
new SARLStandaloneSetup().createInjectorAndDoEMFRegistration();
public static Injector doSetup() {
return new SARLStandaloneSetup().createInjectorAndDoEMFRegistration();
}

}

0 comments on commit b97ec38

Please sign in to comment.