Skip to content

std/jule/parser

Index

fn ParseFile(mut f: &token::FileSet): &FileInfo
fn ParsePackage(mut filesets: []&token::FileSet): &PackageInfo
struct FileInfo
struct PackageInfo

ParseFile

jule
fn ParseFile(mut f: &token::FileSet): &FileInfo

Parses FileSet's tokens and builds AST. Returns nil if f is not real. FileSet should not contain comment tokens.

ParsePackage

jule
fn ParsePackage(mut filesets: []&token::FileSet): &PackageInfo

Parses FileSet's tokens and builds AST. Returns nil if filesets is nil. Skips FileSet if nil. FileSets should not contain comment tokens.

FileInfo

jule
struct FileInfo {
	AST:    &ast::AST
	Errors: []log::Log
}

Stores information about file parsing.

PackageInfo

jule
struct PackageInfo {
	Files: []&FileInfo
}

Stores information about package parsing.