mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-19 04:12:22 -07:00
41 lines
581 B
Odin
41 lines
581 B
Odin
package odin_ast
|
|
|
|
import "core:odin/tokenizer"
|
|
|
|
Package_Kind :: enum {
|
|
Normal,
|
|
Runtime,
|
|
Init,
|
|
}
|
|
|
|
Package :: struct {
|
|
kind: Package_Kind,
|
|
id: int,
|
|
name: string,
|
|
fullpath: string,
|
|
files: []^File,
|
|
|
|
user_data: rawptr,
|
|
}
|
|
|
|
File :: struct {
|
|
id: int,
|
|
pkg: ^Package,
|
|
|
|
fullpath: string,
|
|
src: []byte,
|
|
|
|
pkg_decl: ^Package_Decl,
|
|
pkg_token: tokenizer.Token,
|
|
pkg_name: string,
|
|
|
|
decls: [dynamic]^Stmt,
|
|
imports: [dynamic]^Import_Decl,
|
|
directive_count: int,
|
|
|
|
comments: [dynamic]^Comment_Group,
|
|
|
|
syntax_warning_count: int,
|
|
syntax_error_count: int,
|
|
}
|