From e54849cf1475bae36726f9860b88490da4388935 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 18 Nov 2014 07:51:56 +0100 Subject: arrays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/mds.texinfo | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index 177f26b..7441419 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -5175,6 +5175,7 @@ line feeds for new lines. * Layout Assumptions:: Making assumption about the keyboard layout. * Include Statement:: Including base files. * Layout Macros and Functions:: Reducing repetition. +* Builtin Functions:: Functions provided by the compiler. @end menu @@ -5717,9 +5718,7 @@ end function A final constract to make layout code less repetitive is let-statements. This can be used to assign values to variables, and -declar variables in undefined. Variable names -can only be numerical and most not start with -a zero. @code{\0} is not valid variable name. +declar variables in undefined. The code @@ -5750,6 +5749,49 @@ macro latter/1 end macro @end example +It is also possible to declare arrays: + +@example +let \1 : @{ "å" "ä" "ö" "à" "é" "ü" @} +@end example + +Arrays may however not have arrays for +values. + +Because arrays can be very large, they, but only +them, may span multiple lines. For example +you may write + +@example +let \1 : @{ + "å" "ä" "ö" "à" "é" "ü" + @} +@end example + +but not + +@example +let \1 : + @{ "å" "ä" "ö" "à" "é" "ü" @} +@end example + +See @ref{Builtin Functions} for how they are used. + +Variable names can only be numerical and most not +start with a zero. `0' is not valid variable name, +and thus @code{\0} does not address a variable. +Macro and function names, may only include +`0'--`9', `a'--`z', `A'--`Z' and `_', but must and +not start with `0'--`9'. Additionally, when declared +macro and function names must be suffixed with `/' +follwed by the exact number of arguments the macro +or function takes. + + + +@node Builtin Functions +@subsection Builtin Functions + @node Discussion -- cgit v1.2.3-70-g09d2