compiler/tests/PPCompiledExpressionGrammarResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 10 May 2015 14:20:24 +0100
changeset 454 a9cd5ea7cc36
parent 453 bd5107faf4d6
child 460 87a3d30ab570
permissions -rw-r--r--
Portability: fixes for Smalltalk/X * Do not use detect:ifFound: - not present in Smalltalk/X * Removed leftover debugging code (Halt if:, ...) * Do not use `aClass methods`, use `aClass methodDictionary values` * Do not use #allPairsDo; - not present in Smalltalk/X * Do not use #crShow: - not present in Smalltalk/X * On Smalltalk?X use Filename - there's no FileReference in Smalltalk/X * Do not use CharacterSet, use String

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

"{ NameSpace: Smalltalk }"

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


!PPCompiledExpressionGrammarResource methodsFor:'as yet unclassified'!

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

    "Modified: / 01-05-2015 / 14:40:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!PPCompiledExpressionGrammarResource class methodsFor:'documentation'!

version_HG

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