Add the grammar for base types.