mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
Add is_* methods to Tok (#39)
This commit is contained in:
parent
735c06d5f4
commit
0c7d16b61a
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ rustpython-ast = { workspace = true }
|
|||
rustpython-parser-core = { workspace = true }
|
||||
|
||||
itertools = { workspace = true }
|
||||
is-macro = { workspace = true }
|
||||
log = { workspace = true }
|
||||
num-bigint = { workspace = true }
|
||||
num-traits = { workspace = true }
|
||||
|
|
|
@ -9,7 +9,7 @@ use num_bigint::BigInt;
|
|||
use std::fmt;
|
||||
|
||||
/// The set of tokens the Python source code can be tokenized in.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq, is_macro::Is)]
|
||||
pub enum Tok {
|
||||
/// Token value for a name, commonly known as an identifier.
|
||||
Name {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue