From 5110ff445ddb5a09a13e17b187c06d2dc3a7d52a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Mar 2018 11:49:19 +0100 Subject: pkg/compiler: switch attributes from Ident to Type This allows parametrized attributes like size[10]. But this is not used for now. --- pkg/ast/testdata/all.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/ast/testdata') diff --git a/pkg/ast/testdata/all.txt b/pkg/ast/testdata/all.txt index ede11a88a..7e1db7309 100644 --- a/pkg/ast/testdata/all.txt +++ b/pkg/ast/testdata/all.txt @@ -46,6 +46,10 @@ s2 { } +s3 { + f1 int8 +} [attribute[1, "foo"], another[and[another]]] + type mybool8 int8 type net_port proc[1, 2, int16be] type mybool16 ### unexpected '\n', expecting '[', identifier -- cgit mrf-deployment