Compare commits
No commits in common. "89a60e620e4cef719ea143890b083081d4afb720" and "067bf2f4df8ceb28ae094ad7e7850b53c50a8ed7" have entirely different histories.
89a60e620e
...
067bf2f4df
@ -13,7 +13,10 @@ func (parser *ParsingOperation) parseObjtSection () (
|
|||||||
err = parser.expect(lexer.TokenKindName)
|
err = parser.expect(lexer.TokenKindName)
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
|
|
||||||
section = &ObjtSection { location: parser.token.Location() }
|
section = &ObjtSection {
|
||||||
|
location: parser.token.Location(),
|
||||||
|
members: make(map[string] ObjtMember),
|
||||||
|
}
|
||||||
|
|
||||||
// get permission
|
// get permission
|
||||||
err = parser.nextToken(lexer.TokenKindPermission)
|
err = parser.nextToken(lexer.TokenKindPermission)
|
||||||
@ -65,7 +68,7 @@ func (parser *ParsingOperation) parseObjtMembers (
|
|||||||
// add member to object section
|
// add member to object section
|
||||||
var member ObjtMember
|
var member ObjtMember
|
||||||
member, err = parser.parseObjtMember()
|
member, err = parser.parseObjtMember()
|
||||||
into.members = append(into.members, member)
|
into.members[member.name] = member
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,17 +13,17 @@ objt ro BitFields:Obj
|
|||||||
ro that:Int & 1
|
ro that:Int & 1
|
||||||
ro this:Int & 24 298
|
ro this:Int & 24 298
|
||||||
objt ro ComplexInit:Obj
|
objt ro ComplexInit:Obj
|
||||||
ro whatever:{Int 3}
|
ro basic:Int 87
|
||||||
230984
|
|
||||||
849
|
|
||||||
394580
|
|
||||||
ro complex0:Bird
|
ro complex0:Bird
|
||||||
.that 98
|
.that 98
|
||||||
.this 2
|
.this 2
|
||||||
ro complex1:Bird
|
ro complex1:Bird
|
||||||
.that 98902
|
.that 98902
|
||||||
.this 235
|
.this 235
|
||||||
ro basic:Int 87
|
ro whatever:{Int 3}
|
||||||
|
230984
|
||||||
|
849
|
||||||
|
394580
|
||||||
objt ro Init:Obj
|
objt ro Init:Obj
|
||||||
ro that:String "hello world"
|
ro that:String "hello world"
|
||||||
ro this:Int 23
|
ro this:Int 23
|
||||||
|
Reference in New Issue
Block a user