Skip to content

Paper feedback: Can string literals in various languages be extended? #1

@andychu

Description

@andychu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions