forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeywords-id.lark
54 lines (54 loc) · 1.86 KB
/
keywords-id.lark
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
_DEFINE: ("define" | "define") _SPACE?
_CALL: ("call" | "call") _SPACE?
_WITH: ("with" | "with") _SPACE?
_DEF: ("def" | "def") _SPACE?
_RETURN: ("return" | "return") _SPACE?
_PRINT: ("cetak" | "print") _SPACE?
_PLAY: ("play" | "play") _SPACE
_ASK: ("tanya" | "ask")
_ECHO: ("gaungkan" | "echo") _SPACE?
_FORWARD: ("maju" | "forward") _SPACE?
_TURN: ("belok" | "turn") _SPACE?
left: ("kiri" | "left") _SPACE?
right: ("kanan" | "right") _SPACE?
black: ("black" | "black") _SPACE?
blue: ("blue" | "blue") _SPACE?
brown: ("brown" | "brown") _SPACE?
gray: ("gray" | "gray") _SPACE?
green: ("green" | "green") _SPACE?
orange: ("orange" | "orange") _SPACE?
pink: ("pink" | "pink") _SPACE?
purple: ("purple" | "purple") _SPACE?
red: ("red" | "red") _SPACE?
white: ("white" | "white") _SPACE?
yellow: ("yellow" | "yellow") _SPACE?
_IS: _SPACE ("adalah" | "is") _SPACE
_STANDALONE_IS: ("adalah" | "is")
_SLEEP: ("tidur" | "sleep") _SPACE?
_ADD_LIST: ("tambah" | "add") _SPACE
_TO_LIST: _SPACE? ("ke" | "to")
_REMOVE: ("hapus" | "remove") _SPACE
_FROM: _SPACE? ("dari" | "from")
_AT: _SPACE ("secara" | "at") _SPACE
random: ("acak" | "random") _SPACE?
_IN: _SPACE ("dalam" | "in") _SPACE
_NOT_IN: _SPACE ("not in" | "not in") _SPACE
_IF: ("jika" | "if") _SPACE
_ELSE: "lainnya" | "else"
_AND: _SPACE? ("dan" | "and") _SPACE
_REPEAT: ("ulangi" | "repeat") _SPACE
_TIMES: _SPACE ("kali" | "times")
_FOR: ("untuk" | "for") _SPACE
_RANGE: ("batasan" | "range") _SPACE?
_TO: _SPACE ("ke" | "to") _SPACE
_STEP: "langkah" | "step"
_ELIF: _SPACE? ("lain_jika" | "elif") _SPACE
_INPUT: ("masukan" | "input")
_OR: _SPACE? ("atau" | "or") _SPACE
_WHILE: ("selama" | "while") _SPACE
_LENGTH: "panjang" | "length"
_COLOR : ("warna" | "color") _SPACE?
_PRESSED: ("pressed" | "pressed") _SPACE?
clear: ("clear" | "clear") _SPACE?
TRUE: ("true" | "True" | "true" | "True") _SPACE?
FALSE: ("false" | "False" | "false" | "False") _SPACE?