compiler/tests/PPCompiledExpressionGrammarResource.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 02 May 2015 06:29:04 +0200
changeset 443 2c87ed364404
parent 438 20598d7ce9fa
child 453 bd5107faf4d6
permissions -rw-r--r--
Portability: do not use Transcript>>crShow: ...use Transcript show: '...'; cr. which is more portable.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
438
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/petitparser/compiler/tests' }"
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
"{ NameSpace: Smalltalk }"
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
TestResource subclass:#PPCompiledExpressionGrammarResource
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
	instanceVariableNames:''
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
	classVariableNames:''
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
	poolDictionaries:''
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
	category:'PetitCompiler-Tests-ExpressionGrammar'
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
!
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
443
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    12
438
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
!PPCompiledExpressionGrammarResource methodsFor:'as yet unclassified'!
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
setUp
443
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    16
        | time |
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    17
        time := Time millisecondsToRun: [
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    18
                PPExpressionGrammar new compileAs: #PPCompiledExpressionGrammar
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    19
        ].
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    20
        Transcript show: 'Exprssion grammar compiled in: '; show: time asString; show: 'ms'; cr.
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    21
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    22
    "Modified: / 01-05-2015 / 14:40:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
438
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
! !
20598d7ce9fa Updated to PetitCompiler-JanKurs.100, PetitCompiler-Tests-JanKurs.44 and PetitCompiler-Benchmarks-JanKurs.4
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
443
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    25
!PPCompiledExpressionGrammarResource class methodsFor:'documentation'!
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    26
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    27
version_HG
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    28
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    29
    ^ '$Changeset: <not expanded> $'
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    30
! !
2c87ed364404 Portability: do not use Transcript>>crShow:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 438
diff changeset
    31