- Timestamp:
- Aug 30, 2014, 10:53:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
proto/s2k/trunk/framework/input/grammar/scatter/b2k.scatter
r4064 r4114 46 46 VOID, 47 47 BOOL, 48 BITFIELD "BitField",48 //BITFIELD "BitField", 49 49 BITBLOCK "BitBlock", 50 50 //CODEBLOCK, … … 82 82 interfaces { 83 83 intValued {int value = 0;}, 84 hasFieldWidth {int fieldWidth = 1;}, 84 85 } 85 86 … … 90 91 funcCall {} [funcCallRest], 91 92 idisaFuncCall {} [idisaFuncCallRest], 93 bitBlockType {hasFieldWidth;} [], 92 94 integerConstant {intValued;} [fieldWidthSpecifier], // codeBlockWidthSpecifier ], 93 95 // primitiveType {} [intType voidType boolType bitBlockType], // KH: update S2B … … 211 213 // 212 214 type #-> primitiveType | 213 bitFieldType |215 // bitFieldType | 214 216 structType | 215 217 kernelType ; … … 220 222 voidType -> VOID ; // { @type = {{PrimitiveType.VOID}}; } ; // KH: ? 221 223 boolType -> BOOL ; // { @type = {{PrimitiveType.BOOL}}; } ; 222 bitBlockType -> BITBLOCK ; // { @type = {{PrimitiveType.BITBLOCK}}; } ; 223 224 bitFieldType -> BITFIELD fieldWidthSpecifier! 225 { @fieldWidth = @:value; 226 // @type = {{ new BitFieldType(%?) }} , @fieldWidth ; 227 } ; 224 bitBlockType -> BITBLOCK fieldWidthSpecifier! { @fieldWidth = @:value; 225 //@fieldWidth ; // KH ? 226 } ; 227 228 // bitFieldType -> BITFIELD fieldWidthSpecifier! 229 // { @fieldWidth = @:value; 230 // // @type = {{ new BitFieldType(%?) }} , @fieldWidth ; 231 // } ; 228 232 229 233 fieldWidthSpecifier #-> (LANGLE integerConstant RANGLE ) 230 234 | (epsilon {@value = 1;}) ; 231 235 232 236 structType -> STRUCT identifier ; 233 237 kernelType -> KERNEL identifier ;
Note: See TracChangeset
for help on using the changeset viewer.