Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/fstack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ impl Node {
pub fn is_quiet(&self) -> &bool {
&self.quiet
}

/// Whether the node is a `REPT`.
pub fn is_rept(&self) -> bool {
matches!(self.type_data(), NodeType::Rept(..))
}
}

/// A file stack node's type, and associated type-dependent data.
Expand Down