This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:refread [2013/01/14 18:46] – external edit 127.0.0.1 | crpl:docs:refread [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <- [[crpl: | ||
| ===== < | ===== < | ||
| - | ^Arguments^Result^Notation^ | + | ===== Syntax ===== |
| - | | |An item read from the variable named s1 |'' | + | |
| + | < | ||
| + | |||
| + | ===== Description ===== | ||
| + | |||
| + | Pops a value from the stack and treats it as a variable name, then pops another value from the stack and assigns it to that variable. | ||
| - | === Description === | ||
| - | Reads the contents of the local variable named s1 and pushes it to the stack. | ||
| - | Since s1's contents can vary, this allows dynamic reading of variables. | ||
| === Examples === | === Examples === | ||
| < | < | ||
| - | # Store a number in the variable named xyz 123 ->xyz | + | # Store a number in the variable named xyz |
| - | # Build a string by concatenating "12" and "3". | + | 123 ->xyz |
| - | # The results | + | # Build a string by concatenating "xy" and "z". |
| + | # The result | ||
| # The result of the read is pushed to the stack and traced. | # The result of the read is pushed to the stack and traced. | ||
| - | "12" "3" concat | + | "xy" "z" concat |
| <-! trace | <-! trace | ||
| </ | </ | ||