X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fdocs;h=e1269706dbba7e38a98cb84069140c6bf827293f;hb=5d41f4f9fd6a3f188bba831a1a8902f7890cef8f;hp=c84870935cb54d95cf68b30f67db34a740575c3b;hpb=18bdd63163d8af1276eb26a67ccc6e78a1f7c158;p=ypp-sc-tools.web-live.git diff --git a/yarrg/web/docs b/yarrg/web/docs index c848709..e126970 100755 --- a/yarrg/web/docs +++ b/yarrg/web/docs @@ -119,8 +119,9 @@ like:
-Formally, the capacity is a list of terms, all but the first preceded -by one of -, minus, +, -plus. Each term may specify a mass and/or a volume -(separated by a space), as a number followed (without an intervening -space) by a unit (t, kg, kl or -l). Alternatively each term except the first may specify a -percentage, which is applied as a percentage change to the answer from -all the preceding terms. The first term may be a ship name or -abbrevation instead. If the first term specifies only one of mass or -volume, all the subsequent terms may only adjust that same value. +More formally: +
+ capacity-string := [ first-term term* ] + term := ('+' | '-' | 'plus' | 'minus') (value+ | number'%') + value := mass | volume + | integer commodity-name-or-abbreviation + mass := number ('t' | 'kg') + volume := number ('kl' | 'l') + first-term := mass | volume | mass volume | volume mass + | ship-name-or-abbreviation ++ +If the first term specifies only one of mass or volume, all the +subsequent terms may only adjust that same value.