compiler/tests/extras/PPCompiledJavaResource.st
changeset 537 fb212e14d1f4
parent 529 439c4057517f
child 538 16e8536f5cfb
equal deleted inserted replaced
536:548996aca274 537:fb212e14d1f4
    10 !
    10 !
    11 
    11 
    12 !PPCompiledJavaResource methodsFor:'as yet unclassified'!
    12 !PPCompiledJavaResource methodsFor:'as yet unclassified'!
    13 
    13 
    14 setUp
    14 setUp
    15     | time configuration |
    15     | time  compiler |
    16     
    16 
    17     configuration := PPCConfiguration universal.
    17     compiler := PPCCompiler universal.
    18     configuration options parserName:#PPCompiledJavaSyntax.
    18     compiler options parserName:#PPCompiledJavaSyntax.
    19     
    19     time := Time 
    20     time := Time millisecondsToRun: [
    20             millisecondsToRun:[ PPJavaSyntax new compileUsingCompiler:compiler. ].
    21         PPJavaSyntax new compileWithConfiguration: configuration.
    21     Transcript
    22     ].
    22         show:'Java Syntax compiled in: ';
    23     Transcript show: 'Java Syntax compiled in: '; show: time asString; show: 'ms'; cr.
    23         show:time asString;
       
    24         show:'ms';
       
    25         cr.
    24 
    26 
    25     "Modified: / 10-05-2015 / 07:45:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    27     "Modified: / 10-05-2015 / 07:45:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    26 ! !
    28 ! !
    27 
    29