blob: 3a58d4bd23116bf8145cf3a0d6cc360ec02c8fc1 [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2008 The University of York.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.epsilon.emc.filesystem;
import java.io.File;
import org.eclipse.epsilon.eol.EolModule;
public class App {
public static void main(String[] args) throws Exception {
EolModule module = new EolModule();
module.parse("Tester.all.println();");
/*
module.parse("var tester = Tester.all.selectOne(t|t.p_name = 'Tom Jones');" +
"var requirementIds = tester.p_requirements.split(',');" +
"Requirement.all.select(r|requirementIds.includes(r.name)).p_priority.println();");
*/
FilesystemModel model = new FilesystemModel(new File("test-data"));
model.setName("M");
module.getContext().getModelRepository().addModel(model);
module.execute();
}
}