lexariel 0.1.0

Lexical analyzer for Asmodeus language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::position::InputReader;

/// skip all whitespace characters
pub(crate) fn skip_whitespace(reader: &mut InputReader) {
    while let Some(ch) = reader.peek() {
        if ch.is_whitespace() {
            reader.advance();
        } else {
            break;
        }
    }
}