示例#1
0
        public static object Chars(params int[] chars)
        {
            var count = chars.Length;
            var array = new PrintableList<ISingleCharRx>(count);

            for (var i = 0; i < count; i++)
            {
                array.Add(new CharRx(chars[i]));
            }
            return array;
        }
示例#2
0
        public static IList <SourceLanguage> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <SourceLanguage>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
        public static IList <LiteralContextDependentNumber> ParseCollection(WordReader reader, uint wordCount,
                                                                            InstructionWithId type)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <LiteralContextDependentNumber>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position, type));
            }
            return(res);
        }
示例#4
0
        public IList <Node> GetNodes(IList <IdRef> ids)
        {
            var nodes = new PrintableList <Node>();

            if (ids != null)
            {
                foreach (var idRef in ids)
                {
                    nodes.Add(GetNode(idRef));
                }
            }

            return(nodes);
        }