luaur-ast 0.1.0

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

impl AstName {
    pub fn operator_eq_c_char(&self, rhs: *const core::ffi::c_char) -> bool {
        if self.value.is_null() {
            return false;
        }
        unsafe { core::ffi::CStr::from_ptr(self.value) == core::ffi::CStr::from_ptr(rhs) }
    }
}