parse_tree 0.0.7

A non-abstract syntax tree type
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ::{PtNodeId, ParseTree};

pub trait AsParseTree {
    fn as_parse_tree(&self) -> &ParseTree;
}

pub trait GetText {
    fn get_text(&self, id: PtNodeId) -> String;
}

pub trait GetSymbol {
    fn get_symbol(&self, id: PtNodeId) -> String;
}