Exemplo n.º 1
0
        public override bool TryParse(string path, ref RangeInt cursor, out IWatchContext ctx)
        {
            var c = cursor;

            ParserUtils.TryParseAt(path, ref c, ".");
            foreach (var v in Variables)
            {
                if (ParserUtils.TryParseToken(path, ref c, v.Key))
                {
                    cursor = c;
                    ctx    = v.Value;
                    return(true);
                }
            }
            ctx = null;
            return(false);
        }