List<IRule> rules = new ArrayList<IRule>();
// Add generic whitespace rule.
rules.add(new WhitespaceRule(new WhitespaceDetectorAdaptor()));
WordRule wordRule = new WordRule(new CocoIdentDetectorAdaptor(), defaultToken);
for (ATGKeywords word : ATGKeywords.values()) {
wordRule.addWord(word.name(), keywordToken);
}
rules.add(wordRule);