Bundle-SymbolicName: org.simantics.graph.compiler;singleton:=true
Bundle-Version: 1.1.16.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
-Require-Bundle: org.simantics.graph;bundle-version="1.0.0";visibility:=reexport,
- org.simantics.ltk.antlr;bundle-version="1.1.12",
- org.simantics.databoard;bundle-version="0.5.3",
- freemarker;bundle-version="2.3.16",
+Require-Bundle: org.simantics.graph;bundle-version="1.1.15";visibility:=reexport,
+ org.simantics.databoard;bundle-version="0.6.6",
+ freemarker;bundle-version="2.3.23",
org.junit;bundle-version="4.12.0";resolution:=optional
-Export-Package: org.simantics.graph.compiler
-Import-Package: org.antlr.runtime;bundle-version="[3.5.2,4.0.0)",
- org.antlr.runtime.debug;bundle-version="[3.5.2,4.0.0)",
- org.antlr.runtime.misc;bundle-version="[3.5.2,4.0.0)",
- org.antlr.runtime.tree;bundle-version="[3.5.2,4.0.0)"
+Export-Package: org.simantics.graph.compiler,
+ org.simantics.graph.compiler.internal.ltk
+Import-Package: org.antlr.runtime;version="[0.0.0,0.0.0]";bundle-version="3.5.2",
+ org.antlr.runtime.debug;version="[0.0.0,0.0.0]";bundle-version="3.5.2",
+ org.antlr.runtime.misc;version="[0.0.0,0.0.0]";bundle-version="3.5.2",
+ org.antlr.runtime.tree;version="[0.0.0,0.0.0]";bundle-version="3.5.2"
import java.util.Collection;
import org.simantics.graph.IResourceFile;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.representation.TransferableGraph1;
-import org.simantics.ltk.Problem;
/**
* Result of invoking GraphCompiler.compile.
- * @author Hannu Niemistö
+ * @author Hannu Niemist�
*/
public class CompilationResult {
TransferableGraph1 graph;
import org.simantics.databoard.binding.mutable.Variant;
import org.simantics.databoard.container.DataContainer;
import org.simantics.databoard.container.DataContainers;
+import org.simantics.graph.compiler.internal.ltk.FileSource;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.parsing.Parsing;
import org.simantics.graph.compiler.internal.procedures.AddConsistsOf;
import org.simantics.graph.compiler.internal.procedures.ApplyTemplates;
import org.simantics.graph.representation.Extensions;
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.FileSource;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
public class GraphCompiler {
-package org.simantics.ltk;
+package org.simantics.graph.compiler.internal.ltk;
import java.io.File;
import java.io.FileInputStream;
-package org.simantics.ltk;
+package org.simantics.graph.compiler.internal.ltk;
import java.io.IOException;
import java.io.InputStream;
-package org.simantics.ltk;
+package org.simantics.graph.compiler.internal.ltk;
import java.io.IOException;
import java.io.InputStream;
-package org.simantics.ltk;
+package org.simantics.graph.compiler.internal.ltk;
public class Location {
-package org.simantics.ltk;
+package org.simantics.graph.compiler.internal.ltk;
public class Problem {
Location location;
--- /dev/null
+package org.simantics.graph.compiler.internal.ltk;
+
+public enum Severity {
+ WARNING, ERROR
+}
-package org.simantics.ltk;
+package org.simantics.graph.compiler.internal.ltk;
import java.io.IOException;
import java.io.InputStream;
-package org.simantics.ltk.antlr;
+package org.simantics.graph.compiler.internal.ltk.antlr;
import java.io.IOException;
import org.antlr.runtime.Token;
import org.antlr.runtime.tree.CommonTree;
import org.antlr.runtime.tree.Tree;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
public class ANTLRUtils {
package org.simantics.graph.compiler.internal.parsing;
-import gnu.trove.map.hash.THashMap;
-import gnu.trove.procedure.TObjectIntProcedure;
-import gnu.trove.procedure.TObjectObjectProcedure;
-
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.antlr.runtime.tree.Tree;
import org.simantics.graph.compiler.SourceInfo.SourceFile;
import org.simantics.graph.compiler.SourceInfo.Variable;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.SourcePart;
+import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils;
import org.simantics.graph.compiler.internal.parsing.GraphParser.file_return;
import org.simantics.graph.compiler.internal.parsing.SourceSplitter.SplitPoint;
import org.simantics.graph.compiler.internal.store.VariableStore;
import org.simantics.graph.query.Paths;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.utils.GraphExecutor;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
-import org.simantics.ltk.SourcePart;
-import org.simantics.ltk.antlr.ANTLRUtils;
+
+import gnu.trove.map.hash.THashMap;
+import gnu.trove.procedure.TObjectIntProcedure;
+import gnu.trove.procedure.TObjectObjectProcedure;
public class Parsing implements Runnable {
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.procedure.TObjectProcedure;
-
import org.simantics.graph.query.Paths;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.store.IdentityStore;
import org.simantics.graph.store.IdentityStore.ConsistsOf;
import org.simantics.graph.store.StatementStore;
+import gnu.trove.procedure.TObjectProcedure;
+
public class AddConsistsOf implements Runnable {
GraphStore store;
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.map.hash.TIntObjectHashMap;
-
import java.util.Arrays;
import java.util.Collection;
import org.simantics.databoard.Bindings;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.templates.BuiltinTemplates;
import org.simantics.graph.compiler.internal.templates.GraphTemplate;
import org.simantics.graph.query.Res;
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
+
+import gnu.trove.map.hash.TIntObjectHashMap;
public class ApplyTemplates implements Runnable {
IGraph graph;
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.map.hash.TIntIntHashMap;
-
import org.simantics.graph.store.GraphStore;
+import gnu.trove.map.hash.TIntIntHashMap;
+
public class Compactify implements Runnable {
GraphStore store;
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.list.array.TIntArrayList;
-import gnu.trove.map.hash.TIntObjectHashMap;
-
import java.util.Collection;
import org.simantics.databoard.Bindings;
import org.simantics.databoard.binding.Binding;
import org.simantics.databoard.type.Datatype;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.PreValueStore;
import org.simantics.graph.query.IDataTypeQuery;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.store.StatementStore;
import org.simantics.graph.store.ValueStore;
-import org.simantics.ltk.Problem;
+
+import gnu.trove.list.array.TIntArrayList;
+import gnu.trove.map.hash.TIntObjectHashMap;
public class ConvertPreValues implements Runnable {
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.list.array.TIntArrayList;
-import gnu.trove.map.hash.TIntIntHashMap;
-
import org.simantics.graph.query.IGraph;
import org.simantics.graph.query.Paths;
import org.simantics.graph.query.Res;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.store.StatementStore;
+import gnu.trove.list.array.TIntArrayList;
+import gnu.trove.map.hash.TIntIntHashMap;
+
public class CreateInverseRelations implements Runnable {
IGraph graph;
GraphStore store;
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.procedure.TIntObjectProcedure;
-import gnu.trove.set.hash.THashSet;
-
import java.util.Collection;
import org.simantics.databoard.Bindings;
import org.simantics.databoard.binding.mutable.Variant;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.templates.TemplateDefinition;
import org.simantics.graph.compiler.internal.templates.TemplateDefinitionStore;
import org.simantics.graph.query.Paths;
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
+
+import gnu.trove.procedure.TIntObjectProcedure;
+import gnu.trove.set.hash.THashSet;
public class CreateTemplates implements Runnable {
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.procedure.TIntObjectProcedure;
-import gnu.trove.set.hash.TIntHashSet;
-
import org.simantics.graph.compiler.internal.store.IPreValue;
import org.simantics.graph.compiler.internal.store.PreValueStore;
import org.simantics.graph.query.Path;
import org.simantics.graph.query.Paths;
import org.simantics.graph.store.GraphStore;
+import gnu.trove.procedure.TIntObjectProcedure;
+import gnu.trove.set.hash.TIntHashSet;
+
public class DefaultValueTyping implements Runnable {
GraphStore store;
package org.simantics.graph.compiler.internal.procedures;
-import gnu.trove.list.array.TIntArrayList;
-import gnu.trove.map.hash.TIntIntHashMap;
-
import org.simantics.graph.query.Paths;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.store.IdentityStore;
+import gnu.trove.list.array.TIntArrayList;
+import gnu.trove.map.hash.TIntIntHashMap;
+
public class MergeEqualResources implements Runnable {
GraphStore store;
import java.util.Collection;
import org.simantics.databoard.binding.Binding;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.query.Path;
import org.simantics.graph.query.Paths;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
package org.simantics.graph.compiler.internal.store;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.store.IStore;
+import org.simantics.graph.store.IndexMappingUtils;
+
import gnu.trove.map.hash.TIntIntHashMap;
import gnu.trove.map.hash.TIntObjectHashMap;
import gnu.trove.set.hash.TIntHashSet;
-import org.simantics.graph.store.IStore;
-import org.simantics.graph.store.IndexMappingUtils;
-import org.simantics.ltk.Location;
-
public class LocationStore implements IStore {
TIntObjectHashMap<Location> locations;
package org.simantics.graph.compiler.internal.store;
-import gnu.trove.map.hash.TIntIntHashMap;
-import gnu.trove.map.hash.TIntObjectHashMap;
-import gnu.trove.procedure.TIntObjectProcedure;
-import gnu.trove.set.hash.TIntHashSet;
-
import java.util.ArrayList;
import java.util.Collection;
import org.simantics.databoard.Bindings;
import org.simantics.databoard.binding.Binding;
import org.simantics.databoard.binding.mutable.Variant;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.values.TreeValue;
import org.simantics.graph.query.IDataTypeQuery;
import org.simantics.graph.store.IStore;
import org.simantics.graph.store.IndexMappingUtils;
import org.simantics.graph.store.ValueStore;
-import org.simantics.ltk.Problem;
+
+import gnu.trove.map.hash.TIntIntHashMap;
+import gnu.trove.map.hash.TIntObjectHashMap;
+import gnu.trove.procedure.TIntObjectProcedure;
+import gnu.trove.set.hash.TIntHashSet;
public class PreValueStore implements IStore {
package org.simantics.graph.compiler.internal.store;
-import gnu.trove.map.hash.TIntIntHashMap;
-
import java.util.ArrayList;
import java.util.List;
import org.simantics.graph.compiler.SourceInfo.Variable;
import org.simantics.graph.store.IStore;
+import gnu.trove.map.hash.TIntIntHashMap;
+
public class VariableStore implements IStore {
public List<SourceFile> sourceFiles = new ArrayList<SourceFile>();
package org.simantics.graph.compiler.internal.templates;
-import gnu.trove.map.hash.THashMap;
-
import org.simantics.graph.query.Path;
import org.simantics.graph.query.PathChild;
import org.simantics.graph.query.Paths;
+import gnu.trove.map.hash.THashMap;
+
public class BuiltinTemplates {
public final THashMap<Path, ITemplate> TEMPLATES =
package org.simantics.graph.compiler.internal.templates;
-import gnu.trove.map.hash.TIntIntHashMap;
-import gnu.trove.map.hash.TObjectIntHashMap;
-
import java.util.Arrays;
import java.util.Collection;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.representation.External;
import org.simantics.graph.store.IdentityStore;
import org.simantics.graph.store.StatementStore;
import org.simantics.graph.store.ValueStore;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
+
+import gnu.trove.map.hash.TIntIntHashMap;
+import gnu.trove.map.hash.TObjectIntHashMap;
public class GraphTemplate implements ITemplate {
int[] prototypeResources;
import java.util.Collection;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Problem;
public interface ITemplate {
void apply(IGraph graph, GraphStore store, int[] parameters, ExternalFileLoader fileLoader, Collection<Problem> problems);
import java.util.Collection;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.query.Paths;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Problem;
public enum ListTemplate implements ITemplate {
import org.simantics.databoard.Bindings;
import org.simantics.databoard.binding.mutable.Variant;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.store.PreValueStore;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
public enum LoadBytesTemplate implements ITemplate {
INSTANCE;
import org.simantics.databoard.binding.mutable.Variant;
import org.simantics.databoard.serialization.Serializer;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.store.PreValueStore;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
public enum LoadDataValueTemplate implements ITemplate {
INSTANCE;
import org.simantics.databoard.Bindings;
import org.simantics.databoard.binding.mutable.Variant;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.store.PreValueStore;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
public enum LoadStringTemplate implements ITemplate {
INSTANCE;
import java.util.Collection;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Problem;
public enum NewTemplate implements ITemplate {
INSTANCE;
import java.util.Collection;
import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.query.IGraph;
import org.simantics.graph.query.Paths;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Problem;
public enum OrderedSetTemplate implements ITemplate {
package org.simantics.graph.compiler.internal.templates;
-import gnu.trove.map.hash.TIntIntHashMap;
-
import java.util.Collection;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.procedures.Compactify;
import org.simantics.graph.compiler.internal.procedures.ConvertPreValues;
import org.simantics.graph.compiler.internal.procedures.DefaultValueTyping;
import org.simantics.graph.query.TransferableGraphConversion;
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.Problem;
+
+import gnu.trove.map.hash.TIntIntHashMap;
public class TemplateDefinition {
String[] parameters;
package org.simantics.graph.compiler.internal.templates;
+import org.simantics.graph.store.IStore;
+import org.simantics.graph.store.IndexMappingUtils;
+
import gnu.trove.map.hash.TIntIntHashMap;
import gnu.trove.map.hash.TIntObjectHashMap;
import gnu.trove.procedure.TIntObjectProcedure;
import gnu.trove.procedure.TObjectProcedure;
import gnu.trove.set.hash.TIntHashSet;
-import org.simantics.graph.store.IStore;
-import org.simantics.graph.store.IndexMappingUtils;
-
public class TemplateDefinitionStore implements IStore {
TIntObjectHashMap<TemplateDefinition> templateDefinitions;
TIntHashSet collisions = new TIntHashSet();
package org.simantics.graph.compiler.internal.templates;
-import gnu.trove.map.hash.TIntIntHashMap;
-
import java.util.ArrayList;
import java.util.Collection;
import org.simantics.graph.store.IStore;
import org.simantics.graph.store.IndexMappingUtils;
+import gnu.trove.map.hash.TIntIntHashMap;
+
public class TemplateInstanceStore implements IStore {
ArrayList<int[]> templateInstances;
package org.simantics.graph.compiler.internal.translation;
-import gnu.trove.map.hash.THashMap;
-
import java.util.Collection;
import org.antlr.runtime.tree.Tree;
import org.simantics.databoard.type.RecordType;
import org.simantics.databoard.type.StringType;
import org.simantics.databoard.type.UnionType;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils;
import org.simantics.graph.compiler.internal.parsing.GraphParser;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Problem;
-import org.simantics.ltk.antlr.ANTLRUtils;
+
+import gnu.trove.map.hash.THashMap;
public class DataTypeTranslator {
import org.simantics.databoard.binding.VariantBinding;
import org.simantics.databoard.binding.error.BindingException;
import org.simantics.databoard.type.Datatype;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils;
import org.simantics.graph.compiler.internal.parsing.GraphParser;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Problem;
-import org.simantics.ltk.antlr.ANTLRUtils;
public class DataValueTranslator {
package org.simantics.graph.compiler.internal.translation;
-import gnu.trove.map.hash.TObjectIntHashMap;
-import gnu.trove.set.hash.TIntHashSet;
-
import java.util.ArrayList;
import java.util.Collection;
import org.antlr.runtime.tree.Tree;
import org.simantics.graph.compiler.SourceInfo.DefinitionPosition;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils;
import org.simantics.graph.compiler.internal.parsing.GraphParser;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.store.PreValueStore;
import org.simantics.graph.query.Paths;
import org.simantics.graph.query.UriUtils;
import org.simantics.graph.store.GraphStore;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Problem;
-import org.simantics.ltk.antlr.ANTLRUtils;
+
+import gnu.trove.map.hash.TObjectIntHashMap;
+import gnu.trove.set.hash.TIntHashSet;
public class GraphTranslator extends GraphStore {
import java.util.Collection;
import org.simantics.graph.compiler.GraphCompilerPreferences;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.compiler.internal.templates.TemplateDefinitionStore;
import org.simantics.graph.query.Res;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.store.StatementCollision;
-import org.simantics.ltk.Problem;
public class ReportCollisions implements Runnable {
GraphCompilerPreferences preferences;
import org.simantics.graph.compiler.GraphCompilerPreferences;
import org.simantics.graph.compiler.ValidationMode;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.compiler.internal.store.LocationStore;
import org.simantics.graph.query.CompositeGraph;
import org.simantics.graph.query.Path;
import org.simantics.graph.store.GraphStore;
import org.simantics.graph.store.IdRes;
import org.simantics.graph.utils.GraphExecutor;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
public class ValidateGraph implements Runnable {
CompositeGraph graph;
import org.antlr.runtime.tree.Tree;
import org.simantics.databoard.binding.Binding;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Location;
+import org.simantics.graph.compiler.internal.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils;
import org.simantics.graph.compiler.internal.parsing.GraphParser;
import org.simantics.graph.compiler.internal.store.IPreValue;
import org.simantics.graph.compiler.internal.translation.DataValueTranslator;
import org.simantics.graph.query.Path;
import org.simantics.graph.query.Paths;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Location;
-import org.simantics.ltk.Problem;
-import org.simantics.ltk.antlr.ANTLRUtils;
public class TreeValue implements IPreValue {
import java.io.IOException;
import java.util.ArrayList;
-import junit.framework.Assert;
-
import org.junit.Before;
import org.junit.Test;
import org.simantics.graph.compiler.CompilationResult;
import org.simantics.graph.compiler.ExternalFileLoader;
import org.simantics.graph.compiler.GraphCompiler;
import org.simantics.graph.compiler.GraphCompilerPreferences;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.LocalResourceSource;
import org.simantics.graph.representation.TransferableGraph1;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.LocalResourceSource;
+
+import junit.framework.Assert;
public class GraphCompilerTests {
import org.simantics.graph.compiler.ExternalFileLoader;
import org.simantics.graph.compiler.GraphCompiler;
import org.simantics.graph.compiler.GraphCompilerPreferences;
+import org.simantics.graph.compiler.internal.ltk.FileSource;
+import org.simantics.graph.compiler.internal.ltk.ISource;
import org.simantics.graph.representation.TransferableGraph1;
-import org.simantics.ltk.FileSource;
-import org.simantics.ltk.ISource;
public class TestCompiler {
Bundle-SymbolicName: org.simantics.graph
Bundle-Version: 1.1.15.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
-Require-Bundle: org.simantics.databoard;bundle-version="0.5.1",
+Require-Bundle: org.simantics.databoard;bundle-version="0.6.6",
gnu.trove3;bundle-version="3.0.0";visibility:=reexport,
org.junit;bundle-version="4.12.0";resolution:=optional
Export-Package: org.simantics.graph,
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.simantics.ltk.antlr</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.8
+++ /dev/null
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Simantics Language Toolkit, ANTLR support
-Bundle-SymbolicName: org.simantics.ltk.antlr
-Bundle-Version: 1.1.12.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-1.8
-Require-Bundle: org.simantics.ltk;bundle-version="1.0.0";visibility:=reexport
-Export-Package: org.simantics.ltk.antlr
-Import-Package: org.antlr.runtime;bundle-version="[3.5.2,4.0.0)",
- org.antlr.runtime.debug;bundle-version="[3.5.2,4.0.0)",
- org.antlr.runtime.misc;bundle-version="[3.5.2,4.0.0)",
- org.antlr.runtime.tree;bundle-version="[3.5.2,4.0.0)"
+++ /dev/null
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.simantics.ltk</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.8
+++ /dev/null
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Simantics Language Toolkit
-Bundle-SymbolicName: org.simantics.ltk
-Bundle-Version: 1.1.10.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-1.8
-Export-Package: org.simantics.ltk
+++ /dev/null
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
+++ /dev/null
-package org.simantics.ltk;
-
-public enum Severity {
- WARNING, ERROR
-}
org.simantics.scl.db;bundle-version="0.1.3",
org.simantics.scl.ui;bundle-version="0.5.0",
org.simantics.graph.compiler;bundle-version="1.1.11",
- org.simantics.ltk;bundle-version="1.1.10",
org.eclipse.e4.core.di.annotations,
org.eclipse.e4.core.contexts;bundle-version="1.4.0",
org.eclipse.e4.ui.di,
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.layer0.adapter.ActionFactory;
import org.simantics.graph.compiler.CompilationResult;
-import org.simantics.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.modeling.CompilePGraphs;
import org.simantics.modeling.ui.Activator;
import org.simantics.utils.ui.ExceptionUtils;
org.slf4j.api,
org.simantics.graphfile.ontology,
org.apache.batik,
- org.simantics.ltk,
org.simantics.graph.compiler
Export-Package: org.simantics.modeling,
org.simantics.modeling.actions,
import org.simantics.graph.compiler.GraphCompiler;
import org.simantics.graph.compiler.GraphCompilerPreferences;
import org.simantics.graph.compiler.ValidationMode;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.db.TransferableGraphException;
import org.simantics.graph.db.TransferableGraphSource;
import org.simantics.graph.db.TransferableGraphs;
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graphfile.ontology.GraphFileResource;
import org.simantics.layer0.Layer0;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Problem;
import org.simantics.modeling.internal.Activator;
import org.simantics.utils.FileUtils;
import org.simantics.utils.datastructures.Pair;
org.eclipse.swt;bundle-version="3.6.0";resolution:=optional,
org.eclipse.core.resources;bundle-version="3.6.0";resolution:=optional,
org.simantics.graph.compiler;bundle-version="1.1.10",
- org.simantics.ltk;bundle-version="1.1.10",
org.slf4j.api
Export-Package: org.eclipse.equinox.internal.p2.ui.query,
org.eclipse.equinox.internal.provisional.p2.installer,
import org.simantics.graph.compiler.GraphCompiler;
import org.simantics.graph.compiler.GraphCompilerPreferences;
import org.simantics.graph.compiler.ValidationMode;
+import org.simantics.graph.compiler.internal.ltk.FileSource;
+import org.simantics.graph.compiler.internal.ltk.ISource;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.graph.representation.Extensions;
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graph.representation.TransferableGraphFileReader;
-import org.simantics.ltk.FileSource;
-import org.simantics.ltk.ISource;
-import org.simantics.ltk.Problem;
import org.simantics.scl.reflection.OntologyVersions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
<module>org.simantics.logback.configuration</module>
<module>org.simantics.logging</module>
<module>org.simantics.logging.ui</module>
- <module>org.simantics.ltk</module>
- <module>org.simantics.ltk.antlr</module>
<module>org.simantics.lz4</module>
<module>org.simantics.mapping</module>
<module>org.simantics.message</module>
version="0.0.0"
unpack="false"/>
- <plugin
- id="org.simantics.ltk"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.simantics.ltk.antlr"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
<plugin
id="org.simantics.graphfile.ontology"
download-size="0"