Can I use ANTLR to build a parser written in Java language but which is capable of parsing another language (like C, C++ or Pascal...)?

Antonio Hernandez

You sure can. Don't confuse the language in which you implement the parser (Java) with the language you want to parse (e.g., C++, C). The primary goal of a compiler is to translate one language (i.e. C) into another language (i.e assembly), but you can construct your language in any language you want. With ANTLR you can implement a parser in Java, C++, or Sather.