Exemplo n.º 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);
 }
Exemplo n.º 2
0
  @Override
  public Syntax syntax() {
    int[] right;
    right = new int[] {Syntax.NumberType(), Syntax.NumberType()};

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