Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Token.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5struct Token {
6public:
7 // Token inner types define
8 enum class Type : int {
9 String = 0,
10 Number = 1,
11 Bool = 2,
12 };
13
14public:
15 // member variables
16 // NOLINTBEGIN
18 union {
21 };
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 Token& operator=(Token const&);
29 Token(Token const&);
30 Token();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCNAPI explicit Token(::std::string const& str);
36 // NOLINTEND
37
38public:
39 // static functions
40 // NOLINTBEGIN
41 MCNAPI static ::std::vector<::Token> tokenize(::std::string const& str);
42 // NOLINTEND
43
44public:
45 // constructor thunks
46 // NOLINTBEGIN
47 MCNAPI void* $ctor(::std::string const& str);
48 // NOLINTEND
49};
MCAPI Token(::std::string const &str)
static MCAPI ::std::vector<::Token > tokenize(::std::string const &str)
MCAPI void * $ctor(::std::string const &str)
Definition Alias.h:14