implement fgaj_parse_level()