fn Parser.new(prefs &pref.Preferences) &Parser
struct Parser {
pref &pref.Preferences
mut:
file &token.File = &token.File{}
scanner &scanner.Scanner
exp_lcbr bool
exp_pt bool
line int
lit string
pos token.Pos
tok token.Token = .unknown
tok_next_ token.Token = .unknown
}
fn (Parser) parse_files #
fn (mut p Parser) parse_files(files []string, mut file_set token.FileSet) []ast.File
fn (mut p Parser) parse_file(filename string, mut file_set token.FileSet) ast.File
fn (Parser) expect_semi #
fn (mut p Parser) expect_semi()