luaur-ast 0.1.2

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::records::allocator::Allocator;
use crate::records::ast_name_table::AstNameTable;

impl AstNameTable {
    /// Re-point the interning allocator to `allocator`. The fixture calls this
    /// before each parse so the name table uses the allocator at its *current*
    /// address after the owning struct has been moved.
    pub fn rebind_allocator(&mut self, allocator: *mut Allocator) {
        self.allocator = allocator;
    }
}