From 494f10a5a820d55cae05d5652ce984ec0807e619 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 4 Mar 2023 03:17:34 +0100 Subject: [PATCH] Use the correct type names for forward-declared parser types This allows using the types in cxx bridges other than the ones that define them. --- src/parse_constants.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/parse_constants.h b/src/parse_constants.h index a6e12fc5e..41e8fd4d5 100644 --- a/src/parse_constants.h +++ b/src/parse_constants.h @@ -37,7 +37,7 @@ struct SourceRange { }; using source_range_t = SourceRange; -enum class parse_token_type_t : uint8_t { +enum class ParseTokenType : uint8_t { invalid = 1, string, pipe, @@ -51,8 +51,9 @@ enum class parse_token_type_t : uint8_t { tokenizer_error, comment, }; +using parse_token_type_t = ParseTokenType; -enum class parse_keyword_t : uint8_t { +enum class ParseKeyword : uint8_t { none, kw_and, kw_begin, @@ -73,13 +74,15 @@ enum class parse_keyword_t : uint8_t { kw_time, kw_while, }; +using parse_keyword_t = ParseKeyword; -enum class statement_decoration_t : uint8_t { +enum class StatementDecoration : uint8_t { none, command, builtin, exec, }; +using statement_decoration_t = StatementDecoration; enum class parse_error_code_t : uint8_t { none,