[Bro-Dev] #754: Complete implementation of switch statement
Bro Tracker
bro at tracker.bro-ids.org
Thu Dec 20 11:04:32 PST 2012
#754: Complete implementation of switch statement
---------------------+------------------------
Reporter: seth | Owner:
Type: Task | Status: new
Priority: Normal | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: | Keywords: language
---------------------+------------------------
Comment (by jsiwek):
In [939a64b73a777822b77a9a5e25171e50c105adb0/bro]:
{{{
#!CommitTicketReference repository="bro"
revision="939a64b73a777822b77a9a5e25171e50c105adb0"
Finish implementation of script-layer switch statement. Addresses #754.
They behave like C-style switches except case labels can be comprised
of multiple literal constants delimited by commas. Only atomic types
are allowed for now. Case label bodies that don't execute a "return"
or "break" statement will fall through to subsequent cases. A default
case label is allowed.
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/754#comment:2>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list