src/som/compiler/SourcecodeCompiler.java
public MixinDefinition compileModule(final Source source,
      final StructuralProbe<SSymbol, MixinDefinition, SInvokable, SlotDefinition, Variable> structuralProbe)
      throws ProgramDefinitionError, IOException {
    final String path = source.getURI().getPath();

    if (path.endsWith(".grace") || path.endsWith(".grc")) {
      return compileGraceModule(source, structuralProbe);
    } else {
      return compileSomModule(source, structuralProbe);
    }
  }
/**
   * Compiles a program, which must be written in either Grace or Newspeak.
   *
   * @return - a finished SOM class created from the given module
   * @throws IOException
   */
Compiles a program, which must be written in either Grace or Newspeak.
@return - a finished SOM class created from the given module
@throws IOException
Compiles a program which must be written in either Grace or Newspeak . @return - a finished SOM class created from the given module @throws IOException
public MixinDefinition compileModule(final Source source,
      final StructuralProbe<SSymbol, MixinDefinition, SInvokable, SlotDefinition, Variable> structuralProbe)
      throws ProgramDefinitionError, IOException {
    final String path = source.getURI().getPath();
    if (path.endsWith(".grace") || path.endsWith(".grc")) {
      return compileGraceModule(source, structuralProbe);
    } else {
      return compileSomModule(source, structuralProbe);
    }
  }
public MixinDefinition compileModule ( final Source source , final StructuralProbe < SSymbol , MixinDefinition , SInvokable , SlotDefinition , Variable > structuralProbe ) throws ProgramDefinitionError , IOException { final String path = source . getURI ( ) . getPath ( ) ; if ( path . endsWith ( ".grace" ) || path . endsWith ( ".grc" ) ) { return compileGraceModule ( source , structuralProbe ) ; } else { return compileSomModule ( source , structuralProbe ) ; } }
Compiles a program, which must be written in either Grace or Newspeak.
Compiles a program which must be written in either Grace or Newspeak .