nitcc_runtime :: Lexer :: lex
# Lexize a stream of characters and return a sequence of tokens
fun lex: CircularArray[NToken]
do
var res = new CircularArray[NToken]
chars = stream.chars
loop
var t = next_token
if t != null then res.add t
if t isa NEof or t isa NError then break
end
return res
end
lib/nitcc_runtime/nitcc_runtime.nit:166,2--177,4