compiler/tests/extras/PPCompiledSmalltalkParserResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 24 Jul 2015 19:42:09 +0100
changeset 504 0fb1f0799fc1
parent 502 1e45d3c96ec5
permissions -rw-r--r--
Portability fix: override #new for class that implements #initialize #initialize is not sent by default.

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

"{ NameSpace: Smalltalk }"

TestResource subclass:#PPCompiledSmalltalkParserResource
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Extras-Tests-Smalltalk'
!

!PPCompiledSmalltalkParserResource methodsFor:'as yet unclassified'!

setUp
    | time configuration |
    configuration := PPCConfiguration universal.
    configuration arguments parserName:#PPCompiledSmalltalkParser.
    
    time := Time millisecondsToRun: [
        PPSmalltalkParser new compileWithConfiguration: configuration.
    ].
    Transcript show: 'Smalltalk Parser compiled in: '; show: time asString; show: 'ms'; cr.

    "Modified: / 10-05-2015 / 07:57:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !