Beispiel #1
0
 private static AnyToken asNodeWithOptions(AbstractDefinedValueToken varToken)
 {
     var h = new TokenizerHandle(varToken.Value);
     h.Advance();
     var anyToken = new AnyToken();
     anyToken = (AnyToken) anyToken.Check(h);
     if (anyToken == null)
       throw new ArgumentException("Value to " + varToken.VariableName + " could not be understood.");
     return anyToken;
 }
Beispiel #2
0
        public void Visit(AnyToken token)
        {
            if (currentTarget == null)
            throw new ArgumentOutOfRangeException("token", "rfb strives to recognize all top-level elements but token " + token.Word + " is unknown");

              var task = currentTarget.AddNewTask(token.Word);
              valueResolver.Normalize(token);
              foreach (var option in token)
            task.SetParameterValue(option.Key, option.Value);
        }
Beispiel #3
0
 public void Visit(AnyToken token)
 {
     VisitedAnyToken++;
       TotalCount++;
       Tokens.Add(token);
 }