mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add: parse set literal
This commit is contained in:
parent
9d4949c70f
commit
bc63e9c9cb
2 changed files with 54 additions and 4 deletions
|
@ -194,6 +194,10 @@ impl Args {
|
|||
&self.kw_args[..]
|
||||
}
|
||||
|
||||
pub fn has_pos_arg(&self, pa: &PosArg) -> bool {
|
||||
self.pos_args.contains(pa)
|
||||
}
|
||||
|
||||
pub fn into_iters(
|
||||
self,
|
||||
) -> (
|
||||
|
@ -765,8 +769,8 @@ impl_locational_for_enum!(Record; Normal, Shortened);
|
|||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct NormalSet {
|
||||
l_brace: Token,
|
||||
r_brace: Token,
|
||||
pub l_brace: Token,
|
||||
pub r_brace: Token,
|
||||
pub elems: Args,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue