tokens: When you call fmt.Println(p) , the parse tree is being converted to a string , which is why the output you 're seeing is just an equivalent regexp .
ner_tags: O O O B-Function O O O B-Data_Structure O O O O O B-Data_Type O O O O O O O O O O O O O B-Variable O