-
Notifications
You must be signed in to change notification settings - Fork 0
DESC
The DESC command stands for Describe, and defines a block of YeetWords code. This is very helpful for saving time typing or copying and pasting when desiring to repeat the same chunks of things.
DESC is a command that takes up multiple lines, ending with DESCEND (= DESC + END), or any of the END-style commands GENEND, LOOPEND, END.
Any valid YeetWords code may be place inside a DESC, and that block of code is not executed until it is called via the CALL command.
A desc is not a function, as descs cannot take parameters.
DESC descname
yeetwordscodeline1
....
yeetwordscodelineN
DESCEND
where descname is the name of this desc.
yeetwordscodeline is any valid YeetWords code. You may call another desc within a desc, nesting is allowed.
If you have a desc that calls another desc, as in the examples below, the order they are defined does not matter so long as both are defined before the CALL command occurs.
DESC para
FORMAT ACPS
NEWPARA
WRITE normalsentences allwords 2--8
SHIFT person
DESCEND
DESC chapter
NEWCHAPTER
LOOP 1000W--2000W
CALL para
LOOPEND
DESCEND
CALL
For a hierarchical directory, see the homepage for this Wiki