codex
Loading...
Searching...
No Matches
print.hpp
Go to the documentation of this file.
1
#ifndef CODEX_LUA_PRINT_H
2
#define CODEX_LUA_PRINT_H
3
4
#include <iostream>
5
6
#include "
gen.hpp
"
7
#include "
utils.hpp
"
8
9
template
<fixed_
string
_view s>
10
std::ostream &
operator<<
(std::ostream &o,
identifier<s>
) {
11
return
o <<
"identifier<"
<< std::string_view{
s
} <<
'>'
;
12
}
13
14
template
<fixed_
string
_view s>
15
std::ostream &
operator<<
(std::ostream &o,
number<s>
) {
16
return
o <<
"number<"
<< std::string_view{
s
} <<
'>'
;
17
}
18
19
template
<fixed_
string
_view s>
20
std::ostream &
operator<<
(std::ostream &o,
string<s>
) {
21
return
o <<
"string<"
<< std::string_view{
s
} <<
'>'
;
22
}
23
24
std::ostream &
operator<<
(std::ostream &o,
table_begin
) {
25
return
o <<
"table_begin"
;
26
}
27
28
std::ostream &
operator<<
(std::ostream &o,
table_key
) {
29
return
o <<
"table_key"
;
30
}
31
32
std::ostream &
operator<<
(std::ostream &o,
table_value
) {
33
return
o <<
"table_value"
;
34
}
35
36
std::ostream &
operator<<
(std::ostream &o,
table_end
) {
37
return
o <<
"table_end"
;
38
}
39
40
#endif
gen.hpp
operator<<
std::ostream & operator<<(std::ostream &o, identifier< s >)
Definition
print.hpp:10
identifier
Definition
gen.hpp:12
number
Definition
gen.hpp:15
string
Definition
gen.hpp:18
table_begin
Definition
gen.hpp:20
table_end
Definition
gen.hpp:23
table_key
Definition
gen.hpp:21
table_value
Definition
gen.hpp:22
s
constexpr fixed_string s
Definition
test.cpp:6
utils.hpp
tmp
q
lua
print.hpp
Generated by
1.11.0