Commits

Anonymous committed 01db036

euclid

  • Participants
  • Parent commits 62aecb9

Comments (0)

Files changed (24)

.hgtags

File contents unchanged.

docs/pyCon2010/format.tex

File contents unchanged.

docs/pyCon2010/introduction.tex

File contents unchanged.

docs/pyCon2010/others.tex

File contents unchanged.

docs/pyCon2010/paper.tex

File contents unchanged.

docs/zh20100314/slides.tex

File contents unchanged.

setup.py

File contents unchanged.

src/euclid/Euclid.h

+#import <Foundation/NSObject.h>
+#import <Foundation/NSDictionary.h>
+#import <Foundation/NSArray.h>
+
+@interface EuclidCollection:NSObject{
+@private
+    NSMutableDictionary * indexes;
+    NSArray * pool;
+}
+
+-(void) init;
+-(void) initWithCapacity: (unsigned int) capacity;
+-(void) writeSegment: (Segment *) segment;
+-(void) writeSegments: (NSArray *) segments;
+-(void) writeSubject: (Subject *) subject;
+-(void) writeSubjects: (NSArray *) subjects;
+
+@end

src/euclid/GNUmakefile

+GNUSTEP_MAKEFILES=/usr/share/GNUStep/Makefiles
+
+include $(GNUSTEP_MAKEFILES)/common.make
+
+LIBRARY_NAME=euclid
+euclid_OBJC_FILES=euclid.m
+
+include $(GNUSTEP_MAKEFILES)/library.make
+

src/euclid/Segment.h

+#import <Foundation/NSObject.h>
+#import <Foundation/NSDictionary.h>
+#import <Foundation/NSArray.h>
+#import <Foundation/NSSet.h>
+#import <Foundation/NSString.h>
+
+typedef enum{
+    SET,
+    ARRAY,
+    ATOM
+} eumObjectCollectionType;
+
+@interface Segment : NSObject{
+@private
+    id Subject;
+    NSString * predicate;
+    id cell;
+}
+
+-(void) init;
+-(void) initWithCapacity: (unsigned int) capacity;
+
++(Segment *) segmentWithSubject: (id) subject 
+                   andPredicate: (NSString) preicate
+                      andObject: (id) object;
+
++(Segment *) segmentWithSubject: (id) subject 
+                   andPredicate: (NSString *) preicate
+                         andSet: (NSSet *) cell;
+
++(Segment *) segmentWithSubject: (id) subject 
+                   andPredicate: (NSString *) preicate
+                       andArray: (NSArray *) cell;
+
+
+
+@end

src/euclid/Subject.h

+#import <Foundation/NSObject.h>
+#import <Foundation/NSDictionary.h>
+#import <Foundation/NSArray.h>
+
+@interface Subject : NSMutableDictionary{
+    
+}
+-(void) init;
+-(void) initWithCapacity: (unsigned int) capacity;
+-(void) writeSegment: (Segment *) segment;
+-(void) writeSegments: (NSArray *) segments;
+-(Segment *) getSegment: (NSString *) predicate;

src/socrates/__init__.py

File contents unchanged.

src/socrates/core.py

File contents unchanged.

src/socrates/euclid/__init__.py

File contents unchanged.

src/socrates/euclid/stacklesseuclid.py

File contents unchanged.

src/socrates/meta.py

File contents unchanged.

src/socrates/parser/__init__.py

File contents unchanged.

src/socrates/parser/prdparser/__init__.py

File contents unchanged.

src/socrates/parser/prdparser/parse.py

File contents unchanged.

src/socrates/parser/prdparser/scanner.py

File contents unchanged.

src/socrates/types.py

File contents unchanged.

test/create.py

File contents unchanged.

test/euclid/funtest.py

File contents unchanged.

test/read.py

File contents unchanged.