On Mon, Aug 25, 2014 at 10:29:21PM +0100, Dominik Vogt wrote:
> On Mon, Aug 25, 2014 at 10:16:33PM +0100, Thomas Adam wrote:
> > > Er, my uses of STRING up to now mean just "something that I don't
> > > know how to define at the moment". :-)
> >
> > Heh! In that case, I'll use it as a placeholder as well.
>
> I've pushed an attempt to define character classes, single character
> quoting, unqouted and quoted strings, STRING and TOKEN.
>
> Note that we need to go over the actual uses of STRING to see
> whether they should be using something else.
That's an interesting point -- consider *any* command or option, and
invariably you can have:
COMMAND "Option" / 'Option' / `Option`
Currently, the way we're documenting these options isn't catering for
the quoting rules which the parser allows for---even if it's ignoring
them (although in cases like PipeRead this does have semantic
differences---although by the time it reaches the shell, we don't care
how much of a mess someone might have landed themselves in).
However in documenting that minor detail for diffrent options would make
the ABNF almost unreadable in my eyes, so I wonder how useful it is?
Another example are function definitions:
AddToFunc TeddyBear "I" Echo "xteddy"
AddToFunc "TeddyBear"
+ "C" Exec exec xteddy
+ M Nop
All of these are valid (AFAICT). So we're at a slight quandry here,
because we've only documented the bare minimum, and your quoting
definiions are fabulous, Dominik---the question I'm asking is how/if we
apply them to every single option we've already documented, and whether
that's a useful thing to do?
One other thing to note (which I don't think warrants a separate
thread), is can you check the following for me (lines 1056-1063):
MENUCONTEXT =/ "Window" /
"Interior"
"Interior =/ "Title"
"Interior =/ ("Button" INT) "Icon"
"Interior =/ "Item"
"Interior =/ "Context"
"Interior =/ "This"
"Interior =/ ("Rectangle" MENUCONTEXTGEOMETRY)
I'm not convinced the syntax is correct there, but I'm not sure
precisely what it's getting at either?
Thanks for all your hard work today on this, Dominik, we're plodding
along, slowly but surely!
-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)