Commit 9ad1a498 authored by Sergio Costas's avatar Sergio Costas

Now supports __asm; also added designator_lists

parent 7ab38f93
......@@ -114,6 +114,7 @@ void find_close_parentheses(int);
"__inline" { count(); }
"__attribute__"{WS}*"(" { find_close_parentheses(1); count(); }
"__asm__"({WS}+[a-zA-Z_]+)*{WS}*"(" { find_close_parentheses(1); count(); }
"__asm"({WS}+[a-zA-Z_]+)*{WS}*"(" { find_close_parentheses(1); count(); }
"asm"({WS}+[a-zA-Z_]+)*{WS}*"(" { find_close_parentheses(1); count(); }
"__alignof__(" { find_close_parentheses(1); count(); return prepare_leaf(1,0.0,CONSTANT); }
"__crust__" { return prepare_leaf(0,0.0,CRUST_T); }
......
......@@ -804,7 +804,8 @@ designation
designator_list
: designator { $$ = $1;show_debug(__LINE__, $$, "designator_list"); }
| designator_list designator { $$ = $1; show_error(__LINE__, $$); }
| designator_list designator { $$ = $1; show_debug(__LINE__, $$, "designator_list");
append_right($$, $2); }
;
designator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment