Crates.io | flp-tsl |
lib.rs | flp-tsl |
version | 0.1.4 |
source | src |
created_at | 2022-08-30 00:48:04.50653 |
updated_at | 2023-03-19 17:36:07.523231 |
description | Template Script Language |
homepage | https://flp-tsl.rs/ |
repository | https://github.com/Hakukano/FLP-TSL |
max_upload_size | |
id | 654859 |
size | 22,580 |
Template scripting language for rust game development
The first line of a tsl file should be a version notation. E.g. @ 0.1
Check src/parser.rs
for the supported range.
Just put ${variable}
in anywhere of the script content and it will be replace by actual value of variable
.
To escape the ${...}
, use \${...}
instead.
For each line:
Operator Space Content
/
-- Comments. Will be ignored during parsing.!
-- Initialization. Contains a full JSON object or a part of JSON object. Will be combined with all adjacent initialization opeartors.<
-- Modification. Modifies current stage. Should be a valid JS assignment. (Index style only). e.g. obj[0]["name"] = "abc"
.>
-- Output. The text to be output to the screen.*
-- Delay. Delay the script for n milliseconds.#
-- Eol. Indicates the end of line.See sample
folder.