From 26d92bb8921ac4e022cdc88bde8fc7bc617f8766 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 23 Mar 2011 12:49:53 +0100 Subject: 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. --- doc/bird.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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 command_1; command_2; ... } instead of either command. The else clause may be omitted. If the boolean expression is true, command1 is executed, otherwise command2 is executed. -

The case is similar to case from Pascal. Syntax is case The case is similar to case from Pascal. Syntax is case . The expression after case can be of any type which can be on the left side of the ˜ operator and anything that could be a member of a set is allowed before