ZedScript

Added in version v1.5.0.

Module for working with ZedScript files.

Require: require("Starlit/ZedScript")

Function

Starlit.ZedScript.loadChunk(chunk: string): (chunk: starlit.zedscript.Chunk)

Loads a ZedScript chunk.

Parameters:

chunk (string) – ZedScript text of the chunk.

Returns:

chunk (starlit.zedscript.Chunk) – Representation of the data contained in the chunk.

class starlit.zedscript.Chunk
blocks: starlit.zedscript.Block[]

Child blocks.

values: string[]

Non-key-value values.

pairs: table<string, string>

Key-value values. Duplicate keys are lost.

class starlit.zedscript.Block: starlit.zedscript.Chunk

Representation of a ZedScript block.

type: string

First component of the block’s name. May be empty.

id: string

Second component of the block’s name. May be empty.