[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 78/255: stubbing out generic trans functions
From: |
Eric Schulte |
Subject: |
[elpa] 78/255: stubbing out generic trans functions |
Date: |
Sun, 16 Mar 2014 01:02:23 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit bec73ba3f06e2ac325ad782cb7dd129543045b16
Author: Eric Schulte <address@hidden>
Date: Tue May 22 21:03:18 2012 -0400
stubbing out generic trans functions
---
sgf-trans.el | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/sgf-trans.el b/sgf-trans.el
index 9b73fb5..2b12b2e 100644
--- a/sgf-trans.el
+++ b/sgf-trans.el
@@ -35,7 +35,15 @@
;;; Code:
(require 'sgf-util)
-
-;; TODO: API, and how functions may implement it
+(require 'eieio)
+
+(defgeneric sgf->move (back-end move) "Send MOVE to BACK-END.")
+(defgeneric sgf->board (back-end size) "Send SIZE to BACK-END.")
+(defgeneric sgf->resign (back-end resign) "Send RESIGN to BACK-END.")
+(defgeneric sgf->undo (back-end undo) "Send UNDO to BACK-END.")
+(defgeneric sgf->comment (back-end comment) "Send COMMENT to BACK-END.")
+(defgeneric sgf<-move (back-end) "Get POS from BACK-END.")
+(defgeneric sgf<-board (back-end) "Get SIZE from BACK-END.")
+(defgeneric sgf<-comment (back-end) "Get COMMENT from BACK-END.")
(provide 'sgf-trans)
- [elpa] 66/255: parsing weird comments, (continued)
- [elpa] 66/255: parsing weird comments, Eric Schulte, 2014/03/15
- [elpa] 72/255: tweak header, Eric Schulte, 2014/03/15
- [elpa] 68/255: misc, Eric Schulte, 2014/03/15
- [elpa] 65/255: cleanup and straightening, Eric Schulte, 2014/03/15
- [elpa] 71/255: other new files, Eric Schulte, 2014/03/15
- [elpa] 69/255: better names for dynamic local variables, Eric Schulte, 2014/03/15
- [elpa] 70/255: bringing in some files from my old go-mode, Eric Schulte, 2014/03/15
- [elpa] 74/255: sending sgf commands to gnugo, Eric Schulte, 2014/03/15
- [elpa] 76/255: sgf-play -> sgf-trans, Eric Schulte, 2014/03/15
- [elpa] 75/255: stubbing out board interaction functions, Eric Schulte, 2014/03/15
- [elpa] 78/255: stubbing out generic trans functions,
Eric Schulte <=
- [elpa] 79/255: communicating with gnugo through gtp generics, Eric Schulte, 2014/03/15
- [elpa] 77/255: saner requirement dependency graph, Eric Schulte, 2014/03/15
- [elpa] 81/255: normalization, Eric Schulte, 2014/03/15
- [elpa] 80/255: splitting the sgf back end from the board interface, Eric Schulte, 2014/03/15
- [elpa] 84/255: more transition, Eric Schulte, 2014/03/15
- [elpa] 82/255: organization, Eric Schulte, 2014/03/15
- [elpa] 88/255: made the *back-ends* variable singular, Eric Schulte, 2014/03/15
- [elpa] 57/255: splitting sgf.el into board test and utility files, Eric Schulte, 2014/03/15
- [elpa] 87/255: removed old variable, Eric Schulte, 2014/03/15
- [elpa] 83/255: starting to transition to generic board interface, Eric Schulte, 2014/03/15