Multiple changes:

- Add the book and a few first pages
- Add the code generator
This commit is contained in:
2022-04-17 19:48:45 +02:00
parent 0469c6dbdf
commit 199758d97d
47 changed files with 5143 additions and 41 deletions

View File

@@ -4,6 +4,12 @@ Class {
#category : #'Carp-AST'
}
{ #category : #accessing }
CarpExpressionNode class >> itself [
<gtExample>
^ self
]
{ #category : #generated }
CarpExpressionNode >> acceptVisitor: anExpressionVisitor [

View File

@@ -1,34 +0,0 @@
Class {
#name : #CarpModuleOrTypeNode,
#superclass : #CarpExpressionNode,
#instVars : [
'value'
],
#category : #'Carp-AST'
}
{ #category : #generated }
CarpModuleOrTypeNode >> acceptVisitor: anExpressionVisitor [
^ anExpressionVisitor visitModuleOrType: self
]
{ #category : #generated }
CarpModuleOrTypeNode >> otherVariables [
^ #( #value )
]
{ #category : #generated }
CarpModuleOrTypeNode >> value [
^ value
]
{ #category : #generated }
CarpModuleOrTypeNode >> value: anObject [
self setParent: self value to: nil.
value := anObject.
self setParent: self value to: self
]