compiler/tests/extras/PPCompiledExpressionGrammarResource.st
changeset 510 869853decf31
parent 509 fd22630c7e62
child 511 527038bc8edf
equal deleted inserted replaced
509:fd22630c7e62 510:869853decf31
     1 "{ Package: 'stx:goodies/petitparser/compiler/tests/extras' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
       
     4 
       
     5 TestResource subclass:#PPCompiledExpressionGrammarResource
       
     6 	instanceVariableNames:''
       
     7 	classVariableNames:''
       
     8 	poolDictionaries:''
       
     9 	category:'PetitCompiler-Extras-Tests-Expressions'
       
    10 !
       
    11 
       
    12 
       
    13 !PPCompiledExpressionGrammarResource methodsFor:'as yet unclassified'!
       
    14 
       
    15 setUp
       
    16     | time configuration |
       
    17     configuration := PPCConfiguration universal.
       
    18     configuration arguments parserName: #PPCompiledExpressionGrammar.
       
    19     
       
    20     
       
    21     time := Time millisecondsToRun: [
       
    22         PPExpressionGrammar new compileWithConfiguration: configuration.
       
    23     ].
       
    24     Transcript show: 'Expression grammar compiled in: ', time asString, 'ms'; cr.
       
    25     
       
    26 ! !
       
    27 
       
    28 !PPCompiledExpressionGrammarResource class methodsFor:'documentation'!
       
    29 
       
    30 version_HG
       
    31 
       
    32     ^ '$Changeset: <not expanded> $'
       
    33 ! !
       
    34