1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use lexer::{Error, Source, Span};
use parser::ConfigString;
pub trait Visitor<'l>
{
fn start_element(&mut self, src: &Source<'l>, name: ConfigString<'l>) -> Result<(), Error>;
fn end_element(&mut self) -> Result<(), Error>;
fn set_table(&mut self, src: &Source<'l>, span: Span) -> Result<(), Error>;
fn set_tagged_array(
&mut self, src: &Source<'l>, span: Span, tag: ConfigString<'l>,
) -> Result<(), Error>;
fn set_tagged_table(
&mut self, src: &Source<'l>, span: Span, tag: ConfigString<'l>,
) -> Result<(), Error>;
fn set_array(&mut self, src: &Source<'l>, span: Span) -> Result<(), Error>;
fn append_string(&mut self, src: &Source<'l>, string: ConfigString<'l>) -> Result<(), Error>;
fn expand(&mut self, src: &Source<'l>, name: ConfigString<'l>) -> Result<(), Error>;
}