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

            IInputTreeEvaluationStrategy evaluation = new InputTreeEvaluationStrategy(tree, environment);

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