doc: add sample package file tree
This commit is contained in:
1
doc/std/init.im
Normal file
1
doc/std/init.im
Normal file
@@ -0,0 +1 @@
|
|||||||
|
package std
|
||||||
5
doc/std/io/StreamReader.im
Normal file
5
doc/std/io/StreamReader.im
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package std.io
|
||||||
|
|
||||||
|
protocol StreamReader
|
||||||
|
- get:buf
|
||||||
|
end
|
||||||
7
doc/std/io/StreamWriter.im
Normal file
7
doc/std/io/StreamWriter.im
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package std.io
|
||||||
|
|
||||||
|
protocol StreamWriter
|
||||||
|
- flush
|
||||||
|
- print:msg
|
||||||
|
- put:msg
|
||||||
|
end
|
||||||
5
doc/std/io/init.im
Normal file
5
doc/std/io/init.im
Normal 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
5
doc/std/lang/Bool.im
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package std.lang
|
||||||
|
|
||||||
|
protocol Bool
|
||||||
|
- if:
|
||||||
|
- if:else:
|
||||||
8
doc/std/lang/Int.im
Normal file
8
doc/std/lang/Int.im
Normal 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
9
doc/std/lang/Iterator.im
Normal 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
14
doc/std/lang/Lambda.im
Normal 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
10
doc/std/lang/Object.im
Normal 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
12
doc/std/lang/Package.im
Normal 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
5
doc/std/lang/Selector.im
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package std.lang
|
||||||
|
|
||||||
|
protocol Selector
|
||||||
|
+ parse
|
||||||
|
end
|
||||||
12
doc/std/lang/String.im
Normal file
12
doc/std/lang/String.im
Normal 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
0
doc/std/lang/init.im
Normal file
Reference in New Issue
Block a user