compiler/tests/extras/PPCompiledJavaResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 07 Sep 2015 11:53:38 +0100
changeset 538 16e8536f5cfb
parent 537 fb212e14d1f4
permissions -rw-r--r--
PPCConfiguration refactoring: [10/10]: Cleaned up compilation API The main compilation method is now PPParser>>compileWithOptions: Removed oither old and unused compilation methods from PPParser and other PetitCompiler classes.

"{ Package: 'stx:goodies/petitparser/compiler/tests/extras' }"

"{ NameSpace: Smalltalk }"

TestResource subclass:#PPCompiledJavaResource
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Extras-Tests-Java'
!

!PPCompiledJavaResource methodsFor:'as yet unclassified'!

setUp
    | time  compiler |

    compiler := PPCCompiler newWithOptions: #( #tokenize: false ).
    compiler options parserName:#PPCompiledJavaSyntax.
    time := Time 
            millisecondsToRun:[ compiler compile:  PPJavaSyntax new ].
    Transcript
        show:'Java Syntax compiled in: ';
        show:time asString;
        show:'ms';
        cr.

    "Modified: / 07-09-2015 / 12:37:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !