mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 11:05:45 +00:00
Fine-tune int types
This commit is contained in:
parent
455bcc01a0
commit
6fa3d0f90a
15 changed files with 27 additions and 42 deletions
|
@ -132,7 +132,7 @@ ExpressionStatement: ast::Stmt = {
|
|||
target: Box::new(set_context(target, ast::ExprContext::Store)),
|
||||
annotation: Box::new(annotation),
|
||||
value: rhs.map(Box::new),
|
||||
simple: ast::Int::new_bool(simple),
|
||||
simple,
|
||||
}.into(),
|
||||
)
|
||||
},
|
||||
|
@ -1707,7 +1707,7 @@ SingleForComprehension: ast::Comprehension = {
|
|||
target: set_context(target, ast::ExprContext::Store),
|
||||
iter,
|
||||
ifs,
|
||||
is_async: ast::Int::new_bool(is_async),
|
||||
is_async,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
6
parser/src/python.rs
generated
6
parser/src/python.rs
generated
|
@ -1,5 +1,5 @@
|
|||
// auto-generated: "lalrpop 0.20.0"
|
||||
// sha3: 92f216faaf9f12c4ae180e3d5821a88e6bfa435ffe36293d4485c669f055b18e
|
||||
// sha3: 7764ff3f82c4bfb364f8e2c55698c0cf314d591d7aeacd8abf4c9dfe354d25e2
|
||||
use crate::{
|
||||
ast,
|
||||
lexer::{LexicalError, LexicalErrorType},
|
||||
|
@ -36926,7 +36926,7 @@ fn __action24<
|
|||
target: Box::new(set_context(target, ast::ExprContext::Store)),
|
||||
annotation: Box::new(annotation),
|
||||
value: rhs.map(Box::new),
|
||||
simple: ast::Int::new_bool(simple),
|
||||
simple,
|
||||
}.into(),
|
||||
)
|
||||
}
|
||||
|
@ -39647,7 +39647,7 @@ fn __action206<
|
|||
target: set_context(target, ast::ExprContext::Store),
|
||||
iter,
|
||||
ifs,
|
||||
is_async: ast::Int::new_bool(is_async),
|
||||
is_async,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,9 +46,7 @@ expression: parse_ast
|
|||
),
|
||||
},
|
||||
),
|
||||
simple: Int(
|
||||
1,
|
||||
),
|
||||
simple: true,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -101,9 +101,7 @@ expression: parse_ast
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -101,9 +101,7 @@ expression: parse_ast
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -201,9 +201,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -58,9 +58,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -69,9 +69,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
Comprehension {
|
||||
target: Attributed {
|
||||
|
@ -174,9 +172,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -46,9 +46,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -78,9 +78,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -46,9 +46,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -87,9 +87,7 @@ Attributed {
|
|||
),
|
||||
},
|
||||
ifs: [],
|
||||
is_async: Int(
|
||||
0,
|
||||
),
|
||||
is_async: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue