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

Robin Sommer (JIRA) jira at bro-tracker.atlassian.net
Tue Feb 11 16:21:38 PST 2014

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

Robin Sommer updated BIT-67:

    Labels: language  (was: )

> 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
>              Labels: language
> 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

More information about the bro-dev mailing list