Visual Grammars and Their Neural Nets