public void GetTokens() { var tokens = new CCstGeneratorUsingAntlr3().CreateTokenStream( @"typedef void *AAAA(unsigned long); // aaa AAAA *cb;"); var list = tokens.GetTokens(); tokens.Fill(); foreach (var token in list) { if (token.Channel == TokenChannels.Default) { Console.WriteLine(token.Text); } } Assert.That(tokens.Count, Is.EqualTo(21)); }