|
sdr 0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cscott.sdr.calls.lists.BasicList
public abstract class BasicList
The BasicList
class contains complex call
and concept definitions which are on the 'basic' program.
Note that "simple" calls and concepts are defined in
the resource file at
net/cscott/sdr/calls/lists/basic.calls
;
this class contains only those definitions for which an
executable component is required.
Nested Class Summary | |
---|---|
static class |
BasicList.LRMEvaluator
Evaluator for left, reverse, and mirror. |
static class |
BasicList.LRMType
Enumeration: left, reverse, or mirror. |
Field Summary | |
---|---|
static Call |
_ADD_NUM
Simple math: addition. |
static Call |
_DIVIDE_NUM
Simple math: division. |
static Call |
_FRACTIONAL
The "fractional" concept. |
static Call |
_HALF
|
static Call |
_MULTIPLY_NUM
Simple math: multiplication. |
static Call |
_SUBTRACT_NUM
Simple math: subtraction. |
static Call |
AND
|
static Call |
LEFT
|
static Call |
REVERSE
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Call AND
public static final Call _ADD_NUM
js> c=net.cscott.sdr.calls.ast.AstNode.valueOf("(Apply _add_num (Apply 2) (Apply 1))") (Apply _add_num (Apply 2) (Apply 1)) js> c.expand() (Seq (Apply 3))
public static final Call _SUBTRACT_NUM
js> c=net.cscott.sdr.calls.ast.AstNode.valueOf("(Apply _subtract_num (Apply 3) (Apply 2))") (Apply _subtract_num (Apply 3) (Apply 2)) js> c.expand() (Seq (Apply 1))
public static final Call _MULTIPLY_NUM
js> c=net.cscott.sdr.calls.ast.AstNode.valueOf("(Apply _multiply_num (Apply 3) (Apply 2))") (Apply _multiply_num (Apply 3) (Apply 2)) js> c.expand() (Seq (Apply 6))
public static final Call _DIVIDE_NUM
js> c=net.cscott.sdr.calls.ast.AstNode.valueOf("(Apply _divide_num (Apply 3) (Apply 2))") (Apply _divide_num (Apply 3) (Apply 2)) js> c.expand() (Seq (Apply 1 1/2))
public static final Call LEFT
public static final Call REVERSE
public static final Call _FRACTIONAL
js> importPackage(net.cscott.sdr.calls.ast) js> a1 = Apply.makeApply("dosado") (Apply dosado) js> a = Apply.makeApply("_fractional", Apply.makeApply("2"), a1) (Apply _fractional (Apply 2) (Apply dosado)) js> BasicList._FRACTIONAL.apply(a) (Seq (Part true (Seq (Apply dosado))) (Part true (Seq (Apply dosado)))) js> a = Apply.makeApply("_fractional", Apply.makeApply("1 1/2"), a1) (Apply _fractional (Apply 1 1/2) (Apply dosado)) js> BasicList._FRACTIONAL.apply(a) (Seq (Part false (Seq (Part true (Seq (Apply dosado))) (Part true (In 3 (Opt (From [FACING DANCERS] (Seq (Prim -1, 1, none, 1, SASHAY_START) (Prim 1, 1, none, 1, SASHAY_FINISH)))))))))
public static final Call _HALF
|
sdr 0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |