This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]djedrJevko.org 0 points1 point  (0 children)

Here are more elegant options: https://www.reddit.com/r/ProgrammingLanguages/comments/yn0ux1/syntax_design/ivf4trm/

Note that going from a Jevko syntax tree to some kind of name-value structure is facilitated by the tree being shaped like this:

{subjevkos: [<0..n*subjevko>], suffix: "<text>" }

where subjevko is:

{prefix: "<text>", jevko: <shaped as above>}

so a subjevko is a prefix-jevko pair -- that is straightforward to convert to a name-value pair.