Improved documentation of functions and default arguments a bit

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@985 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-06-18 18:56:29 +00:00
parent 9fd097beb7
commit 1d4a3c700b
7 changed files with 96 additions and 57 deletions
+7 -5
View File
@@ -5,7 +5,9 @@ MSE uses a custom scripting language to add complicated behaviour to [[type:fiel
--Topics--
* [[script:introduction|Introduction to scripting]]
* [[script:Operators]]
* [[script:variables|Variables and functions]]
* [[script:variables|Variables]]
* [[script:functions|Functions]]
* [[script:default_arguments|Default arguments]]
* [[script:Control structures]]
* [[script:Predefined variables]]
* [[script:Best practices]]
@@ -18,10 +20,10 @@ See also:
| @"stuff"@ [[type:string|A literal string]]
| @[a,b,c]@ [[type:list|A literal list]]
| @[a:b, c:d]@ [[type:map|A literal map]]
| @{ expr }@ [[script:variables#Functions|Function definition]]
| @fun(a:b, c:d)@ [[script:variables#Functions|Function call]]
| @fun(value)@ [[script:variables#Functions|Function call with '@input@' argument]]
| @fun@@(a:b)@ [[script:variables#Default arguments|Default arguments]]
| @{ expr }@ [[script:functions|Function definition]]
| @fun(a:b, c:d)@ [[script:functions|Function call]]
| @fun(value)@ [[script:functions|Function call with '@input@' argument]]
| @fun@@(a:b)@ [[script:default_arguments|Default arguments]]
| @a.b@ [[script:operators|Property 'b' of 'a']]
| @a[b]@ [[script:operators|Property 'value of b' of 'a']]
| @-a@ [[script:operators|Negation]]