Exemple #1
0
 public Input SetParsedInput(ParsedInput value)
 {
     return(new Input(this)
     {
         ParsedInput = value
     });
 }
        public Input Evaluate(string input)
        {
            ParsedInput parsedInput = parser.Parse(input);

            IInputTreeEvaluationStrategy evaluation = new InputTreeEvaluationStrategy(tree, environment);

            return(evaluation.Evaluate(parsedInput));
        }
Exemple #3
0
 public static Input BuildUnrecognised(ParsedInput parsedInput)
 {
     return(Empty.SetParsedInput(parsedInput));
 }
Exemple #4
0
 internal Builder(ParsedInput input)
 {
     RawInput = input.RawInput;
     Tokens   = input.Tokens.ToBuilder();
 }