27#include <angelscript.h>
30using namespace AngelScript;
35 engine->RegisterEnum(
"TokenType");
36 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_NONE", (
int)TokenType::NONE);
37 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_LINEBREAK", (
int)TokenType::LINEBREAK);
38 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_COMMENT", (
int)TokenType::COMMENT);
39 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_STRING", (
int)TokenType::STRING);
40 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_FLOAT", (
int)TokenType::FLOAT);
41 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_INT", (
int)TokenType::INT);
42 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_BOOL", (
int)TokenType::BOOL);
43 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_KEYWORD", (
int)TokenType::KEYWORD);
47 engine->RegisterEnum(
"GenericDocumentOptions");
void RegisterGenericFileFormatCommon(AngelScript::asIScriptEngine *engine)
defined in GenericFileFormatAngelscript.cpp
static const BitMask_t OPTION_ALLOW_SLASH_COMMENTS
Allow comments starting with //.
static const BitMask_t OPTION_ALLOW_SEPARATOR_COLON
Allow ':' as separator between tokens.
static const BitMask_t OPTION_FIRST_LINE_IS_TITLE
First non-empty & non-comment line is a naked string with spaces.
static const BitMask_t OPTION_ALLOW_NAKED_STRINGS
Allow strings without quotes, for backwards compatibility.
static const BitMask_t OPTION_ALLOW_SEPARATOR_EQUALS
Allow '=' as separator between tokens.
static const BitMask_t OPTION_ALLOW_HASH_COMMENTS
Allow comments starting with #.
static const BitMask_t OPTION_ALLOW_BRACED_KEYWORDS
Allow INI-like '[keyword]' tokens.
static const BitMask_t OPTION_PARENTHESES_CAPTURE_SPACES
If non-empty NAKED string encounters '(', following spaces will be captured until matching ')' is fou...