-
Notifications
You must be signed in to change notification settings - Fork 0
/
ast_analysis_notes.txt
47 lines (22 loc) · 1.78 KB
/
ast_analysis_notes.txt
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
Program ExpressionStatement CallExpression MemberExpression Identifier Math Identifier sum Identifier a Identifier b
Math.sum(a, b)
Program ExpressionStatement CallExpression MemberExpression Identifier Math Identifier sum Identifier aa Identifier bb
Math.sum(a, 10)
Program ExpressionStatement CallExpression MemberExpression Identifier Math Identifier sum Identifier aa Literal 10
sum(a, b)
Program ExpressionStatement CallExpression Identifier sum Identifier aa Identifier bb
replace.replace(/-Regular/, '')
Program ExpressionStatement CallExpression MemberExpression Literal /-Regular/ Literal /-Regular/ Literal
Program ExpressionStatement CallExpression MemberExpression Identifier replace Identifier replace Literal /-Regular/ Literal
Math.sum(a, b)
Program ExpressionStatement CallExpression MemberExpression Identifier Math Identifier sum Identifier aa Identifier bb
Program ExpressionStatement CallExpression MemberExpression Identifier Math Identifier sum Identifier string aa Identifier number bb
Program ExpressionStatement CallExpression MemberExpression Identifier Math Identifier sum Identifier string Identifier number
still does not work:
====================
https://github.com/zohooo/jaxedit/blob/master/library/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata-1.0.js
"buggy_call": "file.replace(/\\/[^\\/]*$/, '').replace(/\\//, '-').replace('', /-Regular/)",
"correct_call": "file.replace(/\\/[^\\/]*$/, '').replace(/\\//, '-').replace(/-Regular/, '')",
var name = "STIX"+file.replace(/\/[^\/]*$/,'').replace(/\//,'-').replace(/-Regular/,'');
=> file.replace(/\/[^\/]*$/,'').replace(/\//,'-').replace(/-Regular/,'')
* Why we are adding extra '\'?