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
doc/std/init.im Normal file
View File

@@ -0,0 +1 @@
package std

View File

@@ -0,0 +1,5 @@
package std.io
protocol StreamReader
- get:buf
end

View File

@@ -0,0 +1,7 @@
package std.io
protocol StreamWriter
- flush
- print:msg
- put:msg
end

5
doc/std/io/init.im Normal file
View File

@@ -0,0 +1,5 @@
package std.io
cin = StreamReader new
cout = StreamWriter new
cerr = StreamWriter new

5
doc/std/lang/Bool.im Normal file
View File

@@ -0,0 +1,5 @@
package std.lang
protocol Bool
- if:
- if:else:

8
doc/std/lang/Int.im Normal file
View File

@@ -0,0 +1,8 @@
package std.lang
protocol Int
+ parse:
- to:
- to:step:
- to:step:do:
end

9
doc/std/lang/Iterator.im Normal file
View File

@@ -0,0 +1,9 @@
package std.lang
protocol Iterator
- value
- moveNext
- select:
- select:collect:
- iterator
end

14
doc/std/lang/Lambda.im Normal file
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
doc/std/lang/Object.im Normal file
View File

@@ -0,0 +1,10 @@
package std.lang
protocol Object
- is:
- implements:
- respondsTo:
- doesNotUnderstand(selector:args:)
- sendMsg(selector:args:)
- toString
end

12
doc/std/lang/Package.im Normal file
View File

@@ -0,0 +1,12 @@
package std.lang
protocol Package
- size
- iterator
- exists:
- put:at:
- get:
- map:
- select:
- select:collect:
end

5
doc/std/lang/Selector.im Normal file
View File

@@ -0,0 +1,5 @@
package std.lang
protocol Selector
+ parse
end

12
doc/std/lang/String.im Normal file
View File

@@ -0,0 +1,12 @@
package std.lang
protocol String
- size
- uppercase
- lowercase
- append:
- prepend:
- at:insert:
- contains:
- iterator
end

0
doc/std/lang/init.im Normal file
View File