mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
refactor: rename coders/lua_parsing to coders/syntax_parser
This commit is contained in:
parent
d888ddec4c
commit
4360cd408b
4 changed files with 10 additions and 9 deletions
|
|
@ -1,10 +1,9 @@
|
|||
#include "lua_parsing.hpp"
|
||||
#include "syntax_parser.hpp"
|
||||
|
||||
#include <set>
|
||||
|
||||
#include "BasicParser.hpp"
|
||||
|
||||
using namespace lua;
|
||||
using namespace devtools;
|
||||
|
||||
static std::set<std::wstring_view> keywords {
|
||||
|
|
@ -188,6 +187,8 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
std::vector<Token> lua::tokenize(std::string_view file, std::wstring_view source) {
|
||||
std::vector<Token> devtools::tokenize(
|
||||
std::string_view file, std::wstring_view source
|
||||
) {
|
||||
return Tokenizer(file, source).tokenize();
|
||||
}
|
||||
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
#include "devtools/syntax.hpp"
|
||||
|
||||
namespace lua {
|
||||
std::vector<devtools::Token> tokenize(
|
||||
namespace devtools {
|
||||
std::vector<Token> tokenize(
|
||||
std::string_view file, std::wstring_view source
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue