Finally, an IDE

This commit is contained in:
2022-06-13 22:13:31 +02:00
parent ee5c032d90
commit 7fbab0e2a0
6 changed files with 302 additions and 5 deletions
+13
View File
@@ -21,6 +21,14 @@ CarpListNode >> compositeNodeVariables [
^ #( #expressions )
]
{ #category : #accessing }
CarpListNode >> definitionVariable [
^ (self expressions size > 1
and: [ self expressions first isDefinitionPredicate ])
ifTrue: [ self expressions second ]
ifFalse: [ nil ]
]
{ #category : #generated }
CarpListNode >> expressions [
@@ -41,6 +49,11 @@ CarpListNode >> initialize [
expressions := OrderedCollection new: 2.
]
{ #category : #accessing }
CarpListNode >> isDefinition [
^ self definitionVariable isNotNil
]
{ #category : #generated }
CarpListNode >> leftParen [