Closed Anaminus closed 7 years ago
Generates data on the fly.
Input only: Generating an output doesn't really make sense.
generate://<type>
Types:
Instance
Property
Value
The reference specifies the content of the generated data.
The reference has the following syntax:
root = <class> { `;` <class> } [ `;` ] class = <name> `{` [ <properties> ] `}` properties = <property> { `;` <property> } [ `;` ] property = <name> <type> `:` <value> name = <string> type = <string> value = <component> { `,` <component> } [ `,` ] component = <bool> | <number> | <string> bool = `true` | `false` number = ! a number ! string = ! a string, possibly quoted with " or ', escaped with \ !
Problem: How to implement <value> Solution: Use rbxfile/declare: declare can fill in any value using only bools, numbers, and strings.
<value>
rbxfile/declare
The reference uses the <properties> syntax.
<properties>
The reference uses the <value> syntax.
Possibly a better property syntax:
property = <name> `:` <type> `=` <value>
If an API is provided, then <type> can be omitted from <property>.
<type>
<property>
Generates data on the fly.
Scheme
Input only: Generating an output doesn't really make sense.
generate://<type>
Types:
Instance
Property
Value
The reference specifies the content of the generated data.
Instance
The reference has the following syntax:
Problem: How to implement
<value>
Solution: Userbxfile/declare
: declare can fill in any value using only bools, numbers, and strings.Property
The reference uses the
<properties>
syntax.Value
The reference uses the
<value>
syntax.