Exemple #1
0
        public override IAst Parse(Token raw)
        {
            var re = new InvokeStmt();

            re.Path = raw.Raw.Trim().Split('(')[0];
            foreach (var i in raw.Raw.Trim().Remove(raw.Raw.Trim().Length - 1, 1).Replace(re.Path, "").Remove(0,1).Split(','))
            {
                var x = IAst.ParseToken(new Token() { Raw = i.Trim() });
                if(x != null)
                {
                    re.Perams.AddRange(x);
                }
            }

            return re;
        }
Exemple #2
0
        public override IAst Parse(Token raw)
        {
            var re = new InvokeStmt();

            re.Path = raw.Raw.Trim().Split('(')[0];
            foreach (var i in raw.Raw.Trim().Remove(raw.Raw.Trim().Length - 1, 1).Replace(re.Path, "").Remove(0, 1).Split(','))
            {
                var x = IAst.ParseToken(new Token()
                {
                    Raw = i.Trim()
                });
                if (x != null)
                {
                    re.Perams.AddRange(x);
                }
            }

            return(re);
        }