luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[allow(non_snake_case)]
pub(crate) fn unescape(ch: char) -> char {
    match ch {
        'a' => '\x07', // \a
        'b' => '\x08', // \b
        'f' => '\x0c', // \f
        'n' => '\n',
        'r' => '\r',
        't' => '\t',
        'v' => '\x0b', // \v
        _ => ch,
    }
}