src/som/compiler/SourcecodeCompiler.java
public MixinDefinition compileSomModule(final Source source,
      final StructuralProbe<SSymbol, MixinDefinition, SInvokable, SlotDefinition, Variable> structuralProbe)
      throws ProgramDefinitionError {
    NewspeakParser parser =
        new NewspeakParser(source.getCharacters().toString(), source.getLength(), source,
            structuralProbe, language);
    SourceCoordinate coord = parser.getCoordinate();
    MixinBuilder mxnBuilder = parser.moduleDeclaration();
    MixinDefinition result = mxnBuilder.assemble(parser.getSource(coord));
    language.getVM().reportLoadedSource(source);
    return result;
  }
/**
   * Builds a SOM module using the {@link NewspeakParser}.
   *
   * @return - a finished SOM class created from the given module
   */
Builds a SOM module using the  NewspeakParser.
@return - a finished SOM class created from the given module
Builds a SOM module using the NewspeakParser . @return - a finished SOM class created from the given module
public MixinDefinition compileSomModule(final Source source,
      final StructuralProbe<SSymbol, MixinDefinition, SInvokable, SlotDefinition, Variable> structuralProbe)
      throws ProgramDefinitionError {
    NewspeakParser parser =
        new NewspeakParser(source.getCharacters().toString(), source.getLength(), source,
            structuralProbe, language);
    SourceCoordinate coord = parser.getCoordinate();
    MixinBuilder mxnBuilder = parser.moduleDeclaration();
    MixinDefinition result = mxnBuilder.assemble(parser.getSource(coord));
    language.getVM().reportLoadedSource(source);
    return result;
  }
public MixinDefinition compileSomModule ( final Source source , final StructuralProbe < SSymbol , MixinDefinition , SInvokable , SlotDefinition , Variable > structuralProbe ) throws ProgramDefinitionError { NewspeakParser parser = new NewspeakParser ( source . getCharacters ( ) . toString ( ) , source . getLength ( ) , source , structuralProbe , language ) ; SourceCoordinate coord = parser . getCoordinate ( ) ; MixinBuilder mxnBuilder = parser . moduleDeclaration ( ) ; MixinDefinition result = mxnBuilder . assemble ( parser . getSource ( coord ) ) ; language . getVM ( ) . reportLoadedSource ( source ) ; return result ; }
Builds a SOM module using the {@link NewspeakParser}.
Builds a SOM module using the { @link NewspeakParser } .