summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-03-23 12:49:53 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2011-03-23 12:49:53 +0100
commit26d92bb8921ac4e022cdc88bde8fc7bc617f8766 (patch)
tree5e900b466e46e1848b4d2bd98a5894cf6214b08b /doc
parent6bcef22580010aec695fb2b559c7b33ee00261b0 (diff)
downloadbird-26d92bb8921ac4e022cdc88bde8fc7bc617f8766.tar
bird-26d92bb8921ac4e022cdc88bde8fc7bc617f8766.zip
A hack to distinguish if..else from else: in case.
The old BIRD grammar needs two lookaheads to distinguish if..else from else: in case, which caused the parser to fail on some combinations of both expressions. This patch replaces two tokens 'else' ':' by one token 'else:' to fix that.
Diffstat (limited to 'doc')
-rw-r--r--doc/bird.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml
index 7b6e97a..b5bdb93 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -837,7 +837,7 @@ prefix and prefix (returning true if first prefix is more specific than second o
<M>command_1</M>; <M>command_2</M>; <M>...</M> }</cf> instead of either command. The <cf>else</cf>
clause may be omitted. If the <cf><m>boolean expression</m></cf> is true, <cf><m>command1</m></cf> is executed, otherwise <cf><m>command2</m></cf> is executed.
-<p>The <cf>case</cf> is similar to case from Pascal. Syntax is <cf>case <m/expr/ { else |
+<p>The <cf>case</cf> is similar to case from Pascal. Syntax is <cf>case <m/expr/ { else: |
<m/num_or_prefix [ .. num_or_prefix]/: <m/statement/ ; [ ... ] }</cf>. The expression after
<cf>case</cf> can be of any type which can be on the left side of the &tilde; operator and anything that could
be a member of a set is allowed before <cf/:/. Multiple commands are allowed without <cf/{}/ grouping.