Implemented environment type

This commit is contained in:
Eduard Urbach 2025-02-21 17:35:42 +01:00
parent 1268344238
commit 96ac298980
Signed by: eduard
GPG key ID: 49226B848C78F6C8
15 changed files with 67 additions and 51 deletions

View file

@ -14,26 +14,14 @@ type Function struct {
Package string
Name string
UniqueName string
All *Environment
File *fs.File
Body token.List
Input []*Parameter
Output []*Parameter
OutputTypes []types.Type
Functions map[string]*Function
Structs map[string]*types.Struct
Constants map[string]*Constant
DLLs dll.List
Err error
deferred []func()
count counter
}
// counter stores how often a certain statement appeared so we can generate a unique label from it.
type counter struct {
assert int
branch int
multiBranch int
data int
loop int
subBranch int
count count
}