diff --git a/doc/std/init.im b/doc/std/init.im new file mode 100644 index 0000000..38e75d0 --- /dev/null +++ b/doc/std/init.im @@ -0,0 +1 @@ +package std diff --git a/doc/std/io/StreamReader.im b/doc/std/io/StreamReader.im new file mode 100644 index 0000000..9b079cb --- /dev/null +++ b/doc/std/io/StreamReader.im @@ -0,0 +1,5 @@ +package std.io + +protocol StreamReader + - get:buf +end diff --git a/doc/std/io/StreamWriter.im b/doc/std/io/StreamWriter.im new file mode 100644 index 0000000..b1ec45b --- /dev/null +++ b/doc/std/io/StreamWriter.im @@ -0,0 +1,7 @@ +package std.io + +protocol StreamWriter + - flush + - print:msg + - put:msg +end diff --git a/doc/std/io/init.im b/doc/std/io/init.im new file mode 100644 index 0000000..21b454c --- /dev/null +++ b/doc/std/io/init.im @@ -0,0 +1,5 @@ +package std.io + +cin = StreamReader new +cout = StreamWriter new +cerr = StreamWriter new diff --git a/doc/std/lang/Bool.im b/doc/std/lang/Bool.im new file mode 100644 index 0000000..4bdbccb --- /dev/null +++ b/doc/std/lang/Bool.im @@ -0,0 +1,5 @@ +package std.lang + +protocol Bool + - if: + - if:else: diff --git a/doc/std/lang/Int.im b/doc/std/lang/Int.im new file mode 100644 index 0000000..2bffee2 --- /dev/null +++ b/doc/std/lang/Int.im @@ -0,0 +1,8 @@ +package std.lang + +protocol Int + + parse: + - to: + - to:step: + - to:step:do: +end diff --git a/doc/std/lang/Iterator.im b/doc/std/lang/Iterator.im new file mode 100644 index 0000000..fa42fc8 --- /dev/null +++ b/doc/std/lang/Iterator.im @@ -0,0 +1,9 @@ +package std.lang + +protocol Iterator + - value + - moveNext + - select: + - select:collect: + - iterator +end diff --git a/doc/std/lang/Lambda.im b/doc/std/lang/Lambda.im new file mode 100644 index 0000000..1855539 --- /dev/null +++ b/doc/std/lang/Lambda.im @@ -0,0 +1,14 @@ +package std.lang + +protocol Lambda + - argCount + - call + - call: + - call(_:_:) + - call(_:_:_:) + - call(_:_:_:_:) + - call(args:) + - on:do: + - if: + - unless: +end diff --git a/doc/std/lang/Object.im b/doc/std/lang/Object.im new file mode 100644 index 0000000..d9da691 --- /dev/null +++ b/doc/std/lang/Object.im @@ -0,0 +1,10 @@ +package std.lang + +protocol Object + - is: + - implements: + - respondsTo: + - doesNotUnderstand(selector:args:) + - sendMsg(selector:args:) + - toString +end diff --git a/doc/std/lang/Package.im b/doc/std/lang/Package.im new file mode 100644 index 0000000..65c7c3b --- /dev/null +++ b/doc/std/lang/Package.im @@ -0,0 +1,12 @@ +package std.lang + +protocol Package + - size + - iterator + - exists: + - put:at: + - get: + - map: + - select: + - select:collect: +end diff --git a/doc/std/lang/Selector.im b/doc/std/lang/Selector.im new file mode 100644 index 0000000..b439ba9 --- /dev/null +++ b/doc/std/lang/Selector.im @@ -0,0 +1,5 @@ +package std.lang + +protocol Selector + + parse +end diff --git a/doc/std/lang/String.im b/doc/std/lang/String.im new file mode 100644 index 0000000..02482b6 --- /dev/null +++ b/doc/std/lang/String.im @@ -0,0 +1,12 @@ +package std.lang + +protocol String + - size + - uppercase + - lowercase + - append: + - prepend: + - at:insert: + - contains: + - iterator +end diff --git a/doc/std/lang/init.im b/doc/std/lang/init.im new file mode 100644 index 0000000..e69de29