summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli/TypeDump/Program.cs169
-rw-r--r--src/cli/runtime/AFn.cs407
-rw-r--r--src/cli/runtime/APersistentArray.cs139
-rw-r--r--src/cli/runtime/APersistentMap.cs149
-rw-r--r--src/cli/runtime/ASeq.cs84
-rw-r--r--src/cli/runtime/ArraySeq.cs66
-rw-r--r--src/cli/runtime/Associative.cs21
-rw-r--r--src/cli/runtime/BigNum.cs225
-rw-r--r--src/cli/runtime/Binding.cs29
-rw-r--r--src/cli/runtime/Box.cs28
-rw-r--r--src/cli/runtime/ClassSymbol.cs24
-rw-r--r--src/cli/runtime/Cons.cs47
-rw-r--r--src/cli/runtime/DoubleNum.cs242
-rw-r--r--src/cli/runtime/EnumeratorIter.cs43
-rw-r--r--src/cli/runtime/EnumeratorSeq.cs47
-rw-r--r--src/cli/runtime/FixNum.cs243
-rw-r--r--src/cli/runtime/FloatNum.cs21
-rw-r--r--src/cli/runtime/FnSeq.cs46
-rw-r--r--src/cli/runtime/HostSymbol.cs12
-rw-r--r--src/cli/runtime/IFn.cs47
-rw-r--r--src/cli/runtime/IMapEntry.cs23
-rw-r--r--src/cli/runtime/IObj.cs26
-rw-r--r--src/cli/runtime/IPersistentArray.cs24
-rw-r--r--src/cli/runtime/IPersistentCollection.cs25
-rw-r--r--src/cli/runtime/IPersistentList.cs23
-rw-r--r--src/cli/runtime/IPersistentMap.cs26
-rw-r--r--src/cli/runtime/ISeq.cs22
-rw-r--r--src/cli/runtime/IndexedSeq.cs21
-rw-r--r--src/cli/runtime/Indexer.cs18
-rw-r--r--src/cli/runtime/InstanceMemberSymbol.cs181
-rw-r--r--src/cli/runtime/IntegerNum.cs21
-rw-r--r--src/cli/runtime/Iter.cs30
-rw-r--r--src/cli/runtime/Keyword.cs113
-rw-r--r--src/cli/runtime/LineNumberingTextReader.cs75
-rw-r--r--src/cli/runtime/LispReader.cs439
-rw-r--r--src/cli/runtime/MapEntry.cs135
-rw-r--r--src/cli/runtime/Module.cs70
-rw-r--r--src/cli/runtime/Num.cs351
-rw-r--r--src/cli/runtime/Obj.cs32
-rw-r--r--src/cli/runtime/PerisistentArrayList.cs115
-rw-r--r--src/cli/runtime/PersistentArray.cs597
-rw-r--r--src/cli/runtime/PersistentArrayMap.cs261
-rw-r--r--src/cli/runtime/PersistentHashtableMap.cs304
-rw-r--r--src/cli/runtime/PersistentList.cs55
-rw-r--r--src/cli/runtime/PersistentQueue.cs214
-rw-r--r--src/cli/runtime/PersistentTreeMap.cs869
-rw-r--r--src/cli/runtime/RT.cs682
-rw-r--r--src/cli/runtime/RatioNum.cs229
-rw-r--r--src/cli/runtime/RationalNum.cs21
-rw-r--r--src/cli/runtime/RealNum.cs21
-rw-r--r--src/cli/runtime/Reflector.cs168
-rw-r--r--src/cli/runtime/RestFn.cs1336
-rw-r--r--src/cli/runtime/Sequential.cs18
-rw-r--r--src/cli/runtime/StaticMemberSymbol.cs160
-rw-r--r--src/cli/runtime/Symbol.cs100
-rw-r--r--src/cli/runtime/TObj.cs51
-rw-r--r--src/cli/runtime/TRef.cs32
-rw-r--r--src/cli/runtime/TVal.cs42
-rw-r--r--src/cli/runtime/ThreadLocalData.cs34
-rw-r--r--src/cli/runtime/Transaction.cs267
-rw-r--r--src/cli/runtime/Tuple.cs91
-rw-r--r--src/cli/runtime/Var.cs123
-rw-r--r--src/lisp/clojure.lisp1597
-rw-r--r--src/lisp/lib.lisp235
-rw-r--r--src/lisp/test.lisp152
-rw-r--r--src/org/clojure/runtime/AFn.java101
-rw-r--r--src/org/clojure/runtime/AGenerator.java25
-rw-r--r--src/org/clojure/runtime/Accessor.java81
-rw-r--r--src/org/clojure/runtime/BigNum.java220
-rw-r--r--src/org/clojure/runtime/Binding.java25
-rw-r--r--src/org/clojure/runtime/Box.java23
-rw-r--r--src/org/clojure/runtime/Cons.java37
-rw-r--r--src/org/clojure/runtime/DoubleNum.java244
-rw-r--r--src/org/clojure/runtime/FixNum.java239
-rw-r--r--src/org/clojure/runtime/FloatNum.java17
-rw-r--r--src/org/clojure/runtime/FnSeq.java30
-rw-r--r--src/org/clojure/runtime/IFn.java34
-rw-r--r--src/org/clojure/runtime/IMapEntry.java17
-rw-r--r--src/org/clojure/runtime/IObj.java26
-rw-r--r--src/org/clojure/runtime/IPersistentMap.java31
-rw-r--r--src/org/clojure/runtime/ISeq.java24
-rw-r--r--src/org/clojure/runtime/ISequential.java18
-rw-r--r--src/org/clojure/runtime/Indexer.java16
-rw-r--r--src/org/clojure/runtime/IntegerNum.java17
-rw-r--r--src/org/clojure/runtime/Iter.java38
-rw-r--r--src/org/clojure/runtime/IteratorIter.java44
-rw-r--r--src/org/clojure/runtime/Keyword.java89
-rw-r--r--src/org/clojure/runtime/LineNumberingPushbackReader.java27
-rw-r--r--src/org/clojure/runtime/Namespace.java70
-rw-r--r--src/org/clojure/runtime/Num.java220
-rw-r--r--src/org/clojure/runtime/Obj.java44
-rw-r--r--src/org/clojure/runtime/PersistentArray.java350
-rw-r--r--src/org/clojure/runtime/PersistentArrayIdentityMap.java35
-rw-r--r--src/org/clojure/runtime/PersistentArrayMap.java212
-rw-r--r--src/org/clojure/runtime/PersistentHashtableIdentityMap.java96
-rw-r--r--src/org/clojure/runtime/PersistentHashtableMap.java255
-rw-r--r--src/org/clojure/runtime/PersistentHybridIdentityMap.java47
-rw-r--r--src/org/clojure/runtime/PersistentHybridMap.java104
-rw-r--r--src/org/clojure/runtime/PersistentListIdentityMap.java286
-rw-r--r--src/org/clojure/runtime/PersistentListMap.java290
-rw-r--r--src/org/clojure/runtime/PersistentTree.java809
-rw-r--r--src/org/clojure/runtime/RT.java319
-rw-r--r--src/org/clojure/runtime/RatioNum.java226
-rw-r--r--src/org/clojure/runtime/RationalNum.java17
-rw-r--r--src/org/clojure/runtime/RealNum.java17
-rw-r--r--src/org/clojure/runtime/Reflector.java320
-rw-r--r--src/org/clojure/runtime/RestFn0.java60
-rw-r--r--src/org/clojure/runtime/RestFn1.java65
-rw-r--r--src/org/clojure/runtime/RestFn2.java66
-rw-r--r--src/org/clojure/runtime/RestFn3.java67
-rw-r--r--src/org/clojure/runtime/RestFn4.java70
-rw-r--r--src/org/clojure/runtime/RestFn5.java73
-rw-r--r--src/org/clojure/runtime/Symbol.java84
-rw-r--r--src/org/clojure/runtime/TObj.java37
-rw-r--r--src/org/clojure/runtime/TRef.java33
-rw-r--r--src/org/clojure/runtime/TVal.java39
-rw-r--r--src/org/clojure/runtime/ThreadLocalData.java37
-rw-r--r--src/org/clojure/runtime/Transaction.java236
-rw-r--r--src/org/clojure/runtime/Var.java142
-rw-r--r--src/org/clojure/tools/TypeDump.java199
120 files changed, 0 insertions, 17866 deletions
diff --git a/src/cli/TypeDump/Program.cs b/src/cli/TypeDump/Program.cs
deleted file mode 100644
index 755a62e8..00000000
--- a/src/cli/TypeDump/Program.cs
+++ /dev/null
@@ -1,169 +0,0 @@
-/**
- * Copyright (c) Rich Hickey. All rights reserved.
- * The use and distribution terms for this software are covered by the
- * Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
- * which can be found in the file CPL.TXT at the root of this distribution.
- * By using this software in any fashion, you are agreeing to be bound by
- * the terms of this license.
- * You must not remove this notice, or any other, from this software.
- **/
-
-using System;
-using System.IO;
-using System.Reflection;
-
-namespace TypeDump
- {
- class Program
- {
- static void Main(string[] args)
- {
- if (args.Length < 2)
- {
- Console.Error.WriteLine("usage: typedump assembly namespace [namespace ...]");
- return;
- }
- Assembly a = Assembly.Load(new AssemblyName(args[0]));
- Console.WriteLine('(');
- foreach (Type t in a.GetExportedTypes())
- {
- if(Array.IndexOf(args,t.Namespace,1) >= 0
- //we don't deal with generics
- && !(t.IsGenericTypeDefinition || t.IsGenericType))
- dumpType(t, Console.Out);
- }
- Console.WriteLine(')');
- }
-
- static bool hasGenericOrRefParam(ParameterInfo[] args)
- {
- return Array.Find(args, delegate(ParameterInfo pi)
- {
- Type pit = pi.ParameterType;
- return pit.IsGenericTypeDefinition || pit.IsGenericType ||pit.IsByRef;
-