2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 0
|
|
|
|
$accept: .specification $end
|
|
|
|
|
|
|
|
CONST shift 11
|
|
|
|
ENUM shift 10
|
|
|
|
STRUCT shift 13
|
|
|
|
TYPEDEF shift 12
|
|
|
|
UNION shift 14
|
|
|
|
PROGRAM shift 15
|
|
|
|
. error
|
|
|
|
|
|
|
|
specification goto 1
|
|
|
|
definition_list goto 2
|
|
|
|
definition goto 3
|
|
|
|
enum_definition goto 4
|
|
|
|
const_definition goto 5
|
|
|
|
typedef_definition goto 6
|
|
|
|
struct_definition goto 7
|
|
|
|
union_definition goto 8
|
|
|
|
program_definition goto 9
|
|
|
|
|
|
|
|
state 1
|
|
|
|
$accept: specification.$end
|
|
|
|
|
|
|
|
$end accept
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 2
|
|
|
|
specification: definition_list. (1)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 1 (src line 63)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 3
|
|
|
|
definition_list: definition.';'
|
|
|
|
definition_list: definition.';' definition_list
|
|
|
|
|
|
|
|
';' shift 16
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 4
|
|
|
|
definition: enum_definition. (6)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 6 (src line 77)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 5
|
|
|
|
definition: const_definition. (7)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 7 (src line 79)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 6
|
|
|
|
definition: typedef_definition. (8)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 8 (src line 80)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 7
|
|
|
|
definition: struct_definition. (9)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 9 (src line 81)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 8
|
|
|
|
definition: union_definition. (10)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 10 (src line 82)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 9
|
|
|
|
definition: program_definition. (11)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 11 (src line 83)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 10
|
|
|
|
enum_definition: ENUM.enum_ident '{' enum_value_list '}'
|
|
|
|
|
|
|
|
IDENTIFIER shift 18
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_ident goto 17
|
|
|
|
|
|
|
|
state 11
|
|
|
|
const_definition: CONST.const_ident '=' IDENTIFIER
|
|
|
|
const_definition: CONST.const_ident '=' CONSTANT
|
|
|
|
|
|
|
|
IDENTIFIER shift 20
|
|
|
|
. error
|
|
|
|
|
|
|
|
const_ident goto 19
|
|
|
|
|
|
|
|
state 12
|
2018-02-25 23:51:13 +03:00
|
|
|
typedef_definition: TYPEDEF.$$23 declaration
|
|
|
|
$$23: . (23)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 23 (src line 145)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
$$23 goto 21
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 13
|
2018-02-25 23:51:13 +03:00
|
|
|
struct_definition: STRUCT.struct_ident '{' $$50 declaration_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
IDENTIFIER shift 23
|
|
|
|
. error
|
|
|
|
|
|
|
|
struct_ident goto 22
|
|
|
|
|
|
|
|
state 14
|
2018-02-25 23:51:13 +03:00
|
|
|
union_definition: UNION.union_ident $$55 SWITCH '(' simple_declaration ')' '{' case_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
IDENTIFIER shift 25
|
|
|
|
. error
|
|
|
|
|
|
|
|
union_ident goto 24
|
|
|
|
|
|
|
|
state 15
|
|
|
|
program_definition: PROGRAM.program_ident '{' version_list '}' '=' value
|
|
|
|
|
|
|
|
IDENTIFIER shift 27
|
|
|
|
. error
|
|
|
|
|
|
|
|
program_ident goto 26
|
|
|
|
|
|
|
|
state 16
|
|
|
|
definition_list: definition ';'. (4)
|
|
|
|
definition_list: definition ';'.definition_list
|
|
|
|
|
|
|
|
CONST shift 11
|
|
|
|
ENUM shift 10
|
|
|
|
STRUCT shift 13
|
|
|
|
TYPEDEF shift 12
|
|
|
|
UNION shift 14
|
|
|
|
PROGRAM shift 15
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 4 (src line 72)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
definition_list goto 28
|
|
|
|
definition goto 3
|
|
|
|
enum_definition goto 4
|
|
|
|
const_definition goto 5
|
|
|
|
typedef_definition goto 6
|
|
|
|
struct_definition goto 7
|
|
|
|
union_definition goto 8
|
|
|
|
program_definition goto 9
|
|
|
|
|
|
|
|
state 17
|
|
|
|
enum_definition: ENUM enum_ident.'{' enum_value_list '}'
|
|
|
|
|
|
|
|
'{' shift 29
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 18
|
2018-02-25 23:51:13 +03:00
|
|
|
enum_ident: IDENTIFIER. (18)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 18 (src line 119)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 19
|
|
|
|
const_definition: CONST const_ident.'=' IDENTIFIER
|
|
|
|
const_definition: CONST const_ident.'=' CONSTANT
|
|
|
|
|
|
|
|
'=' shift 30
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 20
|
2018-02-25 23:51:13 +03:00
|
|
|
const_ident: IDENTIFIER. (22)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 22 (src line 141)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 21
|
2018-02-25 23:51:13 +03:00
|
|
|
typedef_definition: TYPEDEF $$23.declaration
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
|
|
|
declaration goto 31
|
|
|
|
simple_declaration goto 32
|
|
|
|
fixed_array_declaration goto 33
|
|
|
|
variable_array_declaration goto 34
|
|
|
|
pointer_declaration goto 35
|
|
|
|
type_specifier goto 36
|
|
|
|
int_spec goto 37
|
|
|
|
|
|
|
|
state 22
|
2018-02-25 23:51:13 +03:00
|
|
|
struct_definition: STRUCT struct_ident.'{' $$50 declaration_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
'{' shift 52
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 23
|
2018-02-25 23:51:13 +03:00
|
|
|
struct_ident: IDENTIFIER. (52)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 52 (src line 206)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 24
|
2018-02-25 23:51:13 +03:00
|
|
|
union_definition: UNION union_ident.$$55 SWITCH '(' simple_declaration ')' '{' case_list '}'
|
|
|
|
$$55: . (55)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 55 (src line 215)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
$$55 goto 53
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 25
|
2018-02-25 23:51:13 +03:00
|
|
|
union_ident: IDENTIFIER. (57)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 57 (src line 219)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 26
|
|
|
|
program_definition: PROGRAM program_ident.'{' version_list '}' '=' value
|
|
|
|
|
|
|
|
'{' shift 54
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 27
|
2018-02-25 23:51:13 +03:00
|
|
|
program_ident: IDENTIFIER. (65)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 65 (src line 237)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 28
|
|
|
|
definition_list: definition ';' definition_list. (5)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 5 (src line 74)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 29
|
|
|
|
enum_definition: ENUM enum_ident '{'.enum_value_list '}'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 59
|
|
|
|
METADATACOMMENT shift 58
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
enum_value_list goto 55
|
|
|
|
enum_value goto 56
|
|
|
|
enum_value_ident goto 57
|
|
|
|
|
|
|
|
state 30
|
|
|
|
const_definition: CONST const_ident '='.IDENTIFIER
|
|
|
|
const_definition: CONST const_ident '='.CONSTANT
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 60
|
|
|
|
CONSTANT shift 61
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 31
|
2018-02-25 23:51:13 +03:00
|
|
|
typedef_definition: TYPEDEF $$23 declaration. (24)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 24 (src line 146)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 32
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration: simple_declaration. (25)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 25 (src line 149)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 33
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration: fixed_array_declaration. (26)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 26 (src line 151)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 34
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration: variable_array_declaration. (27)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 27 (src line 152)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 35
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration: pointer_declaration. (28)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 28 (src line 153)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 36
|
|
|
|
simple_declaration: type_specifier.variable_ident
|
|
|
|
fixed_array_declaration: type_specifier.variable_ident '[' value ']'
|
|
|
|
variable_array_declaration: type_specifier.variable_ident '<' value '>'
|
|
|
|
variable_array_declaration: type_specifier.variable_ident '<' '>'
|
|
|
|
pointer_declaration: type_specifier.'*' variable_ident
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 64
|
|
|
|
'*' shift 63
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
variable_ident goto 62
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 37
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: int_spec. (30)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 30 (src line 160)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 38
|
|
|
|
type_specifier: UNSIGNED.int_spec
|
|
|
|
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
int_spec goto 65
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 39
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: FLOAT. (32)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 32 (src line 163)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 40
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: DOUBLE. (33)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 33 (src line 164)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 41
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: BOOL. (34)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 34 (src line 165)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 42
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: STRING. (35)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 35 (src line 166)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 43
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: OPAQUE. (36)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 36 (src line 167)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 44
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: enum_definition. (37)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 37 (src line 168)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 45
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: struct_definition. (38)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 38 (src line 169)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 46
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: union_definition. (39)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 39 (src line 170)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 47
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier: IDENTIFIER. (40)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 40 (src line 171)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 48
|
2018-02-25 23:51:13 +03:00
|
|
|
int_spec: HYPER. (41)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 41 (src line 174)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 49
|
2018-02-25 23:51:13 +03:00
|
|
|
int_spec: INT. (42)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 42 (src line 176)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 50
|
2018-02-25 23:51:13 +03:00
|
|
|
int_spec: SHORT. (43)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 43 (src line 177)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 51
|
2018-02-25 23:51:13 +03:00
|
|
|
int_spec: CHAR. (44)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 44 (src line 178)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 52
|
2018-02-25 23:51:13 +03:00
|
|
|
struct_definition: STRUCT struct_ident '{'.$$50 declaration_list '}'
|
|
|
|
$$50: . (50)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 50 (src line 202)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
$$50 goto 66
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 53
|
2018-02-25 23:51:13 +03:00
|
|
|
union_definition: UNION union_ident $$55.SWITCH '(' simple_declaration ')' '{' case_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
SWITCH shift 67
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 54
|
|
|
|
program_definition: PROGRAM program_ident '{'.version_list '}' '=' value
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
VERSION shift 70
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
version_list goto 68
|
|
|
|
version goto 69
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 55
|
|
|
|
enum_definition: ENUM enum_ident '{' enum_value_list.'}'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'}' shift 71
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 56
|
|
|
|
enum_value_list: enum_value. (13)
|
|
|
|
enum_value_list: enum_value.',' enum_value_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
',' shift 72
|
|
|
|
. reduce 13 (src line 90)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 57
|
|
|
|
enum_value: enum_value_ident. (15)
|
|
|
|
enum_value: enum_value_ident.'=' value
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'=' shift 73
|
|
|
|
. reduce 15 (src line 95)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 58
|
2018-02-25 23:51:13 +03:00
|
|
|
enum_value: METADATACOMMENT.enum_value_ident '=' value
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 59
|
|
|
|
. error
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
enum_value_ident goto 74
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
state 59
|
2018-02-25 23:51:13 +03:00
|
|
|
enum_value_ident: IDENTIFIER. (19)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 19 (src line 123)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 60
|
2018-02-25 23:51:13 +03:00
|
|
|
const_definition: CONST const_ident '=' IDENTIFIER. (20)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 20 (src line 130)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
state 61
|
2018-02-25 23:51:13 +03:00
|
|
|
const_definition: CONST const_ident '=' CONSTANT. (21)
|
|
|
|
|
|
|
|
. reduce 21 (src line 132)
|
|
|
|
|
|
|
|
|
|
|
|
state 62
|
|
|
|
simple_declaration: type_specifier variable_ident. (29)
|
2017-11-16 23:56:36 +03:00
|
|
|
fixed_array_declaration: type_specifier variable_ident.'[' value ']'
|
|
|
|
variable_array_declaration: type_specifier variable_ident.'<' value '>'
|
|
|
|
variable_array_declaration: type_specifier variable_ident.'<' '>'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'[' shift 75
|
|
|
|
'<' shift 76
|
|
|
|
. reduce 29 (src line 156)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 63
|
2017-11-16 23:56:36 +03:00
|
|
|
pointer_declaration: type_specifier '*'.variable_ident
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 64
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
variable_ident goto 77
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 64
|
|
|
|
variable_ident: IDENTIFIER. (45)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 45 (src line 181)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 65
|
|
|
|
type_specifier: UNSIGNED int_spec. (31)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 31 (src line 162)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 66
|
|
|
|
struct_definition: STRUCT struct_ident '{' $$50.declaration_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration goto 79
|
2017-11-16 23:56:36 +03:00
|
|
|
simple_declaration goto 32
|
|
|
|
fixed_array_declaration goto 33
|
|
|
|
variable_array_declaration goto 34
|
|
|
|
pointer_declaration goto 35
|
|
|
|
type_specifier goto 36
|
|
|
|
int_spec goto 37
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration_list goto 78
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 67
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH.'(' simple_declaration ')' '{' case_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'(' shift 80
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 68
|
2017-11-16 23:56:36 +03:00
|
|
|
program_definition: PROGRAM program_ident '{' version_list.'}' '=' value
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'}' shift 81
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 69
|
2017-11-16 23:56:36 +03:00
|
|
|
version_list: version.';'
|
|
|
|
version_list: version.';' version_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
';' shift 82
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 70
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION.version_ident '{' procedure_list '}' '=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 84
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
version_ident goto 83
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 71
|
2017-11-16 23:56:36 +03:00
|
|
|
enum_definition: ENUM enum_ident '{' enum_value_list '}'. (12)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 12 (src line 86)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 72
|
2017-11-16 23:56:36 +03:00
|
|
|
enum_value_list: enum_value ','.enum_value_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 59
|
|
|
|
METADATACOMMENT shift 58
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
enum_value_list goto 85
|
2017-11-16 23:56:36 +03:00
|
|
|
enum_value goto 56
|
|
|
|
enum_value_ident goto 57
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 73
|
2017-11-16 23:56:36 +03:00
|
|
|
enum_value: enum_value_ident '='.value
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 86
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 74
|
|
|
|
enum_value: METADATACOMMENT enum_value_ident.'=' value
|
|
|
|
|
|
|
|
'=' shift 89
|
|
|
|
. error
|
|
|
|
|
|
|
|
|
|
|
|
state 75
|
2017-11-16 23:56:36 +03:00
|
|
|
fixed_array_declaration: type_specifier variable_ident '['.value ']'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 90
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 76
|
2017-11-16 23:56:36 +03:00
|
|
|
variable_array_declaration: type_specifier variable_ident '<'.value '>'
|
|
|
|
variable_array_declaration: type_specifier variable_ident '<'.'>'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
|
|
|
'>' shift 92
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 91
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 77
|
|
|
|
pointer_declaration: type_specifier '*' variable_ident. (49)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 49 (src line 198)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 78
|
|
|
|
struct_definition: STRUCT struct_ident '{' $$50 declaration_list.'}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'}' shift 93
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 79
|
2017-11-16 23:56:36 +03:00
|
|
|
declaration_list: declaration.';'
|
|
|
|
declaration_list: declaration.';' declaration_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
';' shift 94
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 80
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH '('.simple_declaration ')' '{' case_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
simple_declaration goto 95
|
|
|
|
type_specifier goto 96
|
2017-11-16 23:56:36 +03:00
|
|
|
int_spec goto 37
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 81
|
2017-11-16 23:56:36 +03:00
|
|
|
program_definition: PROGRAM program_ident '{' version_list '}'.'=' value
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'=' shift 97
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 82
|
|
|
|
version_list: version ';'. (66)
|
2017-11-16 23:56:36 +03:00
|
|
|
version_list: version ';'.version_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
VERSION shift 70
|
|
|
|
. reduce 66 (src line 241)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
version_list goto 98
|
|
|
|
version goto 69
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 83
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION version_ident.'{' procedure_list '}' '=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'{' shift 99
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 84
|
|
|
|
version_ident: IDENTIFIER. (69)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 69 (src line 250)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 85
|
2017-11-16 23:56:36 +03:00
|
|
|
enum_value_list: enum_value ',' enum_value_list. (14)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 14 (src line 92)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 86
|
|
|
|
enum_value: enum_value_ident '=' value. (17)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 17 (src line 110)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 87
|
2017-11-16 23:56:36 +03:00
|
|
|
value: IDENTIFIER. (2)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 2 (src line 67)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 88
|
2017-11-16 23:56:36 +03:00
|
|
|
value: CONSTANT. (3)
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 3 (src line 69)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 89
|
|
|
|
enum_value: METADATACOMMENT enum_value_ident '='.value
|
|
|
|
|
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
|
|
|
. error
|
|
|
|
|
|
|
|
value goto 100
|
|
|
|
|
|
|
|
state 90
|
2017-11-16 23:56:36 +03:00
|
|
|
fixed_array_declaration: type_specifier variable_ident '[' value.']'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
']' shift 101
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 91
|
2017-11-16 23:56:36 +03:00
|
|
|
variable_array_declaration: type_specifier variable_ident '<' value.'>'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'>' shift 102
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 92
|
|
|
|
variable_array_declaration: type_specifier variable_ident '<' '>'. (48)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 48 (src line 191)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 93
|
|
|
|
struct_definition: STRUCT struct_ident '{' $$50 declaration_list '}'. (51)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 51 (src line 203)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 94
|
|
|
|
declaration_list: declaration ';'. (53)
|
2017-11-16 23:56:36 +03:00
|
|
|
declaration_list: declaration ';'.declaration_list
|
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 53 (src line 210)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration goto 79
|
2017-11-16 23:56:36 +03:00
|
|
|
simple_declaration goto 32
|
|
|
|
fixed_array_declaration goto 33
|
|
|
|
variable_array_declaration goto 34
|
|
|
|
pointer_declaration goto 35
|
|
|
|
type_specifier goto 36
|
|
|
|
int_spec goto 37
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration_list goto 103
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 95
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH '(' simple_declaration.')' '{' case_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
')' shift 104
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 96
|
2017-11-16 23:56:36 +03:00
|
|
|
simple_declaration: type_specifier.variable_ident
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 64
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
variable_ident goto 105
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 97
|
2017-11-16 23:56:36 +03:00
|
|
|
program_definition: PROGRAM program_ident '{' version_list '}' '='.value
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 106
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 98
|
|
|
|
version_list: version ';' version_list. (67)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 67 (src line 243)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 99
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION version_ident '{'.procedure_list '}' '=' value ';'
|
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier goto 109
|
2017-11-16 23:56:36 +03:00
|
|
|
int_spec goto 37
|
2018-02-25 23:51:13 +03:00
|
|
|
procedure_list goto 107
|
|
|
|
procedure goto 108
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 100
|
|
|
|
enum_value: METADATACOMMENT enum_value_ident '=' value. (16)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 16 (src line 103)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 101
|
|
|
|
fixed_array_declaration: type_specifier variable_ident '[' value ']'. (46)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 46 (src line 185)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 102
|
|
|
|
variable_array_declaration: type_specifier variable_ident '<' value '>'. (47)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 47 (src line 189)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 103
|
|
|
|
declaration_list: declaration ';' declaration_list. (54)
|
|
|
|
|
|
|
|
. reduce 54 (src line 212)
|
|
|
|
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 104
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH '(' simple_declaration ')'.'{' case_list '}'
|
|
|
|
|
|
|
|
'{' shift 110
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 105
|
|
|
|
simple_declaration: type_specifier variable_ident. (29)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 29 (src line 156)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 106
|
|
|
|
program_definition: PROGRAM program_ident '{' version_list '}' '=' value. (64)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 64 (src line 233)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 107
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION version_ident '{' procedure_list.'}' '=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'}' shift 111
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 108
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure_list: procedure.';'
|
|
|
|
procedure_list: procedure.';' procedure_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
';' shift 112
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 109
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier.procedure_ident '(' type_specifier ')' '=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 114
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
procedure_ident goto 113
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 110
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH '(' simple_declaration ')' '{'.case_list '}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
CASE shift 117
|
|
|
|
DEFAULT shift 118
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
case_list goto 115
|
|
|
|
case goto 116
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 111
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION version_ident '{' procedure_list '}'.'=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'=' shift 119
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 112
|
|
|
|
procedure_list: procedure ';'. (70)
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure_list: procedure ';'.procedure_list
|
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 70 (src line 254)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier goto 109
|
2017-11-16 23:56:36 +03:00
|
|
|
int_spec goto 37
|
2018-02-25 23:51:13 +03:00
|
|
|
procedure_list goto 120
|
|
|
|
procedure goto 108
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 113
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier procedure_ident.'(' type_specifier ')' '=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'(' shift 121
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 114
|
|
|
|
procedure_ident: IDENTIFIER. (73)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 73 (src line 263)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 115
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH '(' simple_declaration ')' '{' case_list.'}'
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'}' shift 122
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 116
|
2017-11-16 23:56:36 +03:00
|
|
|
case_list: case.';'
|
|
|
|
case_list: case.';' case_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
';' shift 123
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 117
|
|
|
|
case: CASE.value $$60 ':' declaration
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 124
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 118
|
|
|
|
case: DEFAULT.$$62 ':' declaration
|
|
|
|
$$62: . (62)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 62 (src line 230)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
$$62 goto 125
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 119
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION version_ident '{' procedure_list '}' '='.value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 126
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 120
|
|
|
|
procedure_list: procedure ';' procedure_list. (71)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 71 (src line 256)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 121
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier procedure_ident '('.type_specifier ')' '=' value ';'
|
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
type_specifier goto 127
|
2017-11-16 23:56:36 +03:00
|
|
|
int_spec goto 37
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 122
|
|
|
|
union_definition: UNION union_ident $$55 SWITCH '(' simple_declaration ')' '{' case_list '}'. (56)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 56 (src line 216)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 123
|
|
|
|
case_list: case ';'. (58)
|
2017-11-16 23:56:36 +03:00
|
|
|
case_list: case ';'.case_list
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
CASE shift 117
|
|
|
|
DEFAULT shift 118
|
|
|
|
. reduce 58 (src line 223)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
case_list goto 128
|
|
|
|
case goto 116
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 124
|
|
|
|
case: CASE value.$$60 ':' declaration
|
|
|
|
$$60: . (60)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 60 (src line 228)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
$$60 goto 129
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 125
|
|
|
|
case: DEFAULT $$62.':' declaration
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
':' shift 130
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 126
|
2017-11-16 23:56:36 +03:00
|
|
|
version: VERSION version_ident '{' procedure_list '}' '=' value.';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
';' shift 131
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 127
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier procedure_ident '(' type_specifier.')' '=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
')' shift 132
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 128
|
|
|
|
case_list: case ';' case_list. (59)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 59 (src line 225)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 129
|
|
|
|
case: CASE value $$60.':' declaration
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
':' shift 133
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 130
|
|
|
|
case: DEFAULT $$62 ':'.declaration
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration goto 134
|
2017-11-16 23:56:36 +03:00
|
|
|
simple_declaration goto 32
|
|
|
|
fixed_array_declaration goto 33
|
|
|
|
variable_array_declaration goto 34
|
|
|
|
pointer_declaration goto 35
|
|
|
|
type_specifier goto 36
|
|
|
|
int_spec goto 37
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 131
|
|
|
|
version: VERSION version_ident '{' procedure_list '}' '=' value ';'. (68)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 68 (src line 246)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 132
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier procedure_ident '(' type_specifier ')'.'=' value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
'=' shift 135
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 133
|
|
|
|
case: CASE value $$60 ':'.declaration
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
BOOL shift 41
|
|
|
|
DOUBLE shift 40
|
|
|
|
ENUM shift 10
|
|
|
|
FLOAT shift 39
|
|
|
|
OPAQUE shift 43
|
|
|
|
STRING shift 42
|
|
|
|
STRUCT shift 13
|
|
|
|
UNION shift 14
|
|
|
|
UNSIGNED shift 38
|
|
|
|
HYPER shift 48
|
|
|
|
INT shift 49
|
|
|
|
SHORT shift 50
|
|
|
|
CHAR shift 51
|
|
|
|
IDENTIFIER shift 47
|
|
|
|
. error
|
|
|
|
|
|
|
|
enum_definition goto 44
|
|
|
|
struct_definition goto 45
|
|
|
|
union_definition goto 46
|
2018-02-25 23:51:13 +03:00
|
|
|
declaration goto 136
|
2017-11-16 23:56:36 +03:00
|
|
|
simple_declaration goto 32
|
|
|
|
fixed_array_declaration goto 33
|
|
|
|
variable_array_declaration goto 34
|
|
|
|
pointer_declaration goto 35
|
|
|
|
type_specifier goto 36
|
|
|
|
int_spec goto 37
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 134
|
|
|
|
case: DEFAULT $$62 ':' declaration. (63)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 63 (src line 230)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 135
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier procedure_ident '(' type_specifier ')' '='.value ';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
IDENTIFIER shift 87
|
|
|
|
CONSTANT shift 88
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
value goto 137
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 136
|
|
|
|
case: CASE value $$60 ':' declaration. (61)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 61 (src line 229)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 137
|
2017-11-16 23:56:36 +03:00
|
|
|
procedure: type_specifier procedure_ident '(' type_specifier ')' '=' value.';'
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
';' shift 138
|
2017-11-16 23:56:36 +03:00
|
|
|
. error
|
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
state 138
|
|
|
|
procedure: type_specifier procedure_ident '(' type_specifier ')' '=' value ';'. (72)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
. reduce 72 (src line 259)
|
2017-11-16 23:56:36 +03:00
|
|
|
|
|
|
|
|
2018-02-25 23:51:13 +03:00
|
|
|
41 terminals, 41 nonterminals
|
|
|
|
74 grammar rules, 139/8000 states
|
2017-11-16 23:56:36 +03:00
|
|
|
0 shift/reduce, 0 reduce/reduce conflicts reported
|
|
|
|
90 working sets used
|
2018-02-25 23:51:13 +03:00
|
|
|
memory: parser 157/120000
|
2017-11-16 23:56:36 +03:00
|
|
|
40 extra closures
|
2018-02-25 23:51:13 +03:00
|
|
|
218 shift entries, 1 exceptions
|
|
|
|
71 goto entries
|
2017-11-16 23:56:36 +03:00
|
|
|
62 entries saved by goto default
|
2018-02-25 23:51:13 +03:00
|
|
|
Optimizer space used: output 153/120000
|
|
|
|
153 table entries, 0 zero
|
|
|
|
maximum spread: 41, maximum offset: 135
|