1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner: cleanup, only v.parser now depends on v.scanner

This commit is contained in:
Delyan Angelov
2020-04-27 16:08:04 +03:00
parent e9f764db4f
commit e67bf674e3
11 changed files with 81 additions and 90 deletions

25
vlib/v/errors/errors.v Normal file
View File

@@ -0,0 +1,25 @@
module errors
import v.token
pub enum Reporter {
scanner
parser
checker
gen
}
pub struct Error {
message string
file_path string
pos token.Position
reporter Reporter
backtrace string
}
pub struct Warning {
message string
file_path string
pos token.Position
reporter Reporter
}