-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTokens.json
executable file
·42 lines (42 loc) · 1.74 KB
/
Tokens.json
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
[
{"type":"Unknown", "rule":"#(.)*"},
{"type":"Keyword", "rule":"my"},
{"type":"Keyword", "rule":"foreach"},
{"type":"Keyword", "rule":"for"},
{"type":"Keyword", "rule":"while"},
{"type":"Keyword", "rule":"until"},
{"type":"Keyword", "rule":"if"},
{"type":"Keyword", "rule":"else"},
{"type":"Keyword", "rule":"elsif"},
{"type":"Keyword", "rule":"sub"},
{"type":"Keyword", "rule":"use"},
{"type":"Keyword", "rule":"our"},
{"type":"Keyword", "rule":"state"},
{"type":"FlowKeyword", "rule":"last"},
{"type":"FlowKeyword", "rule":"redo"},
{"type":"FlowKeyword", "rule":"next"},
{"type":"FlowKeyword", "rule":"return"},
{"type":"StringInner", "rule":"\"[^\"]*\""},
{"type":"StringPlain", "rule":"'[^']*'"},
{"type":"BracketCircle", "rule":"\\(|\\)"},
{"type":"BracketCurly", "rule":"\\{|\\}"},
{"type":"BracketSquare", "rule":"\\[|\\]"},
{"type":"Coma", "rule":"\\,"},
{"type":"Separator", "rule":";"},
{"type":"ComplexAssignment", "rule":"(\\+=|\\*=|-=|\\*\\*=|\\\\=|%=|<<=|>>=|&&=|\\|=|\\.=|x=)"},
{"type":"ArrowLambda", "rule":"=>"},
{"type":"ArrowLink", "rule":"->"},
{"type":"Comparing", "rule":"(==|!=|<=>|>=|<=|<|>)"},
{"type":"Assignment", "rule":"="},
{"type":"Variable", "rule":"(\\$|%|@)#?[a-zA-Z_][0-9a-zA-Z_]*"},
{"type":"Arithmetic", "rule":"(\\*\\*|\\+|\\-|\\*|/|%)"},
{"type":"Logical", "rule":"(xor|and|not|&&|or|\\|\\||!|>>|<<|&|\\|\\^|\\~)"},
{"type":"StringCmp", "rule":"(lt|gt|le|ge|eq|ne|cmp) "},
{"type":"StringRep", "rule":"x"},
{"type":"ArrayRange", "rule":"\\.\\."},
{"type":"StringCat", "rule":"\\."},
{"type":"Digits", "rule":"[0-9]+"},
{"type":"FloatWord", "rule":"[a-zA-Z_][a-zA-Z_0-9]+"},
{"type": "Unknown", "rule": "@@+[a-z]*"},
{"type": "Unknown", "rule": "( |\\n)+"}
]