diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:38:56 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:38:56 +0000 |
commit | 7d292f1247e3287fb07a9a12377217ce8942cf09 (patch) | |
tree | ffe937ba04fb59a72b785040cf29db1476f7282a /doc/user/dia_synt | |
parent | 68c155de3c3e83f53404288a318c5e29f0c4610f (diff) | |
download | lout-7d292f1247e3287fb07a9a12377217ce8942cf09.tar.gz |
Lout 3.29.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@27 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'doc/user/dia_synt')
-rw-r--r-- | doc/user/dia_synt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/user/dia_synt b/doc/user/dia_synt index 260197e..921b918 100644 --- a/doc/user/dia_synt +++ b/doc/user/dia_synt @@ -292,6 +292,27 @@ Here is the same example in the other three directions: This symbol is a great aid to packing a big syntax diagram into a compact shape. @PP +A variant of the basic selection idea is when you want one thing +or another, or alternatively both in a particular order. You can get +this with the @Code "@OneOrBoth" symbol, which takes exactly two +options, @Code "A" and {@Code "B"}: +@ID @OneRow { +@Code @Verbatim { +@StartRight @OneOrBoth + A { @ACell type } + B { @ACell body } +} +||7ct +@SyntaxDiag { +@StartRight @OneOrBoth + A { @ACell type } + B { @ACell body } +} +} +Although the concept extends to more than two options, the symnbol +doesn't. The summary at the end of this chapter shows the other +three directions. +@PP That covers sequencing and selection; now for looping. The @Code "@Loop" symbol produces a loop, with option @Code A going forwards and option @Code B centred and going backwards: |