From d272efa49173c3708ddde54a96486261b73d7908 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sat, 15 Jan 2022 00:13:48 +0100 Subject: ... --- content/wyrd_v1/instruction/_index.md | 291 ++++++++++++++++++++++++++++++++++ 1 file changed, 291 insertions(+) create mode 100644 content/wyrd_v1/instruction/_index.md (limited to 'content/wyrd_v1/instruction') diff --git a/content/wyrd_v1/instruction/_index.md b/content/wyrd_v1/instruction/_index.md new file mode 100644 index 0000000..d441ee1 --- /dev/null +++ b/content/wyrd_v1/instruction/_index.md @@ -0,0 +1,291 @@ +--- +menuTitle: +title: Instruction +weight: 2 +--- +This page presents all the ``s that can be performed in Wyrd. +``s do not return values. + +Unless otherwise specified, all ``s: +* Increment the ``'s `program_counter` by 1. +* Set the ``'s `last_instruction_result` to `(MUST_CONTINUE)`. + +Implementing `execute()` to recurse/loop as long as the newly updated +``'s `last_instruction_result` is `(MUST_CONTINUE)` is acceptable. + +**Shortcut to each ``:** +* [`(add_event_option! {name: String} {parameters: List})`](#add_event_option) +* [`(add_text_option! )`](#add_text_option) +* [`(assert! )`](#assert) +* [`(display! )`](#display) +* [`(end!)`](#end) +* [`(initialize! {type: String} )`](#initialize) +* [`(prompt_command! )`](#prompt_command) +* [`(prompt_float! )`](#prompt_float) +* [`(prompt_integer! )`](#prompt_integer) +* [`(prompt_string! )`](#prompt_string) +* [`(remove! )`](#remove) +* [`(resolve_choice!)`](#resolve_choice) +* [`(set_pc! )`](#set_pc) +* [`(set_random! )`](#set_random) +* [`(set_value! )`](#set_value) +* [`({extra_instruction: String}! {parameters: List})`](#extra_instruction) + +### add_event_option +`(add_event_option! {name: String} {parameters: List})` + +Adds an `