Compare commits
No commits in common. "ae0765b8f44ec6a981f5ea492e930f7240b60a88" and "3067b64f47d658fa064dfc118625ac5ae5090d30" have entirely different histories.
ae0765b8f4
...
3067b64f47
@ -1,3 +0,0 @@
|
|||||||
package analyzer
|
|
||||||
|
|
||||||
// TODO
|
|
@ -1,18 +0,0 @@
|
|||||||
package analyzer
|
|
||||||
|
|
||||||
import "testing"
|
|
||||||
|
|
||||||
func TestFuncSection (test *testing.T) {
|
|
||||||
checkTree ("../tests/analyzer/funcSection", false,
|
|
||||||
`
|
|
||||||
typeSection ro ../tests/analyzer/funcSection.aCString
|
|
||||||
type 1 pointer {Int}
|
|
||||||
funcSection ro ../tests/analyzer/funcSection.bArbitrary
|
|
||||||
block
|
|
||||||
arbitraryPhrase
|
|
||||||
command 'puts'
|
|
||||||
cast
|
|
||||||
type aCString
|
|
||||||
arg string 'hellorld` + "\000" + `'
|
|
||||||
`, test)
|
|
||||||
}
|
|
@ -37,9 +37,5 @@ typeSection ro ../tests/analyzer/typeSection.fInheritObjectFromOther
|
|||||||
member ro beak
|
member ro beak
|
||||||
type 1 basic Int
|
type 1 basic Int
|
||||||
arg uint 238
|
arg uint 238
|
||||||
typeSection ro ../tests/analyzer/typeSection.gPointer
|
|
||||||
type 1 pointer {Int}
|
|
||||||
typeSection ro ../tests/analyzer/typeSection.hDynamicArray
|
|
||||||
type 1 dynamicArray {Int}
|
|
||||||
`, test)
|
`, test)
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ func (what Type) ToString (indent int) (output string) {
|
|||||||
case TypeKindPointer:
|
case TypeKindPointer:
|
||||||
output += " pointer"
|
output += " pointer"
|
||||||
case TypeKindVariableArray:
|
case TypeKindVariableArray:
|
||||||
output += " dynamicArray"
|
output += " variableArray"
|
||||||
}
|
}
|
||||||
|
|
||||||
if what.points != nil {
|
if what.points != nil {
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
:arf
|
|
||||||
---
|
|
||||||
|
|
||||||
type ro aCString:{U8}
|
|
||||||
|
|
||||||
func ro bArbitrary
|
|
||||||
---
|
|
||||||
'puts' [cast 'hellorld\000' aCString]
|
|
@ -19,8 +19,4 @@ type ro fInheritObjectFromOther:required.bBird
|
|||||||
ro wing 2
|
ro wing 2
|
||||||
ro beak:Int 238
|
ro beak:Int 238
|
||||||
|
|
||||||
type ro gPointer:{Int}
|
|
||||||
|
|
||||||
type ro hDynamicArray:{Int ..}
|
|
||||||
|
|
||||||
# TODO: test a type that has a member pointing to itself
|
# TODO: test a type that has a member pointing to itself
|
||||||
|
Reference in New Issue
Block a user