equal
deleted
inserted
replaced
1 "{ Package: 'stx:goodies/petitparser/compiler/tests/extras' }" |
|
2 |
|
3 "{ NameSpace: Smalltalk }" |
|
4 |
|
5 TestResource subclass:#PPTokenizedSmalltalkGrammarResource |
|
6 instanceVariableNames:'' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'PetitCompiler-Extras-Tests-Smalltalk' |
|
10 ! |
|
11 |
|
12 |
|
13 !PPTokenizedSmalltalkGrammarResource methodsFor:'as yet unclassified'! |
|
14 |
|
15 setUp |
|
16 | time configuration | |
|
17 configuration := PPCConfiguration tokenizing. |
|
18 configuration arguments parserName:#PPTokenizedSmalltalkGrammar. |
|
19 |
|
20 time := Time millisecondsToRun: [ |
|
21 PPSmalltalkGrammar new compileWithConfiguration: configuration. |
|
22 ]. |
|
23 Transcript show: 'Smalltalk Grammar tokenized in: '; show: time asString; show: 'ms'; cr. |
|
24 |
|
25 "Modified: / 10-05-2015 / 07:55:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
26 ! |
|
27 |
|
28 tearDown |
|
29 | parserClass | |
|
30 super tearDown. |
|
31 |
|
32 parserClass := (Smalltalk at: #PPTokenizedSmalltalkGrammar ifAbsent: [nil]). |
|
33 self flag: 'uncomment:'. |
|
34 " |
|
35 parserClass notNil ifTrue:[ |
|
36 parserClass removeFromSystem |
|
37 ]. |
|
38 " |
|
39 ! ! |
|
40 |
|
41 !PPTokenizedSmalltalkGrammarResource class methodsFor:'documentation'! |
|
42 |
|
43 version_HG |
|
44 |
|
45 ^ '$Changeset: <not expanded> $' |
|
46 ! ! |
|
47 |
|