bugfixes and cleanup

This commit is contained in:
Kim Ravn Hansen
2025-10-13 18:58:58 +02:00
parent 1249a34fc5
commit e12dfd0981
12 changed files with 165 additions and 114 deletions

View File

@@ -86,15 +86,16 @@ export class TileArgs {
* @returns {TileOptions[]}
*
* @example
* // returns
*
* parse(`O(1); P(orientation=north); E(Gnolls, texture=gnolls)`)
*
* // the string above will be parsed into:
* // [
* // {name="O", args=[{ key: 0, value: 1 }]},
* // {name="P", args=[{ key: "orientation", value: "north" }]},
* // {name="E", args=[{ key: 0, value: "Gnolls" }, { key: "texture", value: "gnolls" }]},
* // ];
*
* parse(`O(1); P(orientation=north); E(Gnolls, texture=gnolls)`)
*
*/
export default function parse(input) {
const calls = [];