Commit 97dd8ad0 authored by Robert Bradshaw's avatar Robert Bradshaw

More grammar type cleanup.

parent e76ca4a6
......@@ -148,11 +148,10 @@ yield_expr: 'yield' [testlist]
signedness: 'unsigned' | 'signed'
longness: 'char' | 'short' | 'long' | 'long' 'long'
int_type: signedness [longness] | longness | [signedness] [longness] ['int' | 'double'] | 'complex' # | ['long'] 'double'
complex_int_type: int_type ['complex'] [type_qualifiers]
int_type: signedness [longness] | longness | [signedness] [longness] ('int' | 'double') | 'complex' # TODO: [unsigned] double doesn't make sens, but we need long double
type: ['const'] (NAME ('.' NAME)* | complex_int_type)
maybe_typed_name: ['const'] (NAME [('.' NAME)* ['complex'] [type_qualifiers] NAME] | complex_int_type NAME)
type: ['const'] (NAME ('.' NAME)* | int_type) ['complex'] [type_qualifiers]
maybe_typed_name: ['const'] (NAME [('.' NAME)* ['complex'] [type_qualifiers] NAME] | int_type ['complex'] [type_qualifiers] NAME)
teplate_params: '[' NAME (',' NAME)* ']'
type_qualifiers: type_qualifier+
type_qualifier: '*' | '**' | '&' | type_index
......
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