compiler/tests/PPCTokenizingCodeGeneratorTest.st
changeset 537 fb212e14d1f4
parent 535 a8feb0f47574
child 538 16e8536f5cfb
--- a/compiler/tests/PPCTokenizingCodeGeneratorTest.st	Mon Sep 07 08:03:02 2015 +0100
+++ b/compiler/tests/PPCTokenizingCodeGeneratorTest.st	Mon Sep 07 08:20:46 2015 +0100
@@ -4,7 +4,7 @@
 
 PPAbstractParserTest subclass:#PPCTokenizingCodeGeneratorTest
 	instanceVariableNames:'visitor node result compiler parser context options tokenizer
-		whitespace configuration'
+		whitespace'
 	classVariableNames:''
 	poolDictionaries:''
 	category:'PetitCompiler-Tests-Visitors'
@@ -26,7 +26,7 @@
 !
 
 compileTree: root
-    parser := configuration compile: root.
+    parser := compiler compile: root.
     
 !
 
@@ -35,23 +35,20 @@
 !
 
 setUp
-    options := PPCCompilationOptions default
-        profile: true;
-        tokenize: true;
-        yourself.       
-
+    options := (PPCCompilationOptions default)
+            profile:true;
+            tokenize:true;
+            yourself.
     self cleanClass.
-    
-    configuration := PPCConfiguration new.
-    configuration passes: {
-        PPCCacheFirstFollowPass.
-        PPCTokenizingCodeGenerator. 
-        PPCFSAVisitor.
-        PPCTokenCodeGenerator.
-        PPCScannerCodeGenerator.        
-    }.
-
-    configuration options: options.
+    compiler := PPCCompiler new.
+    compiler passes:{
+                PPCCacheFirstFollowPass.
+                PPCTokenizingCodeGenerator.
+                PPCFSAVisitor.
+                PPCTokenCodeGenerator.
+                PPCScannerCodeGenerator
+            }.
+    compiler options:options.
 
     "Modified: / 04-09-2015 / 16:21:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !