mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
17 lines
704 B
C++
17 lines
704 B
C++
#include "DefinesIfDirectiveExpressionSequence.h"
|
|
|
|
#include "Parsing/Simple/Matcher/SimpleMatcherFactory.h"
|
|
#include "DefinesIfExpressionMatchers.h"
|
|
|
|
DefinesIfDirectiveExpressionSequence::DefinesIfDirectiveExpressionSequence()
|
|
{
|
|
const SimpleMatcherFactory create(this);
|
|
AddLabeledMatchers(DefinesIfExpressionMatchers().Expression(this), SimpleExpressionMatchers::LABEL_EXPRESSION);
|
|
AddMatchers(create.Label(SimpleExpressionMatchers::LABEL_EXPRESSION));
|
|
}
|
|
|
|
void DefinesIfDirectiveExpressionSequence::ProcessMatch(DefinesIfDirectiveParsingState* state, SequenceResult<SimpleParserValue>& result) const
|
|
{
|
|
state->m_expression = DefinesIfExpressionMatchers(state).ProcessExpression(result);
|
|
}
|