[bitc-dev] Syntax Poll: Scoping Syntax
Jonathan S. Shapiro
shap at eros-os.com
Thu Mar 5 13:47:08 EST 2009
On Thu, Mar 5, 2009 at 1:38 PM, Zorg 421 <zorglub421 at gmail.com> wrote:
> Hmm does'nt Jonathan used curly braces in this particular thread to
> mean "optional", not curly braces?
Yes. I was using a BNF-like notation. It's hard to do that in an
ascii-only syntax.To make matters worse, I chose the conventions of
the OCaml doc, which do not follow the usual conventions.
Where grammar fragments are being discussed, we should use curly
braces to denote grouping. All uses of grouping will be followed by +
(one or more) * (zero or more) or ? (zero or one). When curly brace is
intended to be a token it should be quoted or written out.
So with the rules stated, I was proposing:
let BINDING
{ and BINDING }* in
expr
end
That is; I did not intend the curly braces literally.
shap
More information about the bitc-dev
mailing list