Open eignnx opened 5 months ago
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."
I really want DCGs to be easy to write and easy to read. This example fails the 2nd condition:
Wouldn't it be better to write:
I guess this is solved by text template literals: