parsers/java/PJIdentifierNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 Nov 2015 19:37:14 +0100
changeset 553 d83cb4945d5e
parent 435 3bc08fb90133
permissions -rw-r--r--
Oops, forgot to export PETITCOMPILER_DATA_DIRECTORY variable ...so Smalltalk code could not read it. Also fixed test for "include" scripts so they are not downloaded again when already downloaded.

"{ Package: 'stx:goodies/petitparser/parsers/java' }"

"{ NameSpace: Smalltalk }"

PJExpressionNode subclass:#PJIdentifierNode
	instanceVariableNames:'name'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

PJIdentifierNode comment:'An identifier node. Variable name is identifier'
!

!PJIdentifierNode class methodsFor:'instance-creation'!

newWithName: aString
	^ super new name: aString; yourself
! !

!PJIdentifierNode methodsFor:'accessing'!

acceptVisitor: aVisitor

	^ aVisitor visitIdentifierNode: self
!

name
	^ name
!

name: aString
	name := aString
! !