Пример #1
0
        public override IAst Parse(Token raw)
        {
            var re = new RetStmt();
            var x = IAst.ParseToken(new Token() { Raw = raw.Raw?.Trim().Split(' ')[1] });
            if (x != null)
            {
                re.RetValue = x[0];
            }

            return re;
        }
Пример #2
0
        public override IAst Parse(Token raw)
        {
            var re = new RetStmt();
            var x  = IAst.ParseToken(new Token()
            {
                Raw = raw.Raw?.Trim().Split(' ')[1]
            });

            if (x != null)
            {
                re.RetValue = x[0];
            }

            return(re);
        }