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
9template<fixed_string_view s>
10std::ostream &operator<<(std::ostream &o, identifier<s>) {
11 return o << "identifier<" << std::string_view{s} << '>';
12}
13
14template<fixed_string_view s>
15std::ostream &operator<<(std::ostream &o, number<s>) {
16 return o << "number<" << std::string_view{s} << '>';
17}
18
19template<fixed_string_view s>
20std::ostream &operator<<(std::ostream &o, string<s>) {
21 return o << "string<" << std::string_view{s} << '>';
22}
23
24std::ostream &operator<<(std::ostream &o, table_begin) {
25 return o << "table_begin";
26}
27
28std::ostream &operator<<(std::ostream &o, table_key) {
29 return o << "table_key";
30}
31
32std::ostream &operator<<(std::ostream &o, table_value) {
33 return o << "table_value";
34}
35
36std::ostream &operator<<(std::ostream &o, table_end) {
37 return o << "table_end";
38}
39
40#endif
std::ostream & operator<<(std::ostream &o, identifier< s >)
Definition print.hpp:10
Definition gen.hpp:12
Definition gen.hpp:15
Definition gen.hpp:18
Definition gen.hpp:20
Definition gen.hpp:23
Definition gen.hpp:21
Definition gen.hpp:22
constexpr fixed_string s
Definition test.cpp:6