So could we define a terminal rule which acts as a Text and we can specify it for text fields?
I just need to define an attribute of type Text and not String.
i.e. inside the model, I can simply write the value without using " " and also use spaces.
I suspect that you will find that a grammar with non-spacing spaces and without enclosing quotes for spaces is very hard to develop and probably also really painful to use. I strongly suggest a rethink. If it is useable, then perhaps it is so simple that you can handcraft a lexer/parser.
Thank you both for your replies.
But ID+ would not allow me to add numbers and special characters in the feature's value. I want simple text which could include anything ranging from numbers, special chars, chars to spaces.