Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
60146462
Commit
60146462
authored
Dec 09, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename expr->body
parent
f1817d4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
13 deletions
+5
-13
src/codegen/parser.cpp
src/codegen/parser.cpp
+1
-1
src/codegen/pypa-parser.cpp
src/codegen/pypa-parser.cpp
+0
-8
src/core/ast.cpp
src/core/ast.cpp
+3
-3
src/core/ast.h
src/core/ast.h
+1
-1
No files found.
src/codegen/parser.cpp
View file @
60146462
...
...
@@ -355,7 +355,7 @@ AST_ExceptHandler* read_excepthandler(BufferedReader* reader) {
AST_Exec
*
read_exec
(
BufferedReader
*
reader
)
{
AST_Exec
*
rtn
=
new
AST_Exec
();
rtn
->
expr
=
readASTExpr
(
reader
);
rtn
->
body
=
readASTExpr
(
reader
);
rtn
->
col_offset
=
readColOffset
(
reader
);
rtn
->
globals
=
readASTExpr
(
reader
);
rtn
->
lineno
=
reader
->
readULL
();
...
...
src/codegen/pypa-parser.cpp
View file @
60146462
...
...
@@ -440,14 +440,6 @@ struct expr_dispatcher {
return
ptr
;
}
ResultPtr
read
(
pypa
::
AstSetComp
&
l
)
{
AST_SetComp
*
ptr
=
new
AST_SetComp
();
location
(
ptr
,
l
);
readVector
(
ptr
->
generators
,
l
.
generators
);
ptr
->
elt
=
readItem
(
l
.
element
);
return
ptr
;
}
ResultPtr
read
(
pypa
::
AstName
&
a
)
{
AST_Name
*
ptr
=
new
AST_Name
();
location
(
ptr
,
a
);
...
...
src/core/ast.cpp
View file @
60146462
...
...
@@ -450,8 +450,8 @@ void AST_Exec::accept(ASTVisitor* v) {
if
(
skip
)
return
;
if
(
expr
)
expr
->
accept
(
v
);
if
(
body
)
body
->
accept
(
v
);
}
void
AST_Exec
::
accept_stmt
(
StmtVisitor
*
v
)
{
...
...
@@ -1261,7 +1261,7 @@ bool PrintVisitor::visit_excepthandler(AST_ExceptHandler* node) {
bool
PrintVisitor
::
visit_exec
(
AST_Exec
*
node
)
{
printf
(
"exec "
);
node
->
expr
->
accept
(
this
);
node
->
body
->
accept
(
this
);
if
(
node
->
globals
)
{
printf
(
" in "
);
node
->
globals
->
accept
(
this
);
...
...
src/core/ast.h
View file @
60146462
...
...
@@ -437,7 +437,7 @@ public:
class
AST_Exec
:
public
AST_stmt
{
public:
AST_expr
*
expr
;
AST_expr
*
body
;
AST_expr
*
globals
;
AST_expr
*
locals
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment