diff --git a/com.minres.coredsl.json.target/com.minres.coredsl.json.target.target b/com.minres.coredsl.json.target/com.minres.coredsl.json.target.target index 434e862..0ff1395 100644 --- a/com.minres.coredsl.json.target/com.minres.coredsl.json.target.target +++ b/com.minres.coredsl.json.target/com.minres.coredsl.json.target.target @@ -2,49 +2,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/com.minres.coredsl.json/META-INF/MANIFEST.MF b/com.minres.coredsl.json/META-INF/MANIFEST.MF index 60c1cc6..ec08878 100644 --- a/com.minres.coredsl.json/META-INF/MANIFEST.MF +++ b/com.minres.coredsl.json/META-INF/MANIFEST.MF @@ -12,6 +12,7 @@ Require-Bundle: com.minres.coredsl;bundle-version="2.0.0", org.eclipse.equinox.preferences;bundle-version="3.8.0", org.eclipse.xtend.lib;bundle-version="2.14.0", org.eclipse.xtext;bundle-version="2.22.0", + org.eclipse.emf.mwe.utils;bundle-version="1.6.2", org.apache.commons.logging;bundle-version="1.2.0", org.json;bundle-version="1.0.0" Bundle-RequiredExecutionEnvironment: JavaSE-11 diff --git a/com.minres.coredsl.json/src/com/minres/coredsl/json/CoreDslJsonGenerator.xtend b/com.minres.coredsl.json/src/com/minres/coredsl/json/CoreDslJsonGenerator.xtend index ffefd19..435bbdd 100644 --- a/com.minres.coredsl.json/src/com/minres/coredsl/json/CoreDslJsonGenerator.xtend +++ b/com.minres.coredsl.json/src/com/minres/coredsl/json/CoreDslJsonGenerator.xtend @@ -66,10 +66,10 @@ class CoreDslJsonGenerator extends AbstractGenerator { def Iterable allInstr(CoreDef core) { val unique = newLinkedHashMap - val instrList = if (core.contributingType.size == 0) + val instrList = if (core.providedInstructionSets.size == 0) core.instructions else { - val instrSets = core.contributingType?.map[InstructionSet i|i.allInstructionSets].flatten + val instrSets = core.providedInstructionSets?.map[InstructionSet i|i.allInstructionSets].flatten val seen = newLinkedHashSet seen.addAll(instrSets) seen.map[InstructionSet i|i.instructions].flatten @@ -97,11 +97,11 @@ class CoreDslJsonGenerator extends AbstractGenerator { def String getBitEncoding(Encoding encoding) '''«FOR field : encoding.fields»«field.regEx»«ENDFOR»''' - def dispatch getRegEx(BitField i) '''«FOR idx : i.right.value.intValue .. i.left.value.intValue».«ENDFOR»''' + def dispatch getRegEx(BitField i) '''«FOR idx : i.startIndex.value.intValue .. i.endIndex.value.intValue».«ENDFOR»''' def dispatch getRegEx(BitValue i) '''«i.value.toString(2)»''' - def dispatch asString(BitField i) '''«i.name»[«i.left.value.intValue»:«i.right.value.intValue»]''' + def dispatch asString(BitField i) '''«i.name»[«i.startIndex.value.intValue»:«i.endIndex.value.intValue»]''' def dispatch asString(BitValue i) { (i.value as BigIntegerWithRadix).toCString(2) diff --git a/pom.xml b/pom.xml index 650de74..2028fc5 100644 --- a/pom.xml +++ b/pom.xml @@ -7,13 +7,13 @@ pom - 2.22.0 - 2.11.3 + 2.26.0 + 2.12.2 UTF-8 11 11 - 1.7.0 + 2.6.0