Aligned the grammar with the classical one.
Made the parser still more flexible.

New optional elements:

- ids in closing tags
- nodes, diectives: when some special characters are used to begin the opening of any element (i.e. not text), but then nothing matches any element, this is kept as an unknow, not finished element