codex
Loading...
Searching...
No Matches
lua.hpp
Go to the documentation of this file.
1
#ifndef CODEX_LUA_LUA_H
2
#define CODEX_LUA_LUA_H
3
4
#include <array>
5
#include <cstddef>
6
7
static
constexpr
std::size_t
MAX
= 32;
8
9
enum class
node
{
10
identifier
,
number
,
string
,
11
table_begin
,
table_key
,
table_value
,
table_end
,
n
,
12
};
13
constexpr
std::array
node_names
= {
14
"identifier"
,
"number"
,
"string"
,
15
"table_begin"
,
"table_key"
,
"table_value"
,
"table_end"
,
16
};
17
static_assert
(
static_cast<
std::size_t
>
(node::n) ==
node_names
.size());
18
19
#endif
MAX
static constexpr std::size_t MAX
Definition
lua.hpp:7
node_names
constexpr std::array node_names
Definition
lua.hpp:13
node::table_value
@ table_value
node::table_key
@ table_key
node::n
@ n
node::table_end
@ table_end
node::number
@ number
node::string
@ string
node::table_begin
@ table_begin
node::identifier
@ identifier
node
Definition
list.h:6
tmp
q
lua
lua.hpp
Generated by
1.11.0