public IEnumerable <Kuz> Start() { foreach (Match m in regex.Matches(input)) { if (m.Groups["WhiteSpace"].Success) { // Skip spaces. } else if (m.Groups["Other"].Success) { var k = new Kuz(); k.val = ""; k.tok = Token.ILLEGAL_CHAR; yield return(k); } else { foreach (var name in regexLabels.Keys) { if (m.Groups[name].Success) { Console.WriteLine($"NAME: {name}, val: {m}"); var zain = new Kuz(); zain.tok = regexLabels[name]; zain.val = $"{m}"; yield return(zain); break; } } } } var k2 = new Kuz(); k2.val = ""; k2.tok = Token.EOF; yield return(k2); }
public Float(Kuz x) { this.algo = x; }