public override Iast Parse(ParseTreeNode src) { var ret = new FnStmt(); ret.CallName = Iterate(src, "identifier"); var s2 = FlatTree(IteratePTN(src, "callperams"), ",").Trim(','); if (s2.Contains(",")) { foreach (var i in s2.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)) { ret.Perams.Add(i); } } else { if (!string.IsNullOrEmpty(s2)) { ret.Perams.Add(s2); } } return(ret); }
public override Iast Parse(ParseTreeNode src) { var ret = new FnStmt(); ret.CallName = Iterate(src, "identifier"); var s2 = FlatTree(IteratePTN(src, "callperams"), ",").Trim(','); if (s2.Contains(",")) { foreach (var i in s2.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)) { ret.Perams.Add(i); } } else { if (!string.IsNullOrEmpty(s2)) { ret.Perams.Add(s2); } } return ret; }