载入中...
搜索中...
未找到
ScriptStructure.hpp
浏览该文件的文档.
1#pragma once
2#include <string>
3#include <string_view>
4#include <vector>
5#include "common/Export.h"
6
7namespace eve::script {
10 std::string kind, value;
11 std::vector<ScriptExpression> operands;
12 unsigned line = 1, column = 1;
13 size_t begin = 0, end = 0;
14};
21 std::string name;
22 std::vector<ScriptParameterSyntax> parameters;
23 unsigned line = 1;
24 size_t begin = 0, end = 0;
25};
39 std::string name;
40 unsigned line = 1;
41 size_t begin = 0, end = 0;
42};
45 std::vector<ScriptClassSyntax> classes;
46 std::vector<ScriptFunctionSyntax> functions;
47 std::vector<ScriptBindingSyntax> bindings;
48 std::vector<ScriptCallSyntax> calls;
49 std::vector<std::string> diagnostics;
50};
68} // namespace eve::script
std::string name
Definition ECS.cpp:154
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
JobScope scope
std::string local
Object::Ptr value
unsigned line
std::string_view source
size_t begin
unsigned column
size_t end
ScriptStructure analyzeScriptStructure(std::string_view source)
Parse named functions, lexical bindings and call/member/literal expressions.
EVENGINE_API_FOUNDATION std::string_view scriptStructureProviderHash()
Build-generated source fingerprint of the structural analyzer and project projection.
Source binding; local bindings remain in their owning function scope.
Call expression and an immediately adjacent literal comparison, if present.
Named class body retained for field and method reflection.
Owning syntax expression; dynamic means outside the supported expression subset.
std::vector< ScriptExpression > operands
Named function body and source parameters; offsets address the original source.
std::vector< ScriptParameterSyntax > parameters
Function parameter identity and optional erased source type.
Bounded structural analysis, independent of VM execution and binding resolution.
std::vector< ScriptClassSyntax > classes
std::vector< ScriptBindingSyntax > bindings
std::vector< std::string > diagnostics
std::vector< ScriptCallSyntax > calls
std::vector< ScriptFunctionSyntax > functions