From 4f22f27dc754f2f98a41256959f4e5a180784fba Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:09:52 +0300 Subject: [PATCH] feat: add glob parser --- include/compiler/treeifier/ast.hh | 2 ++ src/compiler/treeifier/parsers/glob.cc | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/compiler/treeifier/parsers/glob.cc diff --git a/include/compiler/treeifier/ast.hh b/include/compiler/treeifier/ast.hh index 76a8c1d..ba6eb11 100644 --- a/include/compiler/treeifier/ast.hh +++ b/include/compiler/treeifier/ast.hh @@ -38,4 +38,6 @@ namespace ppc::comp::tree::ast { group_parser_t(); }; + + extern const constr_parser_t &glob_parser; } \ No newline at end of file diff --git a/src/compiler/treeifier/parsers/glob.cc b/src/compiler/treeifier/parsers/glob.cc new file mode 100644 index 0000000..bd30023 --- /dev/null +++ b/src/compiler/treeifier/parsers/glob.cc @@ -0,0 +1,11 @@ +#include "compiler/treeifier/ast.hh" + +namespace ppc::comp::tree::ast { + class glob_parser_t : public constr_parser_t { + bool parse(messages::msg_stack_t &messages, vec_slice_t &tokens, data::map_t &out) { + + } + }; + + const constr_parser_t &glob_parser = glob_parser_t(); +}