commit | 7babd92e12bb198ca003538b96cee7cc5970b257 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Thu Dec 02 22:46:48 2021 -0800 |
committer | swissChili <swisschili@fastmail.com> | Thu Dec 02 22:46:48 2021 -0800 |
tree | c7b37a7c46c10b4f4f62791372241a383e584fc8 |
Initial commit
diff --git a/Matcher.h b/Matcher.h new file mode 100644 index 0000000..81f4305 --- /dev/null +++ b/Matcher.h
@@ -0,0 +1,11 @@ +#pragma once + +#include "Token.h" +#include "VarContext.h" + +struct MatchResult { + bool success; + VarContext context; +}; + +MatchResult match(QList<Token> data, QList<Token> pattern, VarContext context);