compiler/tests/extras/PPTokenizedLL1ExpressionGrammarResource.st
changeset 515 b5316ef15274
parent 502 1e45d3c96ec5
child 516 3b81c9e53352
child 524 f6f68d32de73
equal deleted inserted replaced
502:1e45d3c96ec5 515:b5316ef15274
     1 "{ Package: 'stx:goodies/petitparser/compiler/tests/extras' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
       
     4 
       
     5 TestResource subclass:#PPTokenizedLL1ExpressionGrammarResource
       
     6 	instanceVariableNames:''
       
     7 	classVariableNames:''
       
     8 	poolDictionaries:''
       
     9 	category:'PetitCompiler-Extras-Tests-Expressions'
       
    10 !
       
    11 
       
    12 !PPTokenizedLL1ExpressionGrammarResource methodsFor:'as yet unclassified'!
       
    13 
       
    14 setUp
       
    15     | time configuration |
       
    16     configuration := PPCTokenizingConfiguration new.
       
    17     configuration arguments parserName:#PPTokenizedLL1ExpressionGrammar.
       
    18     
       
    19     
       
    20     time := Time millisecondsToRun: [
       
    21         PPLL1ExpressionGrammar new compileWithConfiguration: configuration.
       
    22     ].
       
    23     Transcript show: 'LL1 Expression grammar tokenized in: '; show: time asString; show: 'ms'; cr.
       
    24 
       
    25     "Modified: / 26-05-2015 / 07:24:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    26 ! !
       
    27