2021-03-23 22:17:25 +01:00
|
|
|
#ifndef LIBCUBESCRIPT_PARSER_HH
|
|
|
|
#define LIBCUBESCRIPT_PARSER_HH
|
|
|
|
|
|
|
|
#include <cubescript/cubescript.hh>
|
|
|
|
|
|
|
|
#include <string_view>
|
|
|
|
|
2021-03-23 23:32:25 +01:00
|
|
|
namespace cubescript {
|
2021-03-23 22:17:25 +01:00
|
|
|
|
2021-03-23 23:29:32 +01:00
|
|
|
integer_type parse_int(std::string_view input, std::string_view *end = nullptr);
|
|
|
|
float_type parse_float(std::string_view input, std::string_view *end = nullptr);
|
2021-03-23 22:17:25 +01:00
|
|
|
|
|
|
|
bool is_valid_name(std::string_view input);
|
|
|
|
|
2021-03-23 23:32:25 +01:00
|
|
|
} /* namespace cubescript */
|
2021-03-23 22:17:25 +01:00
|
|
|
|
|
|
|
#endif
|