AntLR migration