[TYPO3-50-general] TypoScript 2.0 EBNF
Christian Welzel
gawain at camlann.de
Thu May 31 17:53:54 CEST 2007
Robert Lemke wrote:
> So here is my draft, up for discussion an improvement:
Could you please rewrite the ebnf without the WhiteSpace?
Whitespaces are normally handles by the lexer and therefore
do not belong to the grammar. Its also better readable without
that bunch of WhiteSpace in there.
I showed your grammar to a friend of mine and he says:
> BlockComment = "/*" { UnicodeCharacter} { LineBreak } "*/";
> does not what he probably want. it produces:
> /* many characters, many linebreaks after that, then */
> IncludeDeclaration = "include" {Whitespace} ":" "source" {Whitespace} "=" {Whitespace} DoubleQuote Resource DoubleQuote;
> NamespaceDeclaration = "namespace" { Whitespace } ":" NamespaceIdentifier { Whitespace } "=" ComponentName
Shouldn't there be WhiteSpaces between ":" and "source"/NamespaceIdentifier?
> ObjectPath = { "." } ObjectIdentifier { "." ObjectIdentifier } [ "." VariableName ];
Is ObjectPath really meant to allow ......foo.bar ?
Or do you mean [ "." ] ObjectIdentifier { "." ObjectIdentifier } [ "." VariableName ]; ?
--
MfG, Christian Welzel
GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
More information about the TYPO3-project-5_0-general
mailing list