compiler/PPCInlineNotLiteralNode.st
changeset 442 d333233f7ebd
parent 441 6f0eb79b3dda
parent 438 20598d7ce9fa
child 443 2c87ed364404
--- a/compiler/PPCInlineNotLiteralNode.st	Fri May 01 13:44:43 2015 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-"{ Package: 'stx:goodies/petitparser/compiler' }"
-
-"{ NameSpace: Smalltalk }"
-
-PPCNotLiteralNode subclass:#PPCInlineNotLiteralNode
-	instanceVariableNames:''
-	classVariableNames:''
-	poolDictionaries:''
-	category:'PetitCompiler-Nodes'
-!
-
-!PPCInlineNotLiteralNode methodsFor:'as yet unclassified'!
-
-compileWith: compiler effect: effect id: id
-	| encodedLiteral size |
-	encodedLiteral := self encodeQuotes: literal.
-	size := literal size asString.
-	
-	compiler startInline: id.
-	compiler add: '((context peek: ', size, ') =#''', encodedLiteral, ''')'.
-	compiler indent.
-	compiler add: ' ifTrue: [ self error: ''', encodedLiteral, ' not expected'' ]'.
-	compiler add: ' ifFalse: [ nil ].'.
-	compiler dedent.
- ^ compiler stopInline.
-! !
-
-!PPCInlineNotLiteralNode methodsFor:'printing'!
-
-asInlined
-	^ self
-!
-
-printOn: aStream
-	aStream nextPutAll: #inlined.
-	super printOn: aStream.
-! !
-