compiler/PPCAnyNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 05 Nov 2014 23:05:19 +0000
changeset 414 0eaf09920532
parent 405 0470a5e6e712
child 422 116d2b2af905
permissions -rw-r--r--
Merged JK's work on PetitCompiler Name: PetitCompiler-JanKurs.57 Author: JanKurs Time: 05-11-2014, 05:10:47 AM UUID: 4c625efe-77fd-465d-bd63-72ead0b5d3ba Name: PetitCompiler-Tests-JanVrany.13 Author: JanVrany Time: 05-11-2014, 09:31:07 AM UUID: 189ae287-6bc1-40ba-8458-b8392c4260a0

"{ Package: 'stx:goodies/petitparser/compiler' }"

PPCNode subclass:#PPCAnyNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!


!PPCAnyNode methodsFor:'as yet unclassified'!

acceptsEpsilon
	^ false
!

asInlined
	^ PPCInlineAnyNode new
		name: name;
		yourself
!

compileWith: compiler effect: effect id: id
	compiler startMethod: id.
	compiler add: '^ context next ifNil: [ error := true. ].'.
 ^ compiler stopMethod.	
!

firstCharParser
	^ #any asParser
	
!

firstCharSet
	^ PPCharSetPredicate on: [:e | true ] 
!

prefix
	^ #any
! !

!PPCAnyNode class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !