title: AST for any arbitrary programming language or IR
body: <p>Is it possible to create an AST for any arbitrary programming language or IR using C or C++ alone (without the help of tools like YACC and LEX )?</p>
  
  <p>If so, how to implement the lexical and syntactic analysis ?</p>
  
  <p>If not, what are the tools that have to augmented to C or C++ to successfully create an AST ?</p>
  
  <p>Hope I made my doubt clear. If My question looks vague or out of context, please indicate the required.</p>
  
  <p>P.S : I Am actually trying to create the AST for the LLVM's .ll format of IR representation. I do know that .ll is derived from AST. But I am trying out static analysis practices. So I am looking at creating the AST.</p>