Context-Sensitive algorithm implementation on top of Polyglot 2.5