public override Statement Interprete(string src, int line) { var returns = new CallStmt(); returns.Line = line; var reg = new Regex(Parser.Grammar.GetPattern("call").ToString()); Match match = reg.Match(src); if (match.Success) { returns.Paramaters = new List<Primitive>(); returns.Name = match.Groups[1].Value; if (match.Groups["params"].Value.Contains(',')) { foreach (string i in match.Groups["params"].Value.TrimEnd(')').Split(',')) { returns.Paramaters.Add(StatmentVarHandler.HandleVar(i)); } } } return returns; }
public override Statement Interprete(string src, int line) { var returns = new CallStmt(); returns.Line = line; var reg = new Regex(Parser.Grammar.GetPattern("call").ToString()); Match match = reg.Match(src); if (match.Success) { returns.Paramaters = new List <Primitive>(); returns.Name = match.Groups[1].Value; if (match.Groups["params"].Value.Contains(',')) { foreach (string i in match.Groups["params"].Value.TrimEnd(')').Split(',')) { returns.Paramaters.Add(StatmentVarHandler.HandleVar(i)); } } } return(returns); }
public override void Visit(CallStmt call) { Result += call.Name + "\r"; }
public virtual void Visit(CallStmt call) { }