Add dylib loading code

This commit is contained in:
Edwin Cheng 2020-04-04 16:09:36 +08:00
parent dde9488559
commit f7f121d60d
5 changed files with 277 additions and 1 deletions

View file

@ -34,6 +34,10 @@ impl TokenStream {
TokenStream { subtree: Default::default() }
}
pub fn with_subtree(subtree: tt::Subtree) -> Self {
TokenStream { subtree }
}
pub fn is_empty(&self) -> bool {
self.subtree.token_trees.is_empty()
}