Add is_* methods to Tok (#39)

This commit is contained in:
Jeong, YunWon 2023-05-16 16:08:25 +09:00 committed by GitHub
parent 735c06d5f4
commit 0c7d16b61a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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 {