: Re: In a formal syntax notation, how should I indicate many optional elements? We use a BNF style to convey syntax for SQL statements. For a (fictitious) example: CREATE PARSER [schema.]function
Postgres tackles a similarish problem and uses ', ...' to indicate an expression is to be repeated separated by commas (e.g. www.postgresql.org/docs/9.5/static/sql-createfunction.html). So in their syntax you would write something like
CREATE PARSER [*schema*.]*function* [WITH
{ LANGUAGE='*language*'
| MODE='[FENCED|UNFENCED]'
| STUFF='*anotherParameter*'
} [, ...]
];
Now if the order of those statements is fixed, this solution does not quite work.
More posts by @Phylliss352
: Need suggestion on promoting the book I published my debut poetry book on Amazon. It seems like reaching wider audience means spending lots of money. I don't want to do that. So far I received
: How does one write a misanthropic character likeable? Let's say the character has over the years grown to dislike humans because he had many negative experiences with them, and is disappointed
Terms of Use Privacy policy Contact About Cancellation policy © selfpublishingguru.com2024 All Rights reserved.