ellie_parser 0.8.3

Parser for ellie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ellie_tokenizer::syntax::items::go::Go;

impl super::ItemParserProcessor for Go {
    fn process(&self, options: &mut super::ItemParserProcessorOptions) -> bool {
        let page = options
            .parser
            .processed_pages
            .nth_mut(options.processed_page_idx)
            .unwrap();
        page.items.push(ellie_core::definite::items::Collecting::Go(
            ellie_core::definite::items::go::Go { pos: self.pos },
        ));
        true
    }
}