示例#1
0
 @Override
 public Syntax syntax() {
   int left = Syntax.NumberType();
   int[] right = {Syntax.NumberType()};
   return Syntax.reporterSyntax(
       left, right, Syntax.NumberType(), org.nlogo.api.Syntax.NormalPrecedence() - 2);
 }
示例#2
0
  @Override
  public Syntax syntax() {
    int[] right;
    right = new int[] {Syntax.NumberType(), Syntax.NumberType()};

    return Syntax.reporterSyntax(right, Syntax.PatchType() | Syntax.NobodyType());
  }
示例#3
0
 @Override
 public Syntax syntax() {
   return Syntax.commandSyntax(
       new int[] {
         Syntax.TurtlesetType(),
         Syntax.LinksetType(),
         Syntax.NumberType(),
         Syntax.NumberType(),
         Syntax.NumberType()
       },
       true);
 }
示例#4
0
 @Override
 public Syntax syntax() {
   return Syntax.commandSyntax(
       new int[] {Syntax.NumberType(), Syntax.CommandBlockType() | Syntax.OptionalType()},
       "O---",
       "-T--",
       true);
 }
示例#5
0
 @Override
 public Syntax getSyntax() {
   return Syntax.reporterSyntax(
       new int[] {
         Syntax.WildcardType(), Syntax.NumberType(),
       },
       Syntax.WildcardType());
 }
示例#6
0
 @Override
 public Syntax syntax() {
   return Syntax.reporterSyntax(
       new int[] {Syntax.AgentsetType(), Syntax.BooleanBlockType()},
       Syntax.NumberType(),
       "OTPL",
       "?");
 }
示例#7
0
 @Override
 public Syntax getSyntax() {
   return Syntax.commandSyntax(
       new int[] {
         Syntax.StringType(),
         Syntax.StringType(),
         Syntax.NumberType(),
         Syntax.StringType() | Syntax.RepeatableType()
       },
       3);
 }
 public Syntax getSyntax() {
   return Syntax.commandSyntax(
       new int[] {
         Syntax.StringType(),
         Syntax.NumberType(),
         Syntax.NumberType(),
         Syntax.NumberType(),
         Syntax.NumberType(),
         Syntax.NumberType(),
         Syntax.NumberType()
       });
 }
示例#9
0
 @Override
 public Syntax syntax() {
   return Syntax.reporterSyntax(new int[] {Syntax.NumberType()}, Syntax.NumberType());
 }
 @Override
 public Syntax syntax() {
   return Syntax.reporterSyntax(Syntax.NumberType(), "-TP-");
 }
示例#11
0
 @Override
 public Syntax syntax() {
   int[] right = {Syntax.NumberType(), Syntax.ListType() | Syntax.StringType()};
   int ret = Syntax.WildcardType();
   return Syntax.reporterSyntax(right, ret);
 }
示例#12
0
 @Override
 public Syntax syntax() {
   int[] right = {Syntax.NumberType(), Syntax.NumberType()};
   int ret = Syntax.BooleanType();
   return Syntax.reporterSyntax(right, ret);
 }
示例#13
0
 @Override
 public Syntax syntax() {
   int[] right = {Syntax.NumberType(), Syntax.NumberType()};
   return Syntax.reporterSyntax(right, Syntax.NumberType(), "-TP-");
 }
示例#14
0
 public Syntax getSyntax() {
   return Syntax.reporterSyntax(new int[] {Syntax.NumberType()}, Syntax.ListType());
 }