Use modern enums in compiler (#15775)
This commit is contained in:
parent
5298366f86
commit
00b495de95
18 changed files with 212 additions and 330 deletions
|
|
@ -219,7 +219,7 @@ proc eat(p: var Parser, tokType: TokType) =
|
|||
getTok(p)
|
||||
else:
|
||||
lexMessage(p.lex, errGenerated,
|
||||
"expected: '" & TokTypeToStr[tokType] & "', but got: '" & prettyTok(p.tok) & "'")
|
||||
"expected: '" & $tokType & "', but got: '" & prettyTok(p.tok) & "'")
|
||||
|
||||
proc parLineInfo(p: Parser): TLineInfo =
|
||||
## Retrieve the line information associated with the parser's current state.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue