net.cscott.sdr.calls.lists
Class BasicList
java.lang.Object
net.cscott.sdr.calls.lists.BasicList
public abstract class BasicList
- extends Object
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.
- Version:
- $Id: BasicList.java,v 1.20 2009-02-05 06:13:31 cananian Exp $
- Author:
- C. Scott Ananian
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AND
public static final Call AND
_ADD_NUM
public static final Call _ADD_NUM
_SUBTRACT_NUM
public static final Call _SUBTRACT_NUM
_MULTIPLY_NUM
public static final Call _MULTIPLY_NUM
_DIVIDE_NUM
public static final Call _DIVIDE_NUM
LEFT
public static final Call LEFT
_FRACTIONAL
public static final Call _FRACTIONAL
- The "fractional" concept.
- Tests:
Evaluate TWICE DOSADO and the DOSADO 1 1/2. Note that we prohibit
further subdivision of the DOSADO 1 1/2.
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) (Prim 1, 1, none, 1)))))))))
Copyright © 2006-2009 C. Scott Ananian