Skip to content

DCG Syntax #41

@eignnx

Description

@eignnx

I really want DCGs to be easy to write and easy to read. This example fails the 2nd condition:

[story]
    - "Once upon a time there was a"
    - [Subject]
    - "who was very hungry."

Wouldn't it be better to write:

[story] {
    "Once upon a time there was a" [Subject] "who was very hungry."
}

I guess this is solved by text template literals:

[story]
    "Once upon a time there was a [[Subject]] who was very hungry."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions