12#ifndef ARK_COMPILER_COMMON_HPP
13#define ARK_COMPILER_COMMON_HPP
44 constexpr std::array<std::string_view, 11>
nodeTypes = {
73 constexpr std::array<std::string_view, 9>
keywords = {
112 constexpr std::string_view
SysArgs =
"sys:args";
115 constexpr std::string_view
And =
"and";
116 constexpr std::string_view
Or =
"or";
118 constexpr std::string_view
Undef =
"$undef";
119 constexpr std::string_view
Symcat =
"$symcat";
121 constexpr std::string_view
Repr =
"$repr";
122 constexpr std::string_view
Paste =
"$paste";
135 constexpr std::array<std::string_view, 24>
operators = {
137 ">",
"<",
"<=",
">=",
"!=",
"=",
138 "len",
"empty?",
"tail",
"head",
140 "toNumber",
"toString",
constexpr std::array< std::string_view, 9 > listInstructions
constexpr std::string_view AppendInPlace
constexpr std::string_view Argcount
constexpr std::array< std::string_view, 24 > operators
constexpr std::string_view ConcatInPlace
constexpr std::string_view SysPlatform
constexpr std::string_view PopInPlace
constexpr std::array macros
constexpr std::string_view Paste
constexpr std::string_view SetAt2InPlace
constexpr std::string_view SysArgs
constexpr std::string_view And
constexpr std::string_view Repr
constexpr std::array UpdateRef
All the builtins that modify in place a variable.
constexpr std::string_view Or
constexpr std::string_view Symcat
constexpr std::string_view Undef
constexpr std::string_view SetAtInPlace
constexpr std::array< std::string_view, 11 > nodeTypes
Node types as string, in the same order as the enum NodeType.
NodeType
The different node types available.
Keyword
The different keywords available.
constexpr std::array< std::string_view, 9 > keywords
List of available keywords in ArkScript.
std::vector< uint8_t > bytecode_t