Category talk:Wren-lsystem: Difference between revisions
Content deleted Content added
m →Source code: Now uses Wren S/H lexer. |
Fixed some argument checking bugs. |
||
Line 35:
// Performs an operation on each symbol in the symbols string.
static execute(symbols, operations) {
if (!((symbols is String) && symbols.count >
Fiber.abort("Symbols must be a non-empty string.")
}
if (!((operations is Map) && operations.count >
Fiber.abort("Operations must be a non-empty map of single character strings to functions.")
}
Line 67:
}
}
if (!((axiom is String) && axiom.count >
Fiber.abort("Axiom must be a non-empty string.")
}
|