Compare commits
No commits in common. "c847d2187dfa12436c977ed5b24573cc70f71ca7" and "790e7e632e9aa4967cca476593d3aecbb1376b11" have entirely different histories.
c847d2187d
...
790e7e632e
@ -29,15 +29,6 @@ func (parser *ParsingOperation) parseBody () (err error) {
|
||||
}
|
||||
parser.tree.typeSections[section.name] = section
|
||||
if err != nil { return }
|
||||
case "objt":
|
||||
var section *ObjtSection
|
||||
section, err = parser.parseObjtSection()
|
||||
if parser.tree.typeSections == nil {
|
||||
parser.tree.typeSections =
|
||||
make(map[string] *TypeSection)
|
||||
}
|
||||
parser.tree.objtSections[section.name] = section
|
||||
if err != nil { return }
|
||||
case "face":
|
||||
case "enum":
|
||||
case "func":
|
||||
|
@ -123,7 +123,7 @@ type ro IntArrayInit:{Int 3}
|
||||
`, test)
|
||||
}
|
||||
|
||||
func TestObjt (test *testing.T) {
|
||||
func TestType (test *testing.T) {
|
||||
checkTree ("../tests/parser/objt",
|
||||
`:arf
|
||||
---
|
||||
@ -144,7 +144,7 @@ type ro ComplexInit:Obj
|
||||
394580
|
||||
type ro Init:Obj
|
||||
ro that:String "hello world"
|
||||
ro this:Int
|
||||
ro this:Int
|
||||
`, test)
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,6 @@ type SyntaxTree struct {
|
||||
|
||||
requires []string
|
||||
typeSections map[string] *TypeSection
|
||||
objtSections map[string] *ObjtSection
|
||||
dataSections map[string] *DataSection
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
:arf
|
||||
---
|
||||
objt ro Basic:Obj
|
||||
type ro Basic:Obj
|
||||
ro that:Basic
|
||||
ro this:Basic
|
||||
|
||||
objt ro Init:Obj
|
||||
type ro Init:Obj
|
||||
ro that:String "hello world"
|
||||
ro this:Int 23
|
||||
|
||||
objt ro ComplexInit:Obj
|
||||
type ro ComplexInit:Obj
|
||||
ro whatever:{Int 3}
|
||||
230984
|
||||
849 394580
|
||||
|
Reference in New Issue
Block a user