Use get_structs from syntaxrules, improved error display