--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/compiler/tests/extras/PPCLRPVariable.st Thu Jul 30 17:31:18 2015 +0100
@@ -0,0 +1,55 @@
+"{ Package: 'stx:goodies/petitparser/compiler/tests/extras' }"
+
+"{ NameSpace: Smalltalk }"
+
+PPCLRPContainedElement subclass:#PPCLRPVariable
+ instanceVariableNames:'name value'
+ classVariableNames:''
+ poolDictionaries:''
+ category:'PetitCompiler-Extras-Tests-LRP'
+!
+
+!PPCLRPVariable class methodsFor:'installation'!
+
+name: aString value: aValue
+ |retval|
+ retval := self new.
+ retval name: aString.
+ retval value: aValue.
+ ^retval
+! !
+
+!PPCLRPVariable methodsFor:'accessing'!
+
+name
+ ^ name
+!
+
+name: anObject
+ name := anObject
+!
+
+value
+ ^ value
+!
+
+value: anObject
+ value := anObject
+! !
+
+!PPCLRPVariable methodsFor:'printing'!
+
+printOn: aStream
+ aStream nextPutAll: 'PPCLRPVariable '.
+ aStream nextPutAll: self name.
+ aStream nextPutAll: ' : '.
+ aStream nextPutAll: self value asString.
+
+! !
+
+!PPCLRPVariable methodsFor:'visiting'!
+
+acceptVisitor: aPPCLRPNodeVisitor
+ aPPCLRPNodeVisitor visitVariableNode: self
+! !
+