mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +00:00
d01addc625
Co-authored-by: Rodactor <rodactor@roblox.com>
23 lines
588 B
C++
23 lines
588 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
namespace Luau
|
|
{
|
|
|
|
enum class Mode
|
|
{
|
|
NoCheck, // Do not perform any inference
|
|
Nonstrict, // Unannotated symbols are any
|
|
Strict, // Unannotated symbols are inferred
|
|
Definition, // Type definition module, has special parsing rules
|
|
};
|
|
|
|
struct ParseOptions
|
|
{
|
|
bool allowTypeAnnotations = true;
|
|
bool supportContinueStatement = true;
|
|
bool allowDeclarationSyntax = false;
|
|
bool captureComments = false;
|
|
};
|
|
|
|
} // namespace Luau
|