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

local vars + Parser.errror()

This commit is contained in:
Alexander Medvednikov
2019-12-29 06:50:08 +01:00
parent c81fbee4ab
commit c915c58d12
8 changed files with 173 additions and 90 deletions

View File

@@ -5,9 +5,9 @@ module token
pub struct Token {
pub:
kind TokenKind // the token number/enum; for quick comparisons
lit string // literal representation of the token
// line_nr int // the line number in the source where the token occured
kind TokenKind // the token number/enum; for quick comparisons
lit string // literal representation of the token
line_nr int // the line number in the source where the token occured
// name_idx int // name table index for O(1) lookup
// pos int // the position of the token in scanner text
}