Grammar within a Neural Network