[Bro-Dev] [JIRA] (BIT-67) Grammar ambiguity with "local" for introducing "when" variables

Seth Hall (JIRA) jira at bro-tracker.atlassian.net
Sun Feb 9 21:52:37 PST 2014


     [ https://bro-tracker.atlassian.net/browse/BIT-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Seth Hall updated BIT-67:
-------------------------

    Assignee: Robin Sommer

> Grammar ambiguity with "local" for introducing "when" variables
> ---------------------------------------------------------------
>
>                 Key: BIT-67
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-67
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>            Reporter: Vern Paxson
>            Assignee: Robin Sommer
>
> Currently there are two ways in the grammar to parse "local", one as a variable declaration (including a type, initialization, and attributes), and the other as an expression (no type or attributes, just essentially an initialization).  I believe we added this second to support introducing variables to hold the delayed values resulting from "when" expressions.  However, this leads to parsing ambiguities and in particular the inability to associate attributes with "local" declarations.  (One such attribute we need is &raw_output.)  So we instead need to use a different keyword for "when" values.



--
This message was sent by Atlassian JIRA
(v6.2-OD-09-036#6252)


More information about the bro-dev mailing list