training project for learn antlr and prolog