md-command
[module] md-command
MDAL Command Configuration
[record] command
[constructor] (make-command #!key TYPE (BITS 0) (DEFAULT 0) REFERENCE-TO KEYS (FLAGS '()) RANGE DESCRIPTION)
[predicate] command?
implementation: defstruct
field | getter | setter | default | comment |
---|---|---|---|---|
type |
command-type |
command-type-set! |
one of int uint key ukey reference string trigger labelor a user-defined type |
|
bits |
command-bits |
command-bits-set! |
0 |
number of bits in command |
default |
command-default |
command-default-set! |
0 |
default value |
reference-to |
command-reference-to |
command-reference-to-set! |
`#f or an identifier` |
|
keys |
command-keys |
command-keys-set! |
`#f or a hash-map` |
|
flags |
command-flags |
command-flags-set! |
'() |
list of command flags |
range |
command-range |
command-range-set! |
`#f or a range object` |
|
description |
command-description |
command-description-set! |
`#f or a string` |
command config record type
[procedure] (command-has-flag? CMD FLAG)
check if the given command CMD has the given FLAG
[procedure] (command-has-flags? CMD)
check if the given command CMD has any flags
[procedure] (display-command CMD)
construct a hash table from a file containing key/value definitions
[procedure] (make-default-commands)
Construct an alist containing the default commands AUTHOR, TITLE, and LICENSE
[procedure] (make-modifier-commands BASE-COMMANDS)
Construct modifier commands for the alist of id, command pairs, as
required by the 'enable-modifiers
flag.
[procedure] (eval-command PATH-PREFIX CPU-SPEED #!key ID TYPE BITS DEFAULT REFERENCE-TO KEYS (FLAGS '()) RANGE (DESCRIPTION ""))
Evaluate a MDCONF command definition expression. Returns a command
object.