compiler/PPCTokenizingParserNode.st
changeset 452 9f4558b3be66
child 459 4751c407bb40
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compiler/PPCTokenizingParserNode.st	Sun May 10 06:28:36 2015 +0100
@@ -0,0 +1,44 @@
+"{ Package: 'stx:goodies/petitparser/compiler' }"
+
+"{ NameSpace: Smalltalk }"
+
+PPCListNode subclass:#PPCTokenizingParserNode
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'PetitCompiler-Nodes'
+!
+
+!PPCTokenizingParserNode methodsFor:'accessing'!
+
+initialize
+    super initialize.
+    children := Array new: 2
+!
+
+parser
+    ^ children at: 1
+!
+
+parser: node
+    children at: 1 put: node
+!
+
+prefix
+    ^ #tokenizingParser
+!
+
+tokenizer
+    ^ children at: 2
+!
+
+tokenizer: node
+    ^ children at: 2 put: node
+! !
+
+!PPCTokenizingParserNode methodsFor:'visiting'!
+
+accept: visitor
+    ^ visitor visitTokenizingParserNode: self
+! !
+