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

@@ -0,0 +1,28 @@
Class {
#name : #CarpNumber,
#superclass : #CarpLiteral,
#instVars : [
'number'
],
#category : #'Carp-IDE'
}
{ #category : #'instance creation' }
CarpNumber class >> number: aNumber [
^ self new number: aNumber
]
{ #category : #acccessing }
CarpNumber >> number: aNumber [
number := aNumber
]
{ #category : #accessing }
CarpNumber >> suffix [
^ self subclassResponsibility
]
{ #category : #converting }
CarpNumber >> toCarp [
^ number asString, self suffix
]