Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit f1203be

Browse files
authored
Merge pull request #85 from juanjux/feature/ast_split
Feature/ast split
2 parents 5f13ca3 + cc75d55 commit f1203be

38 files changed

+4438
-192
lines changed

Dockerfile.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAINTAINER source{d}
33

44
ARG DEVDEPS=native/dev_deps
55
ARG CONTAINER_DEVDEPS=/tmp/dev_deps
6-
ARG PYDETECTOR_VER=0.13.0
6+
ARG PYDETECTOR_VER=0.14.0
77

88
RUN apk add --no-cache --update python python3 py-pip py2-pip git
99

driver/normalizer/parser.go

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,52 @@ var ToNoder = &native.ObjectToNoder{
2323
"noop_line": true, // Comment/Noop (non significative whitespace)
2424
},
2525
SyntheticTokens: map[string]string{
26-
"Print": "print",
27-
"Ellipsis": "PythonEllipsisOperator",
2826
"Add": "+",
29-
"Sub": "-",
30-
"Mult": "*",
31-
"Div": "/",
32-
"FloorDiv": "//",
33-
"Mod": "%%",
34-
"Pow": "**",
27+
"Assert": "assert",
3528
"AugAssign": "?=",
3629
"BitAnd": "&",
3730
"BitOr": "|",
3831
"BitXor": "^",
39-
"LShift": "<<",
40-
"RShift": ">>",
41-
"Eq": "==",
42-
"NotEq": "!=",
43-
"Not": "!",
44-
"Lt": "<",
45-
"LtE": "<=",
46-
"Gt": ">",
47-
"GtE": ">=",
48-
"Is": "is",
49-
"IsNot": "not is",
50-
"In": "in",
51-
"NotIn": "not in",
52-
"UAdd": "+",
53-
"USub": "-",
54-
"Invert": "~",
55-
"Pass": "pass",
32+
"Break": "break",
33+
"Continue": "continue",
34+
"Delete": "delete",
35+
"Div": "/",
36+
"Ellipsis": "...",
37+
"Eq": "==",
38+
"False": "false",
39+
"For": "for",
40+
"FloorDiv": "//",
41+
"Global": "global",
42+
"Gt": ">",
43+
"GtE": ">=",
44+
"If": "if",
45+
"In": "in",
46+
"Invert": "~",
47+
"Is": "is",
48+
"IsNot": "not is",
49+
"LShift": "<<",
50+
"Lt": "<",
51+
"LtE": "<=",
52+
"Mod": "%%",
53+
"Mult": "*",
54+
"None": "None",
55+
"Nonlocal": "nonlocal",
56+
"Not": "!",
57+
"NotEq": "!=",
58+
"NotIn": "not in",
59+
"Pass": "pass",
60+
"Pow": "**",
61+
"Print": "print",
62+
"Raise": "raise",
63+
"Return": "return",
64+
"RShift": ">>",
65+
"Sub": "-",
66+
"True": "true",
67+
"UAdd": "+",
68+
"USub": "-",
69+
"While": "while",
70+
"With": "with",
71+
"Yield": "yield",
5672
},
5773
PromoteAllPropertyLists: false,
5874
PromotedPropertyLists: map[string]map[string]bool{

0 commit comments

Comments
 (0)