replace the hash maps in the abstract syntax with binary search tables