compiler/tests/extras/PPTokenizedSmalltalkGrammarResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 21 May 2015 14:35:34 +0100
changeset 465 f729f6cd3c76
parent 461 5986bf6d7d60
parent 464 f6d77fee9811
child 503 ff58cd9f1f3c
permissions -rw-r--r--
Merge

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

"{ NameSpace: Smalltalk }"

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


!PPTokenizedSmalltalkGrammarResource methodsFor:'as yet unclassified'!

setUp
    | time configuration |
    configuration := PPCConfiguration tokenizing.
    configuration arguments name:#PPTokenizedSmalltalkGrammar.
    
    time := Time millisecondsToRun: [
        PPSmalltalkGrammar new compileWithConfiguration: configuration.
    ].
    Transcript show: 'Smalltalk Grammar tokenized in: '; show: time asString; show: 'ms'; cr.

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

tearDown
    | parserClass |
    super tearDown.
    
    parserClass := (Smalltalk at: #PPTokenizedSmalltalkGrammar ifAbsent: [nil]).
    self flag: 'uncomment:'.
"	
    parserClass notNil ifTrue:[ 
        parserClass removeFromSystem
    ].
"
! !

!PPTokenizedSmalltalkGrammarResource class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !