Stub of allegro parser. Code turned into mess.