dict: add type_from_str
This commit is contained in:
parent
da899192f5
commit
601327f602
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ impl std::str::FromStr for TypeTerm {
|
|||
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||
|
||||
impl TypeDict {
|
||||
pub fn type_from_str(&mut self, s: &str) -> Result<TypeTerm, ParseError> {
|
||||
self.parse(&mut LadderTypeLexer::from(s.chars()).peekable())
|
||||
}
|
||||
|
||||
fn parse_app<It>( &mut self, tokens: &mut Peekable<LadderTypeLexer<It>> ) -> Result<TypeTerm, ParseError>
|
||||
where It: Iterator<Item = char>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue