-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall.klon
More file actions
74 lines (59 loc) · 1.18 KB
/
Copy pathall.klon
File metadata and controls
74 lines (59 loc) · 1.18 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Line comment
/* Block comment */
/*
/* Nested block comment */
*/
// Top-level object
// This could be any type, but only 1 is allowed per file
key: string
'quotedKey': 1
0: true // Numeric key
object:
- a: 1
- b: 2
- c:
- - another: true
-- another2: false
object2.a: -1
object2.b: -2
object2.c.another: true
object2.c.another2: false
inlineObject: { a: 1, b: 2, c:
- another: true
- another2: false }
list:
- First item
- Second item
inlineList: [First item, "Second item"]
primitives:
- bool: true
- bool2: false
- int: 1
- int2: -1
- float: 1.0
- float2: -1.0
- string: "hello"
- string2: 'hello'
- string3: "Hello
World!"
- null:
// Variables
numbers: [1, 2, $myNumber, 4]
$myNumber: 123
$myNumbers: [3, 4, $myNumber]
$myNull:
$myObject:
- key1: value1
- key2: value2
somethingThatAcceptsAnObject: $myObject
// Object Spread
anotherThingAcceptingAnObject:
- key3: value3
- <- $myObject
- key4: value4
// List Spread
listSpread: [1, 2, <- $myNumbers, 5, 6]
// String Concatenation
messageToJane: My name is $name and "I am " ${age} " years old."
$name: "John"
$age: 32