Codota Logo
OuterParsingOptions.mainDefinitionFile
Code IndexAdd Codota to your IDE (free)

How to use
mainDefinitionFile
method
in
org.kframework.utils.options.OuterParsingOptions

Best Java code snippets using org.kframework.utils.options.OuterParsingOptions.mainDefinitionFile (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: kframework/k

public String mainModule(FileUtil files) {
  if (mainModule == null) {
    return FilenameUtils.getBaseName(outerParsing.mainDefinitionFile(files).getName()).toUpperCase();
  }
  return mainModule;
}
origin: kframework/k

@Override
public void accept(CompiledDefinition def) {
  String kore = getKompiledString(def);
  File defFile = kompileOptions.outerParsing.mainDefinitionFile(files);
  String name = defFile.getName();
  String basename = FilenameUtils.removeExtension(name);
  files.saveToDefinitionDirectory(basename + ".kore", kore);
}
origin: kframework/k

@Provides
@DefinitionDir
File definitionDir(@WorkingDir File workingDir, OuterParsingOptions options) {
  if (options.directory == null) {
    // bootstrap the part of FileUtil we need
    return options.mainDefinitionFile(new FileUtil(null, null, workingDir, null, null, null)).getParentFile();
  }
  File f = new File(options.directory);
  if (f.isAbsolute()) return f;
  return new File(workingDir, options.directory);
}
origin: kframework/k

@Override
protected int run() {
  List<org.kframework.kil.Module> modules = new ArrayList<>();
  Source source = Source.apply(options.mainDefinitionFile(files).getAbsolutePath());
  File currentDirectory = options.mainDefinitionFile(files).getParentFile();
  List<File> lookupDirectories = ListUtils.union(options.includes.stream()
          .map(files::resolveWorkingDirectory).collect(Collectors.toList()),
  modules.addAll(parser.slurp(FileUtil.load(options.mainDefinitionFile(files)),
      source,
      currentDirectory,
origin: kframework/k

  @Provides @KompiledDir
  File kompiledDir(@DefinitionDir File defDir, OuterParsingOptions options, @WorkingDir File workingDir, @TempDir File tempDir) {
    // bootstrap the part of FileUtil we need
    return new File(defDir, FilenameUtils.removeExtension(options.mainDefinitionFile(new FileUtil(null, null, workingDir, null, null, null)).getName()) + "-kompiled");
  }
}
origin: kframework/k

private void parse(String... args) {
  new JCommander(options, args);
  options.outerParsing.mainDefinitionFile(files);
  options.mainModule(files);
  options.syntaxModule(files);
}
origin: kframework/k

  @Override
  public int run() {
    if (!options.outerParsing.mainDefinitionFile(files).exists()) {
      throw KEMException.criticalError("Definition file doesn't exist: " +
          options.outerParsing.mainDefinitionFile(files).getAbsolutePath());
    }

    Kompile kompile = new Kompile(options, files, kem, sw);
    Backend backend = koreBackend.get();
    CompiledDefinition def = kompile.run(options.outerParsing.mainDefinitionFile(files), options.mainModule(files), options.syntaxModule(files), backend.steps(), backend.excludedModuleTags());
    sw.printIntermediate("Kompile to kore");
    loader.saveOrDie(files.resolveKompiled("compiled.bin"), def);
    sw.printIntermediate("Save to disk");
    backend.accept(def);
    sw.printIntermediate("Backend");
    loader.saveOrDie(files.resolveKompiled("timestamp"), "");
    sw.printTotal("Total");
    return 0;
  }
}
org.kframework.utils.optionsOuterParsingOptionsmainDefinitionFile

Popular methods of OuterParsingOptions

    Popular in Java

    • Making http post requests using okhttp
    • scheduleAtFixedRate (ScheduledExecutorService)
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • findViewById (Activity)
    • OutputStream (java.io)
      A writable sink for bytes.Most clients will use output streams that write data to the file system (
    • PrintStream (java.io)
      A PrintStream adds functionality to another output stream, namely the ability to print representatio
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • Collectors (java.util.stream)
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now