▲ | eviks 2 days ago | |||||||
Nice that Unicode is supported, and the localization is a nice twist Are there any examples of what's possible with extensions? | ||||||||
▲ | hgs3 a day ago | parent [-] | |||||||
The "expression arguments extension" is intended to allow for 'richer' expressions wherever an argument is expected. In the following example, it shows how you might use it if you need basic control flow in your configuration:
It's freeform so your application would need to interpret what's between the '(' and ')'.The "punctuator arguments extension" is the one I'm most anxious about since it might be too flexible, but I'd like to hear feedback. It lets you define your own domain-specific punctuators for your configuration so, for example, you might decide that "=" is a punctuator which means the following is equivalent:
Under standard interpretation, if you wanted "=" it be distinct from "x" and "123", then white space would be required.The "comment syntax extension" is just C style comments. My goal was to keep the language basic while encouraging custom flavors. If an extension becomes ubiquitous, then - depending on what it is - it might merge with the standard or be added to the annex. | ||||||||
|