forked from Orchid/orchid
Most files suffered major changes
- Less ambiguous syntax - Better parser (Chumsky only does tokenization now) - Tidy(|ier) error handling - Facade for simplified embedding - External code grouped in (fairly) self-contained Systems - Dynamic action dispatch - Many STL additions
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use std::hash::Hash;
|
||||
|
||||
use crate::interner::{Interner, Tok};
|
||||
|
||||
/// A mutable representation of a namespaced identifier.
|
||||
@@ -16,7 +18,7 @@ pub type Sym = Tok<Vec<Tok<String>>>;
|
||||
|
||||
/// An abstraction over tokenized vs non-tokenized names so that they can be
|
||||
/// handled together in datastructures
|
||||
pub trait NameLike: 'static + Clone + Eq {
|
||||
pub trait NameLike: 'static + Clone + Eq + Hash {
|
||||
/// Fully resolve the name for printing
|
||||
fn to_strv(&self, i: &Interner) -> Vec<String>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user