compiler/tests/PPCompiledSmalltalkGrammarResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 08 Nov 2014 01:03:21 +0000
changeset 418 b3080b20b14c
parent 392 9b297f0d949c
child 421 7e08b31e0dae
permissions -rw-r--r--
Minor fixes in tests for Smalltalk/X * Do now show `Transcript crShow: '...'` but more portable `Transcript show:'...'; cr`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
391
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/petitparser/compiler/tests' }"
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
TestResource subclass:#PPCompiledSmalltalkGrammarResource
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
	instanceVariableNames:''
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
	classVariableNames:''
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
	poolDictionaries:''
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
	category:'PetitCompiler-Tests-Smalltalk'
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
!
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
!PPCompiledSmalltalkGrammarResource methodsFor:'as yet unclassified'!
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
setUp
418
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    13
        | time |
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    14
        time := Time millisecondsToRun: [
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    15
        PPSmalltalkGrammar new compile: #PPCompiledSmalltalkGrammar
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    16
        ].
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    17
        Transcript show: 'Grammar compiled in: ', time asString, 'ms'; cr.
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    18
b3080b20b14c Minor fixes in tests for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 392
diff changeset
    19
    "Modified: / 08-11-2014 / 00:54:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
391
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
! !
553a5456963b Ported PetitCompiler-(Tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21