compiler/tests/PPTokenizedExpressionGrammarResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 May 2015 01:57:37 +0100
changeset 461 5986bf6d7d60
parent 459 4751c407bb40
permissions -rw-r--r--
Portability: fixes for Smalltalk/X * Do not use #crShow: - not present in Smalltalk/X * Do not use Array class>>with:withAll: * do not use detect:ifFound:ifAbsent:

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

"{ NameSpace: Smalltalk }"

TestResource subclass:#PPTokenizedExpressionGrammarResource
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Tests-ExpressionGrammar'
!

!PPTokenizedExpressionGrammarResource methodsFor:'as yet unclassified'!

setUp
    | time configuration |
    configuration := PPCLL1Configuration new.
    configuration arguments name:#PPTokenizedExpressionGrammar.
    
    
    time := Time millisecondsToRun: [
        PPExpressionGrammar new compileWithConfiguration: configuration.
    ].
    Transcript show: 'Expression grammar tokenized in: ';show: time asString; show: 'ms'; cr.

    "Modified: / 12-05-2015 / 01:38:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !