summaryrefslogtreecommitdiff
path: root/chapter22
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2025-04-22 09:54:23 -0700
committerCliff Click <cliffc@acm.org>2025-04-22 09:54:23 -0700
commit8d78c7c6384da8b0bade19f782509db94c4ca792 (patch)
tree8fd9c6e75e1eb2a113528305f09ae5ca9e91a870 /chapter22
parent698107491697cf6efdd574ca6d8891516ba65edb (diff)
downloadSimple-8d78c7c6384da8b0bade19f782509db94c4ca792.tar.gz
Simple-8d78c7c6384da8b0bade19f782509db94c4ca792.zip
More help for block layout
Diffstat (limited to 'chapter22')
-rw-r--r--chapter22/README.md32
1 files changed, 26 insertions, 6 deletions
diff --git a/chapter22/README.md b/chapter22/README.md
index 63cd12bf..570490f8 100644
--- a/chapter22/README.md
+++ b/chapter22/README.md
@@ -1,4 +1,4 @@
-# Chapter 22: Strings and Such
+# Chapter 22: Strings and I/O
It's high time for Strings and printing! In this chapter we look at what it
takes to make a nice user-mode string. We are implementing strings in the base
@@ -46,11 +46,11 @@ Any number of named fields are allowed:
```java
struct Class {
- str className;
- str professor;
- int time;
- int credits;
- Class prerequisiste;
+ str className;
+ str professor;
+ int time;
+ int credits;
+ Class prerequisite;
u16 #; // Limit of 65535 students per class
Student [];
};
@@ -135,4 +135,24 @@ chapter.
## A String Implementation
+### A Final String
+
+### A Extendable String (aka StringBuilder or StringBuffer)
+
+```java
+struct xstr {
+// update-in-place expanding string
+
+};
+```
+
+
## FFI and I/O Calls
+
+Calling external / FFI functions.
+
+`{ i32 fd, u8[] buf, i32 len -> i32 } write = "C";`
+
+
+## Importing name spaces
+