mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-29 17:53:58 +00:00
Add default_parser procedure to package odin_parser
This commit is contained in:
@@ -101,6 +101,13 @@ end_pos :: proc(tok: token.Token) -> token.Pos {
|
||||
return pos;
|
||||
}
|
||||
|
||||
default_parser :: proc() -> Parser {
|
||||
return Parser {
|
||||
err = default_error_handler,
|
||||
warn = default_warning_handler,
|
||||
};
|
||||
}
|
||||
|
||||
parse_file :: proc(p: ^Parser, file: ^ast.File) -> bool {
|
||||
zero_parser: {
|
||||
p.prev_tok = {};
|
||||
|
||||
Reference in New Issue
Block a user