From 8db100cd523805f6bd399a37f176869b25a381e1 Mon Sep 17 00:00:00 2001 From: crc Date: Mon, 5 Feb 2018 20:59:36 +0000 Subject: [PATCH] glossary: add iOS clock: namespace words FossilOrigin-Name: 4cb25bcb6f71e46171868c7dd0b79d996305124ee4f39ee3b267850fa0c8f3f4 --- doc/Glossary.txt | 74 +++++++++++++++++++++++++++++++++++++++++++++++- words.tsv | 8 +++++- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/doc/Glossary.txt b/doc/Glossary.txt index 6159342..8ed0fcf 100644 --- a/doc/Glossary.txt +++ b/doc/Glossary.txt @@ -1302,6 +1302,78 @@ Class Handler: class:word | Namespace: class | Interface Layer: all ---------------------------------------------------------------- +clock:day + + Data: -n + Addr: - + Float: - + +Return the current day. + +Class Handler: class:word | Namespace: clock | Interface Layer: iOS + +---------------------------------------------------------------- + +clock:hour + + Data: -n + Addr: - + Float: - + +Return the current hour. + +Class Handler: class:word | Namespace: clock | Interface Layer: iOS + +---------------------------------------------------------------- + +clock:minute + + Data: -n + Addr: - + Float: - + +Return the current minute. + +Class Handler: class:word | Namespace: clock | Interface Layer: iOS + +---------------------------------------------------------------- + +clock:month + + Data: -n + Addr: - + Float: - + +Return the current month. + +Class Handler: class:word | Namespace: clock | Interface Layer: iOS + +---------------------------------------------------------------- + +clock:second + + Data: -n + Addr: - + Float: - + +Return the current second. + +Class Handler: class:word | Namespace: clock | Interface Layer: iOS + +---------------------------------------------------------------- + +clock:year + + Data: -n + Addr: - + Float: - + +Return the current year. + +Class Handler: class:word | Namespace: clock | Interface Layer: iOS + +---------------------------------------------------------------- + compile:call Data: a- @@ -4599,7 +4671,7 @@ Class Handler: class:word | Namespace: global | Interface Layer: all Addr: - Float: - -End an assembly section +End an assembly section. Class Handler: class:macro | Namespace: global | Interface Layer: all diff --git a/words.tsv b/words.tsv index 9d2f22d..ec95559 100644 --- a/words.tsv +++ b/words.tsv @@ -101,6 +101,12 @@ class:data n- || n-n - - Class handler for data structures. Keep the address or class:macro a- - - Class handler for compiler macros (immediate words) Execute the function at the provided address. Execute the function at the provided address. class:word {n/a} {n/a} class all class:primitive a- - - Class handler for primitive words (words which map to Nga instructions) Execute the function. Compile the machine code in the definiton into the current definition. class:word {n/a} {n/a} class all class:word a- - - Class handler for normal words. Execute the function at the provided address. Compile a call to the specified address into the current definition. class:word {n/a} {n/a} class all +clock:day -n - - Return the current day. class:word {n/a} {n/a} clock iOS +clock:hour -n - - Return the current hour. class:word {n/a} {n/a} clock iOS +clock:minute -n - - Return the current minute. class:word {n/a} {n/a} clock iOS +clock:month -n - - Return the current month. class:word {n/a} {n/a} clock iOS +clock:second -n - - Return the current second. class:word {n/a} {n/a} clock iOS +clock:year -n - - Return the current year. class:word {n/a} {n/a} clock iOS compile:call a- - - Compile a call to the specified address into the current definition. class:word {n/a} {n/a} compile all compile:jump a- - - Compile a jump to the specified address into the current definition. class:word {n/a} {n/a} compile all compile:lit n- - - Compile the code to push a number to the stack into the current definition. class:word {n/a} {n/a} compile all @@ -358,5 +364,5 @@ while q- - - Execute quote repeatedly while the quote returns a value of `TRUE`. words - - - Display a list of all named items in the `Dictionary`. class:word {n/a} {n/a} global all xor mn-o - - Perform a bitwise XOR operation. class:primitive {n/a} {n/a} global all {{ - - - Begin a lexically scoped area. class:word {n/a} {n/a} global all -}as f- - - End an assembly section class:macro {n/a} {n/a} global all +}as f- - - End an assembly section. class:macro {n/a} {n/a} global all }} - - - End a lexically scoped area. class:word {n/a} {n/a} global all