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
14
15
16
17
use crate::enums::quote_style_cst::QuoteStyle;
use crate::records::position::Position;

pub trait Writer {
    fn advance(&mut self, pos: &Position);
    fn newline(&mut self);
    fn space(&mut self);
    fn maybe_space(&mut self, new_pos: &Position, reserve: i32);
    fn write(&mut self, s: &str);
    fn write_multiline(&mut self, s: &str);
    fn identifier(&mut self, name: &str);
    fn keyword(&mut self, s: &str);
    fn symbol(&mut self, s: &str);
    fn literal(&mut self, s: &str);
    fn string(&mut self, s: &str);
    fn source_string(&mut self, s: &str, quote_style: QuoteStyle, block_depth: u32);
}