BNF for DEPEND in EAPI0 and EAPI1
Am Mon, 14 Apr 2008 14:22:12 +0200
schrieb Marius Mauch <email@example.com>:
> Offhand the 'package name' part is wrong/incomplete, pretty sure even
> PMS says that they can't start/end with underscores or dashes (it's a
> real PITA to get it right).
I havent found anything like that in the PMS at the appropriate places.
It only limits the characters and restricts a package name not to end
in a hyphen followed by number literals.
However, if there is a need to restrict the package name like that it
_should_ be in the PMS of cause. Other wierd package names allowed by
this regexp and by the PMS: "---", "___1", "1-2a"
PMS even allows "137" or "", while the regexp does not. That would be
easily fixed, but I guess that is not even intended.
> Haven't really read the non-terminals section as it's hard to read in
> this form, using EBNF or some markup language might help with that.
EBNF would be easy. What kind of markup do you have in mind? (Also I
need to get rid of the left recursion in the BNF)