parser
luau
local parser = require("@std/syntax/parser")parser.parse
Parses source as a complete Luau file and returns the full ParseResult, including the root block and EOF token.
luau
(source: string) -> types.ParseResultparser.parseBlock
Parses Luau source code into an AstStatBlock
luau
(source: string) -> types.AstStatBlockparser.parseExpr
Parses source as a single Luau expression and returns the resulting AstExpr.
luau
(source: string) -> types.AstExpr