-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlexer.js
40 lines (31 loc) · 889 Bytes
/
lexer.js
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
var lx=require("no/gg").lx
var js_lx=new lx()
js_lx.add([
"break","case","catch","continue","default","delete","do",
"else","finally","for","function","if","in","instanceof",
"new","return","switch",
//"this",
"throw","try","typeof",
"var","void","while","with"])
js_lx.add([
"abstract","boolean","byte","char","class","const","debugger","double",
"enum","export","extends","final","float","goto","implements","import",
"int","interface","long","native","package","private","protected","public",
"short","static","super","synchronized","throws","transient","volatile"])
js_lx.add([
"++","--",
//"!","~","+","-",
//"*","/","%",
">>","<<",">>>",
//"<",">",
"<=",">=",
"==","!=","===","!==",
//"&","^","|",
"&&","||",
"=","+=","-=","*=","/=","%=","<<=",">>=",">>>=",
"&=","^=","|="
])
js_lx.add([
"`{",",{","match"
])
module.exports=js_lx