public ExpressionParser(String expressionType, StatDefinitionRepository definitions,
                         StatValueParserFactory parserFactory)
 {
     ExpressionType = expressionType;
     Definitions    = definitions;
     ParserFactory  = parserFactory;
 }
        public IStatValueParser GetParser(StatValueParserFactory factory, StatDefinitionRepository definitions)
        {
            if (parser == null)
            {
                parser = factory.CreateParser(this, definitions);
            }

            return(parser);
        }
 public ConditionsParser(StatDefinitionRepository definitions, StatValueParserFactory parserFactory)
 {
     ExprParser = new ExpressionParser("Conditions", definitions, parserFactory);
 }
 public StatLoader(StatLoadingContext ctx)
 {
     Context            = ctx;
     ReferenceValidator = new StatLoaderReferenceValidator(ctx);
     ParserFactory      = new StatValueParserFactory(ReferenceValidator);
 }