Add IgnoreCase Keyword matcher for simple parser

This commit is contained in:
Jan
2021-10-31 15:22:03 +01:00
parent dcffa3d14d
commit 037e13b874
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#pragma once
#include <string>
#include "Parsing/Simple/SimpleParserValue.h"
#include "Parsing/Matcher/AbstractMatcher.h"
class SimpleMatcherKeywordIgnoreCase final : public AbstractMatcher<SimpleParserValue>
{
std::string m_value;
protected:
MatcherResult<SimpleParserValue> CanMatch(ILexer<SimpleParserValue>* lexer, unsigned tokenOffset) override;
public:
explicit SimpleMatcherKeywordIgnoreCase(std::string value);
};