Fixed some errors that cropped up in the data section test
This commit is contained in:
parent
8b8754a12d
commit
bd25006897
@ -26,8 +26,8 @@ data ro gIntegerArrayInitialized:Int:16:
|
||||
4785
|
||||
92
|
||||
>
|
||||
data wr hIntegerPointerInit:{Int}:<[& integer]>
|
||||
data wr iMutIntegerPointerInit:{Int}:mut:<[& integer]>
|
||||
data rw hIntegerPointerInit:{Int}:<[& integer]>
|
||||
data rw iMutIntegerPointerInit:{Int}:mut:<[& integer]>
|
||||
data ro jObject:Obj:
|
||||
(
|
||||
.that:<324>
|
||||
|
@ -6,10 +6,7 @@ import "git.tebibyte.media/arf/arf/types"
|
||||
|
||||
// parseType parses a type notation of the form Name, {Name}, etc.
|
||||
func (parser *ParsingOperation) parseType () (what Type, err error) {
|
||||
println("START")
|
||||
defer println("END")
|
||||
err = parser.expect(lexer.TokenKindName, lexer.TokenKindLBrace)
|
||||
println(parser.token.Describe())
|
||||
if err != nil { return }
|
||||
what.location = parser.token.Location()
|
||||
|
||||
@ -71,6 +68,9 @@ func (parser *ParsingOperation) parseType () (what Type, err error) {
|
||||
infoerr.ErrorKindError)
|
||||
return
|
||||
}
|
||||
err = parser.nextToken()
|
||||
if err != nil { return }
|
||||
|
||||
} else if parser.token.Is(lexer.TokenKindUInt) {
|
||||
// parse fixed array length
|
||||
what.length = parser.token.Value().(uint64)
|
||||
|
@ -18,9 +18,9 @@ data ro gIntegerArrayInitialized:Int:16:<
|
||||
340 0 2304 0 4785 92
|
||||
>
|
||||
|
||||
data wr hIntegerPointerInit:{Int}:<[& integer]>
|
||||
data rw hIntegerPointerInit:{Int}:<[& integer]>
|
||||
|
||||
data wr iMutIntegerPointerInit:{Int}:mut:<[& integer]>
|
||||
data rw iMutIntegerPointerInit:{Int}:mut:<[& integer]>
|
||||
|
||||
data ro jObject:Obj:(
|
||||
.this:<324>
|
||||
|
Reference in New Issue
Block a user