Permalink
Browse files

Remove ceylon.language code

  • Loading branch information...
1 parent eb599b4 commit 8bf8eda2a9a20a8f3985b2cef46a3397fdf672ca @emmanuelbernard emmanuelbernard committed Oct 3, 2011
Showing with 0 additions and 1,257 deletions.
  1. +0 −3 languagesrc/current/ceylon/language/Boolean.ceylon
  2. +0 −9 languagesrc/current/ceylon/language/Case.ceylon
  3. +0 −4 languagesrc/current/ceylon/language/Castable.ceylon
  4. +0 −30 languagesrc/current/ceylon/language/Category.ceylon
  5. +0 −8 languagesrc/current/ceylon/language/Character.ceylon
  6. +0 −4 languagesrc/current/ceylon/language/Cloneable.ceylon
  7. +0 −4 languagesrc/current/ceylon/language/Closeable.ceylon
  8. +0 −33 languagesrc/current/ceylon/language/Comparable.ceylon
  9. +0 −5 languagesrc/current/ceylon/language/Comparison.ceylon
  10. +0 −7 languagesrc/current/ceylon/language/Container.ceylon
  11. +0 −83 languagesrc/current/ceylon/language/Correspondence.ceylon
  12. +0 −32 languagesrc/current/ceylon/language/Empty.ceylon
  13. +0 −58 languagesrc/current/ceylon/language/Entries.ceylon
  14. +0 −29 languagesrc/current/ceylon/language/Entry.ceylon
  15. +0 −15 languagesrc/current/ceylon/language/Equality.ceylon
  16. +0 −16 languagesrc/current/ceylon/language/Exception.ceylon
  17. +0 −10 languagesrc/current/ceylon/language/FixedSlots.ceylon
  18. +0 −7 languagesrc/current/ceylon/language/Float.ceylon
  19. +0 −4 languagesrc/current/ceylon/language/FloatOverflowException.ceylon
  20. +0 −3 languagesrc/current/ceylon/language/Format.ceylon
  21. +0 −22 languagesrc/current/ceylon/language/IdentifiableObject.ceylon
  22. +0 −7 languagesrc/current/ceylon/language/Integer.ceylon
  23. +0 −4 languagesrc/current/ceylon/language/IntegerOverflowException.ceylon
  24. +0 −8 languagesrc/current/ceylon/language/Integral.ceylon
  25. +0 −9 languagesrc/current/ceylon/language/Invertable.ceylon
  26. +0 −17 languagesrc/current/ceylon/language/Iterable.ceylon
  27. +0 −6 languagesrc/current/ceylon/language/Iterator.ceylon
  28. +0 −5 languagesrc/current/ceylon/language/Natural.ceylon
  29. +0 −4 languagesrc/current/ceylon/language/NegativeNumberException.ceylon
  30. +0 −3 languagesrc/current/ceylon/language/Nothing.ceylon
  31. +0 −58 languagesrc/current/ceylon/language/Number.ceylon
  32. +0 −42 languagesrc/current/ceylon/language/Numeric.ceylon
  33. +0 −35 languagesrc/current/ceylon/language/Object.ceylon
  34. +0 −15 languagesrc/current/ceylon/language/Ordinal.ceylon
  35. +0 −4 languagesrc/current/ceylon/language/OutOfRangeException.ceylon
  36. +0 −1 languagesrc/current/ceylon/language/Quoted.ceylon
  37. +0 −148 languagesrc/current/ceylon/language/Range.ceylon
  38. +0 −98 languagesrc/current/ceylon/language/Sequence.ceylon
  39. +0 −54 languagesrc/current/ceylon/language/Singleton.ceylon
  40. +0 −12 languagesrc/current/ceylon/language/Sized.ceylon
  41. +0 −24 languagesrc/current/ceylon/language/Slots.ceylon
  42. +0 −51 languagesrc/current/ceylon/language/String.ceylon
  43. +0 −7 languagesrc/current/ceylon/language/Summable.ceylon
  44. +0 −15 languagesrc/current/ceylon/language/Usable.ceylon
  45. +0 −2 languagesrc/current/ceylon/language/Void.ceylon
  46. +0 −12 languagesrc/current/ceylon/language/annotations.ceylon
  47. +0 −5 languagesrc/current/ceylon/language/bottom.ceylon
  48. +0 −3 languagesrc/current/ceylon/language/coalesce.ceylon
  49. +0 −22 languagesrc/current/ceylon/language/descriptor/Import.ceylon
  50. +0 −38 languagesrc/current/ceylon/language/descriptor/Module.ceylon
  51. +0 −21 languagesrc/current/ceylon/language/descriptor/Package.ceylon
  52. +0 −3 languagesrc/current/ceylon/language/equal.ceylon
  53. +0 −1 languagesrc/current/ceylon/language/false.ceylon
  54. +0 −5 languagesrc/current/ceylon/language/identical.ceylon
  55. +0 −5 languagesrc/current/ceylon/language/identityHash.ceylon
  56. +0 −1 languagesrc/current/ceylon/language/join.ceylon
  57. +0 −3 languagesrc/current/ceylon/language/larger.ceylon
  58. +0 −10 languagesrc/current/ceylon/language/largest.ceylon
  59. +0 −3 languagesrc/current/ceylon/language/metamodel/Annotated.ceylon
  60. +0 −3 languagesrc/current/ceylon/language/metamodel/Annotation.ceylon
  61. +0 −12 languagesrc/current/ceylon/language/metamodel/ConstrainedAnnotation.ceylon
  62. +0 −6 languagesrc/current/ceylon/language/metamodel/OptionalAnnotation.ceylon
  63. +0 −6 languagesrc/current/ceylon/language/metamodel/SequencedAnnotation.ceylon
  64. +0 −1 languagesrc/current/ceylon/language/metamodel/Type.ceylon
  65. +0 −31 languagesrc/current/ceylon/language/metamodel/annotations.ceylon
  66. +0 −9 languagesrc/current/ceylon/language/module.ceylon
  67. +0 −5 languagesrc/current/ceylon/language/null.ceylon
  68. +0 −15 languagesrc/current/ceylon/language/process.ceylon
  69. +0 −3 languagesrc/current/ceylon/language/smaller.ceylon
  70. +0 −10 languagesrc/current/ceylon/language/smallest.ceylon
  71. +0 −1 languagesrc/current/ceylon/language/true.ceylon
  72. +0 −3 languagesrc/current/ceylon/language/writeLine.ceylon
  73. +0 −5 languagesrc/current/ceylon/language/zip.ceylon
@@ -1,3 +0,0 @@
-shared abstract class Boolean(String name)
- of true | false
- extends Case(name) {}
@@ -1,9 +0,0 @@
-shared abstract class Case(String caseName) {
-
- shared actual default String string = caseName;
-
- shared actual Boolean equals(Equality that) {
- return super.equals(that);
- }
-
-}
@@ -1,4 +0,0 @@
-shared interface Castable<in Types> {
- shared formal CastValue as<CastValue>()
- given CastValue satisfies Types;
-}
@@ -1,30 +0,0 @@
-shared interface Category {
-
- doc "Determine if the given object belongs to the category.
- Return |true| iff the given object belongs to the
- category."
- shared formal Boolean contains(Object element);
-
- shared default Boolean containsEvery(Object... elements) {
- for (Object element in elements) {
- if (!contains(element)) {
- return false;
- }
- }
- else {
- return true;
- }
- }
-
- shared default Boolean containsAny(Object... elements) {
- for (Object element in elements) {
- if (contains(element)) {
- return true;
- }
- }
- else {
- return false;
- }
- }
-
-}
@@ -1,8 +0,0 @@
-shared abstract class Character()
- extends Object()
- satisfies Ordinal<Character> & Comparable<Character> {
-
- shared formal Character lowercase;
- shared formal Character uppercase;
-
-}
@@ -1,4 +0,0 @@
-shared interface Cloneable<out Clone> of Clone
- given Clone satisfies Cloneable<Clone> {
- shared formal Clone clone;
-}
@@ -1,4 +0,0 @@
-shared interface Closeable {
- //TODO: should it have a begin() method?
- shared formal void close(Exception? e);
-}
@@ -1,33 +0,0 @@
-shared interface Comparable<in Other> of Other
- satisfies Equality
- given Other satisfies Comparable<Other> {
-
- doc "The binary compare operator |<=>|. Compares this
- object with the given object. Implementations must
- respect the constraint that if |x==y| then
- |x<=>y == Comparison.equal|, the constraint that
- if |x>y| then |y<x|, and the constraint that if
- |x>y| and |y>z| then |x>z|."
- shared formal Comparison compare(Other other);
-
- doc "The binary |>| operator."
- shared Boolean largerThan(Other other) {
- return compare(other)==larger;
- }
-
- doc "The binary |<| operator."
- shared Boolean smallerThan(Other other) {
- return compare(other)==smaller;
- }
-
- doc "The binary |>=| operator."
- shared Boolean asLargeAs(Other other) {
- return compare(other)!=smaller;
- }
-
- doc "The binary |<=| operator."
- shared Boolean asSmallAs(Other other) {
- return compare(other)!=larger;
- }
-
-}
@@ -1,5 +0,0 @@
-doc "The result of a comparison between two
- |Comparable| objects."
-shared abstract class Comparison(String name)
- of larger | smaller | equal
- extends Case(name) {}
@@ -1,7 +0,0 @@
-shared interface Container {
-
- doc "The nonempty operator. Determine if the container
- is empty."
- shared formal Boolean empty;
-
-}
@@ -1,83 +0,0 @@
-shared interface Correspondence<in Key, out Item>
- given Key satisfies Equality {
-
- doc "Binary lookup operator x[key]. Returns the value defined
- for the given key, or |null| if there is no value defined
- for the given key."
- shared formal Item? item(Key key);
-
- shared default Boolean defines(Key key) {
- return item(key) exists;
- }
-
- shared default Category keys {
- object keys satisfies Category {
- shared actual Boolean contains(Object key) {
- if (is Key key) {
- return defines(key);
- }
- else {
- return false;
- }
- }
- }
- return keys;
- }
-
- shared default Boolean definesEvery(Key... keys) {
- for (Key key in keys) {
- if (!defines(key)) {
- return false;
- }
- }
- else {
- return true;
- }
- }
-
- shared default Boolean definesAny(Key... keys) {
- for (Key key in keys) {
- if (defines(key)) {
- return true;
- }
- }
- else {
- return false;
- }
- }
-
- shared default Item?[] items(Key... keys) {
- if (nonempty keys) {
- return Entries(keys.clone);
- }
- else {
- return {};
- }
- }
-
- class Entries(Sequence<Key> keys)
- extends Object()
- satisfies Sequence<Item?> {
- shared actual Natural lastIndex {
- return keys.lastIndex;
- }
- shared actual Item? first {
- return outer.item(keys.first);
- }
- shared actual Item?[] rest {
- return outer.items(keys.rest...);
- }
- shared actual Item? item(Natural index) {
- if (exists Key key = keys.item(index)) {
- return outer.item(key);
- }
- else {
- return null;
- }
- }
- shared actual Sequence<Item?> clone {
- return this;
- }
- }
-
-}
@@ -1,32 +0,0 @@
-object emptyIterator satisfies Iterator<Bottom> {
-
- shared actual Nothing head {
- return null;
- }
- shared actual Iterator<Bottom> tail {
- return this;
- }
-
-}
-
-shared interface Empty
- satisfies Correspondence<Natural, Bottom> &
- Iterable<Bottom> & Sized {
-
- shared actual Natural size {
- return 0;
- }
- shared actual Boolean empty {
- return true;
- }
- shared actual Iterator<Bottom> iterator {
- return emptyIterator;
- }
- shared actual Nothing item(Natural key) {
- return null;
- }
- shared actual Nothing first {
- return null;
- }
-
-}
@@ -1,58 +0,0 @@
-shared interface Entries<Key, out Item>
- //is EnumerableEntries<Key,Item>
- satisfies Correspondence<Key, Item> & Iterable<Entry<Key,Item>> &
- Sized & Cloneable<Entries<Key,Item>>
- given Key satisfies Equality
- given Item satisfies Equality {}
-
-shared Entries<Natural,Element> entries<Element>(Element... sequence)
- given Element satisfies Equality {
-
- object sequenceEntries
- extends Object()
- satisfies Entries<Natural,Element> {
-
- shared actual Iterator<Entry<Natural,Element>> iterator {
- class EntryIterator(Natural from)
- extends Object()
- satisfies Iterator<Entry<Natural,Element>> {
- shared actual Entry<Natural,Element>? head {
- if (exists Element x = sequence[from]) {
- return from->x;
- }
- else {
- return null;
- }
- }
- shared actual Iterator<Entry<Natural,Element>> tail {
- return EntryIterator(from+1);
- }
- shared actual String string {
- return "" sequence.string " from " from "";
- }
- }
- return EntryIterator(0);
- }
-
- shared actual Element? item(Natural index) {
- return sequence[index];
- }
-
- shared actual Natural size {
- return sequence.size;
- }
-
- shared actual Entries<Natural,Element> clone {
- if (nonempty sequence) {
- return entries<Element>(sequence.clone...);
- }
- else {
- return entries<Element>();
- }
- }
-
- }
-
- return sequenceEntries;
-
-}
@@ -1,29 +0,0 @@
-shared class Entry<out Key, out Item>(Key key, Item item)
- extends Object()
- satisfies Equality
- given Key satisfies Equality
- given Item satisfies Equality {
-
- doc "The key used to access the entry."
- shared Key key = key;
-
- doc "The value associated with the key."
- shared Item item = item;
-
- shared actual Integer hash = key.hash/2 + item.hash/2; //TODO: really should be xor
-
- shared actual Boolean equals(Equality that) {
- if (is Entry<Equality,Equality> that) {
- return this.key==that.key &&
- this.item==that.item;
- }
- else {
- return false;
- }
- }
-
- shared actual String string {
- return key.string + "->" + item.string;
- }
-
-}
@@ -1,15 +0,0 @@
-shared interface Equality {
-
- doc "The equals operator |x == y|. Implementations should
- respect the constraint that if |x===y| then |x==y|,
- the constraint that if |x==y| then |y==x|,
- and the constraint that if |x==y| and |y==z| then
- |x==z|."
- shared formal Boolean equals(Equality that);
-
- doc "The hash code of the instance. Implementations of |hash|
- must respect the constraint that if |x==y| then
- |x.hash==y.hash|."
- shared formal Integer hash;
-
-}
@@ -1,16 +0,0 @@
-shared class Exception(String? description=null, Exception? cause=null)
- extends IdentifiableObject() {
-
- shared Exception? cause = cause;
-
- //shared StackTrace stackTrace { throw; }
-
- shared default String message {
- return description ? cause?.message ? "";
- }
-
- shared actual String string {
- return "Exception \"" message "\"";
- }
-
-}
@@ -1,10 +0,0 @@
-shared interface FixedSlots<Other>
- satisfies Slots<Other>
- given Other satisfies FixedSlots<Other> {
-
- doc "Slotwise complement operator |~x|.
- Implementations should respect the constraint
- that |(~x).slot(z)==!x.slot(z)|."
- shared formal Other complement;
-
-}
@@ -1,7 +0,0 @@
-shared abstract class Float()
- extends Object()
- satisfies Castable<Float> &
- Numeric<Float> &
- Invertable<Float> {
-
-}
@@ -1,4 +0,0 @@
-//TODO improve input param and set default message?
-shared class FloatOverflowException(String? description=null, Exception? cause=null)
- extends Exception(description, cause) {
-}
Oops, something went wrong.

0 comments on commit 8bf8eda

Please sign in to comment.