Implemented parsing bit width
This commit is contained in:
parent
302ff76a8a
commit
2a1e8c5df7
@ -297,6 +297,13 @@ func (parser *ParsingOperation) parseObjectNewMember () (
|
|||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
|
|
||||||
// TODO: get bit width
|
// TODO: get bit width
|
||||||
|
if parser.token.Is(lexer.TokenKindBinaryAnd) {
|
||||||
|
err = parser.nextToken(lexer.TokenKindUInt)
|
||||||
|
if err != nil { return }
|
||||||
|
member.bitWidth = parser.token.Value().(uint64)
|
||||||
|
err = parser.nextToken()
|
||||||
|
if err != nil { return }
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ type ro dInitInherit:aBasic:(
|
|||||||
.that:<9384>
|
.that:<9384>
|
||||||
.this:<389>)
|
.this:<389>)
|
||||||
|
|
||||||
type ro cInitAndDefine:aBasic:(
|
type ro eInitAndDefine:aBasic:(
|
||||||
.this:<389>
|
.this:<389>
|
||||||
.ro these:aBasic:(
|
.ro these:aBasic:(
|
||||||
.ro born:Int:<4>
|
.ro born:Int:<4>
|
||||||
|
Reference in New Issue
Block a user