| ▲ | joddystreet 10 hours ago | |||||||||||||
I was working on a similar concept - Morpheus Snippet - ``` document ::= ( comment | blank )* screen-line body body ::= ( element-line | comment | blank )* element-line ::= indent kind [ name ] meaning* [ modifiers ] ``` | ||||||||||||||
| ▲ | joddystreet 8 hours ago | parent | next [-] | |||||||||||||
This was take 2 ``` document = { template } ; template = "@template", identifier, newline, { node }, "@end", line-end ; node = group | row ; group = "<", identifier, ">", newline, { node }, "</", identifier, ">", line-end ; row = atom, { "|", atom }, line-end ; atom = reference | component | spacer ; reference = "[[", identifier, "]]" ; component = "[", label, [ "|", identifier, { "|", property } ], "]" ; property = identifier, "=", value ; value = json-scalar | binding ; label = label-part, { label-part } ; label-part = literal-text | escape | binding ; binding = "{", identifier, { ".", identifier }, "}" ; spacer = "..." ; line-end = newline | end-of-file ; ``` Still evolving. Core idea is to be able to define interfaces in a minimal language, without going into too much details about attributes, say height, width, etc | ||||||||||||||
| ▲ | verdverm 9 hours ago | parent | prev [-] | |||||||||||||
Myself too, they are all essentially DSLs with a transpiler to underlying tools and packages in a given language. Mine is different by allowing module developers to control the output technologies and DSL if they want, boiled down to CUE + text/template. Downstream users get a similar experience to this post. | ||||||||||||||
| ||||||||||||||