Very interesting idea and great paper. I've been working on similar "data languages" as complements to https://www.oilshell.org/
I wrote a shell script that I think demonstrates a practical issue with Section 4.2 : C-like Host Languages. That is, basically no languages give syntax errors for the proposed \[] or \m[] (blog post says \m[] )
So adding matchertext in the proposed way would technically be a breaking change. Some languages might have an evolution process for minor changes, but I highly doubt a language like JavaScript or C could do this.
Summary of results:
- YES (give syntax errors and are extensible): JSON, Ninja
- NO: Gnu Make, C, Python, Shell, Awk, JavaScript
https://github.com/oilshell/oil/blob/master/demo/matchertext.sh
I'll paste the output of the script in the next comment
Very interesting idea and great paper. I've been working on similar "data languages" as complements to https://www.oilshell.org/
I wrote a shell script that I think demonstrates a practical issue with Section 4.2 : C-like Host Languages. That is, basically no languages give syntax errors for the proposed
\[]or\m[](blog post says\m[])So adding matchertext in the proposed way would technically be a breaking change. Some languages might have an evolution process for minor changes, but I highly doubt a language like JavaScript or C could do this.
Summary of results:
https://github.com/oilshell/oil/blob/master/demo/matchertext.sh
I'll paste the output of the script in the next comment