-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.core-rc
52 lines (38 loc) · 1.31 KB
/
example.core-rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;{
@file example.core-rc @brief core runtime configuration example
Copyright (c) 2009, 2010, 2021 by Lutz Sammer. All Rights Reserved.
Contributor(s):
License: AGPLv3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
$Id$
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}
; this is an end-to-line comment
;{ this a a block comment ;}
; include some other config files
include "included.core-rc"
; a simple variable(s)
ai = 1 ; integer
ad = 1.5e10 ; float
as = "one" ; string
aw = `word ; string too
at = true ; number
af = false ; number
ab = nil ; nil
aa = [] ; array
ai2 = ai ; 1 (value of ai)
ai = 1 ; same value overwritten, no warning
ai = 2 ; old value overwritten, warning and memory loose
; variables with tables, lists, ...
t1 = [ 1 2 3 4 ] ; list
t2 = [ [0] = 1
[1] = 2
[2] = 3
[3] = 4 ] ; same list with indices
t3 = [ a = 1 b = 2 c = 3] ; structured