Merge pull request #1003 from flaviut/devel
Add token position to `nimrod scan`
This commit is contained in:
commit
9d4b77a65a
1 changed files with 1 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ proc prettyTok*(tok: TToken): string =
|
|||
else: result = tokToStr(tok)
|
||||
|
||||
proc printTok*(tok: TToken) =
|
||||
write(stdout, tok.line, ":", tok.col, "\t")
|
||||
write(stdout, TokTypeToStr[tok.tokType])
|
||||
write(stdout, " ")
|
||||
writeln(stdout, tokToStr(tok))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue