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
//! `const Lexeme& Lexer::next()` — Ast/src/Lexer.cpp:369.

use crate::records::lexeme::Lexeme;
use crate::records::lexer::Lexer;

impl Lexer {
    pub fn next(&mut self) -> &Lexeme {
        let skip_comments = self.skip_comments;
        self.next_with(skip_comments, true)
    }
}