> On branch : topic/robin/dynamic-cast
> Link : https://github.com/bro/bro/commit/dabe125fe8fab80ea1f678844b872b369764fd80
I've tried branching away from topic/robin/dynamic-cast for Broker
integration, but get a compile error in parse.y:
[ 86%] [BISON][Parser] Building parser with bison 2.3
parse.y:6.9-15: syntax error, unexpected identifier, expecting string
How do I fix it?
> function check(a: any)
> local s: string = "default";
> if ( a is string )
> s = (a as string);
Are the parenthesis around the expression required? Intuitively,
operator "as" should have higher precedence.
Bro's current Broker framework has a few pretty inelegant API parts
because Bro's scripting language doesn't support some of its
operations well currently. I've put some thoughts together on
potential language extensions to improve the situation and come to a
nicer Broker framework API:
Feedback welcome, this is just a first draft.
Robin Sommer * ICSI/LBNL * robin(a)icir.org * www.icir.org/robin