title: Using AntLR 4 to get names of variables and functions
body: <p>I have a set of source code files written in C language and I need to generate a parse to extract the names of variables and functions from the files.</p>
  
  <p>I found out that I can do this with AntLR. I already have a C grammar, but I don't what are the steps I should follow to what I said.</p>
  
  <p>Please someone give me a hint of how to proceed, for example, should I generate a listener or a visitor?</p>
  
  <p>Thank you!</p>