Hi,
I am trying to build a static analysis tool for sensetalk which should detect dead codes, duplicate codes and naming conventions of variables and functions. I am looking for a parser/analyzer wherein I can pass in the grammar(tokens and structures of a language) and rules(things that I want to validate) to perform static analysis. Can PMD be extended to do this? If not, could anyone suggest on how I can proceed building this tool.

Thanks,
Rajesh