Пример #1
0
        private void FillArgValues(Context context, string ch, out object firstArgRes, out object secondArgRes)
        {
            EmitRedundantCharacters();
            string firstArg = data.Substring(0,
                                             data.IndexOfAny(StaticData.CharactersToIgnore.Concat(new[] { ch[0] }).ToArray())); //(new[] { ' ', '\n', '\r', '\t', ch[0] }));
            string secondArg =
                data.Substring(
                    data.LastIndexOfAny(StaticData.CharactersToIgnore.Concat(new[] { ch[ch.Length - 1] }).ToArray()) + 1);  //(new[] { ' ', '\n', '\r', '\t', ch[ch.Length - 1] })+1);

            firstArgRes  = ParseUtilites.ParseArgument(firstArg, context);
            secondArgRes = ParseUtilites.ParseArgument(secondArg, context);
        }
Пример #2
0
 private bool EvaluateConditionWithoutCharacters(Context context)
 {
     EmitRedundantCharacters();
     return(ParseUtilites.ParseArgument(data, context) != null);
 }