|
[Yaml-core] simple strings
From: Rolf Veen <rolf.veen@he...> - 2002-05-22 13:44
|
Maybe production [170] (simple_char) can be made less restrictive. For simple strings that are not part of a map or list, we could widen it to: simple_char ::= line_char - ": " (forgive me this syntax :-) ) That would imply creating two different simple productions: the current one and the less restrictive, for leafs. For example: [173] simple2 ::= simple_1st simple2_char simple_last [174] simple2_char ::= line_char - ": " This requires adjusting other productions. While this adds some complexity, at the end it will be easier for the YAML user, as he/she will see less special characters. The idea is to match simple strings exactly to their context in order to give them the widest character range possible. By the way, allowing comments after simple leafs would make " #" a special character sequence. Another restriction. Regards. Rolf. |
| Thread | Author | Date |
|---|---|---|
| [Yaml-core] simple strings | Rolf Veen <rolf.veen@he...> |