compiler/PPCAnyNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 03 Nov 2014 09:10:56 +0000
changeset 405 0470a5e6e712
parent 392 9b297f0d949c
child 414 0eaf09920532
permissions -rw-r--r--
Merged PetitParser and PetitTests Name: PetitParser-JanKurs.253 Author: JanKurs Time: 30-10-2014, 03:55:46 AM UUID: c7100f9c-e875-4453-8f26-e0c91dd49b91 Name: PetitTests-JanKurs.63 Author: JanKurs Time: 30-10-2014, 12:54:37 PM UUID: 7afbeef7-eadf-4d65-bce5-7204e2727edb

"{ 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
	
!

prefix
	^ #any
! !

!PPCAnyNode class methodsFor:'documentation'!

version_HG

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