Compiler/lexical analyzer: Difference between revisions

Corrected bug with character literal (missing “next()” to advance to next character).
m (Moved call to “main” at the same level as the proc.)
(Corrected bug with character literal (missing “next()” to advance to next character).)
Line 6,471:
"escape sequence")
result = Token(kind: tokChar, charVal: ch)
next()
of '0'..'9':
var number = ""
Anonymous user