doc: add sample package file tree

This commit is contained in:
2024-11-13 21:55:32 +00:00
parent 06bf9a3030
commit 55a8435cd3
13 changed files with 93 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
package std
+5
View File
@@ -0,0 +1,5 @@
package std.io
protocol StreamReader
- get:buf
end
+7
View File
@@ -0,0 +1,7 @@
package std.io
protocol StreamWriter
- flush
- print:msg
- put:msg
end
+5
View File
@@ -0,0 +1,5 @@
package std.io
cin = StreamReader new
cout = StreamWriter new
cerr = StreamWriter new
+5
View File
@@ -0,0 +1,5 @@
package std.lang
protocol Bool
- if:
- if:else:
+8
View File
@@ -0,0 +1,8 @@
package std.lang
protocol Int
+ parse:
- to:
- to:step:
- to:step:do:
end
+9
View File
@@ -0,0 +1,9 @@
package std.lang
protocol Iterator
- value
- moveNext
- select:
- select:collect:
- iterator
end
+14
View File
@@ -0,0 +1,14 @@
package std.lang
protocol Lambda
- argCount
- call
- call:
- call(_:_:)
- call(_:_:_:)
- call(_:_:_:_:)
- call(args:)
- on:do:
- if:
- unless:
end
+10
View File
@@ -0,0 +1,10 @@
package std.lang
protocol Object
- is:
- implements:
- respondsTo:
- doesNotUnderstand(selector:args:)
- sendMsg(selector:args:)
- toString
end
+12
View File
@@ -0,0 +1,12 @@
package std.lang
protocol Package
- size
- iterator
- exists:
- put:at:
- get:
- map:
- select:
- select:collect:
end
+5
View File
@@ -0,0 +1,5 @@
package std.lang
protocol Selector
+ parse
end
+12
View File
@@ -0,0 +1,12 @@
package std.lang
protocol String
- size
- uppercase
- lowercase
- append:
- prepend:
- at:insert:
- contains:
- iterator
end
View File