Implemented parsing bit width

This commit is contained in:
Sasha Koshka 2022-09-16 22:48:24 -04:00
parent 302ff76a8a
commit 2a1e8c5df7
2 changed files with 8 additions and 1 deletions

View File

@ -297,6 +297,13 @@ func (parser *ParsingOperation) parseObjectNewMember () (
if err != nil { return }
// 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
}

View File

@ -16,7 +16,7 @@ type ro dInitInherit:aBasic:(
.that:<9384>
.this:<389>)
type ro cInitAndDefine:aBasic:(
type ro eInitAndDefine:aBasic:(
.this:<389>
.ro these:aBasic:(
.ro born:Int:<4>