trafgen: lexer/parser: fix cpu() selection and whitespacing
commitf9591eebe40c9d898483c83c6d4d23d553ec43fc
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 25 Mar 2013 19:21:15 +0000 (25 20:21 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Mon, 25 Mar 2013 19:21:15 +0000 (25 20:21 +0100)
tree250a0d19c678bd9fed9c09402673a6102dde36c9
parent08c2dc1fcb403519a86a1129ad27c3188294e18f
trafgen: lexer/parser: fix cpu() selection and whitespacing

It looks unintuitive when once needs to write cpu(0:3), so also allow
cpu(0-3). Then it's quite stupid to enforce whitespace after the double
colon before the curley braces open. So make this rather optional here.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen_lexer.l
trafgen_parser.y