5 ms·
SEXPR := YOUR-CUSTOM-LITERALS | "(" SEXPR* ")"
by lapinot 4y ago
SEXPR := YOUR-CUSTOM-LITERALS
| "(" SEXPR* ")"
- jerf 4y agoAlong with the many other issues that would have for just straight-up not being a usable grammar, the word "CUSTOM" appearing in a nominal cross language standard is a non-starter.
- lapinot 4y agoOh come on. Did you think anybody would write an RFC in the comments? Add arbitrary list of whitespace tokens everywhere and pick whatever favorite grammar you have for literals. Json strings and numbers since you seem to like them.
- jerf 4y agoOf course not. But you are at least semi-seriously trying to propose something. I promise you it won't be that easy to get any sort of agreement. This is a classic "oh come on how hard can it be" that, once you get into it, it turns out the answer is very. Arbitrarily so. Agreement is hard. Details are hard. A standard with no details is not terribly different from "just give us some text".
- zvr 4y agoAh, no types, no NIL. Every user has to specify how their usage expresses strings, integers, booleans, etc. Maybe start from one of the already existing standards https://en.wikipedia.org/wiki/S-expression#Standardization https://en.wikipedia.org/wiki/S-expression#Standardization ?