sdr 0.7

net.cscott.sdr.calls.lists
Class C1List

java.lang.Object
  extended by net.cscott.sdr.calls.lists.C1List

public abstract class C1List
extends Object

The C1List class contains complex call and concept definitions which are on the 'C1' program. Note that "simple" calls and concepts are defined in the resource file at net/cscott/sdr/calls/lists/c1.calls; this class contains only those definitions for which an executable component is required.

Author:
C. Scott Ananian

Nested Class Summary
static class C1List.ConcentricEvaluator
          Evaluator for concentric and quasi-concentric.
static class C1List.ConcentricType
          Variant of 'concentric' to do.
 
Field Summary
static Call CONCENTRIC
           
static Call FINISH
          The "finish" concept.
static Call SIAMESE
           
static Call TANDEM
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FINISH

public static final Call FINISH
The "finish" concept.

Tests:
Evaluate FINISH SWING THRU.
js> importPackage(net.cscott.sdr.calls)
js> importPackage(net.cscott.sdr.calls.ast)
js> ds = new DanceState(new DanceProgram(Program.C1), Formation.FOUR_SQUARE); undefined;
js> a1 = Expr.literal("swing thru")
'swing thru
js> a = new Expr("finish", a1)
(Expr finish 'swing thru)
js> C1List.FINISH.getEvaluator(ds, a.args).simpleExpansion()
(Seq (Part 'DIVISIBLE '1 (Opt (From 'ANY (Seq (Part 'DIVISIBLE '1 (Seq (Apply (Expr _those who can turn left not grand '1/2)))))))))
Evaluate FINISH RECYCLE.
js> importPackage(net.cscott.sdr.calls)
js> importPackage(net.cscott.sdr.calls.ast)
js> ds = new DanceState(new DanceProgram(Program.C1), Formation.FOUR_SQUARE); undefined;
js> Evaluator.parseAndEval(ds, "touch 1/2")
js> a = new Expr("finish", Expr.literal("recycle"))
(Expr finish 'recycle)
js> C1List.FINISH.getEvaluator(ds, a.args).simpleExpansion()
(Opt (From 'ANY (Seq (Part 'DIVISIBLE '1 (Opt (From 'ANY (Seq (Apply (Expr _box counter rotate '1/4)) (Apply 'roll))))))))

TANDEM

public static final Call TANDEM

SIAMESE

public static final Call SIAMESE

CONCENTRIC

public static final Call CONCENTRIC

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian