Trait fluent_syntax::parser::ftlstream::FTLParserStream [−][src]
pub trait FTLParserStream<I> { fn skip_inline_ws(&mut self); fn peek_inline_ws(&mut self); fn skip_blank_lines(&mut self); fn peek_blank_lines(&mut self); fn skip_indent(&mut self); fn expect_char(&mut self, ch: char) -> Result<()>; fn expect_indent(&mut self) -> Result<()>; fn take_char_if(&mut self, ch: char) -> bool; fn take_char<F>(&mut self, f: F) -> Option<char>
where
F: Fn(char) -> bool; fn is_char_id_start(&mut self, ch: Option<char>) -> bool; fn is_entry_id_start(&mut self) -> bool; fn is_number_start(&mut self) -> bool; fn is_char_pattern_continuation(&self, ch: Option<char>) -> bool; fn is_peek_pattern_start(&mut self) -> bool; fn is_peek_next_line_zero_four_style_comment(&mut self) -> bool; fn is_peek_next_line_comment(&mut self, level: i8) -> bool; fn is_peek_next_line_variant_start(&mut self) -> bool; fn is_peek_next_line_attribute_start(&mut self) -> bool; fn is_peek_next_line_pattern_start(&mut self) -> bool; fn skip_to_next_entry_start(&mut self); fn take_id_start(&mut self, allow_private: bool) -> Result<char>; fn take_id_char(&mut self) -> Option<char>; fn take_variant_name_char(&mut self) -> Option<char>; fn take_digit(&mut self) -> Option<char>; }
Required Methods
fn skip_inline_ws(&mut self)
fn peek_inline_ws(&mut self)
fn skip_blank_lines(&mut self)
fn peek_blank_lines(&mut self)
fn skip_indent(&mut self)
fn expect_char(&mut self, ch: char) -> Result<()>
fn expect_indent(&mut self) -> Result<()>
fn take_char_if(&mut self, ch: char) -> bool
fn take_char<F>(&mut self, f: F) -> Option<char> where
F: Fn(char) -> bool,
F: Fn(char) -> bool,
fn is_char_id_start(&mut self, ch: Option<char>) -> bool
fn is_entry_id_start(&mut self) -> bool
fn is_number_start(&mut self) -> bool
fn is_char_pattern_continuation(&self, ch: Option<char>) -> bool
fn is_peek_pattern_start(&mut self) -> bool
fn is_peek_next_line_zero_four_style_comment(&mut self) -> bool
fn is_peek_next_line_comment(&mut self, level: i8) -> bool
fn is_peek_next_line_variant_start(&mut self) -> bool
fn is_peek_next_line_attribute_start(&mut self) -> bool
fn is_peek_next_line_pattern_start(&mut self) -> bool
fn skip_to_next_entry_start(&mut self)
fn take_id_start(&mut self, allow_private: bool) -> Result<char>
fn take_id_char(&mut self) -> Option<char>
fn take_variant_name_char(&mut self) -> Option<char>
fn take_digit(&mut self) -> Option<char>
Implementors
impl<I> FTLParserStream<I> for ParserStream<I> where
I: Iterator<Item = char>,