X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fdocs;h=e1269706dbba7e38a98cb84069140c6bf827293f;hb=422fab9f34f08090bca02f67cb41bba31f816c7e;hp=9db9320af0dfd60bea0962cb2019972522807735;hpb=1a64a4e4703ade43ff0b26150f8128969be0ec8b;p=ypp-sc-tools.db-test.git diff --git a/yarrg/web/docs b/yarrg/web/docs index 9db9320..e126970 100755 --- a/yarrg/web/docs +++ b/yarrg/web/docs @@ -33,7 +33,7 @@ %doc> -
-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.