public Document analyze(String filePath, SupportedOptions options)
throws KameleonException {
String charset = "UTF-8" ; //$NON-NLS-1$
try {
SyntaxAnalyzer a = new SyntaxAnalyzer(
new LexicalAnalyzer(new InputStreamReader(
new FileInputStream(filePath), charset)));
Symbol result = a.parse() ;
return (Document) result.value ;
} catch (UnsupportedEncodingException e) {
throw new KameleonException(e.getMessage()) ;