1
// TODO: Expand the whole text, including inner includes, and construct a
2
// Lisp-like list of chunks so that we can correctly compute the byte-pos of
3
// tokens when reporting diagnostics. Also, keep both touched and untouched
4
// versions of the source text, so that we can report the original code lines.
5
//
6
// CharStream should take care of eating the preprocessor's output so that the
7
// scanner doesn't have to care about it.
8

            
9
pub struct Preprocessor {
10
    text: String,
11
}
12

            
13
impl Preprocessor {
14
1
    pub fn with_text(text: String) -> Preprocessor {
15
1
        Preprocessor { text }
16
1
    }
17

            
18
1
    pub fn parse(&self) -> String {
19
1
        self.text.clone()
20
1
    }
21
}