Lines Matching full:stream
192 | [< ' (' ' | '\n' | '\r' | '\t'); stream >] -> lex stream
194 ``Lexer.lex`` works by recursing over a ``char Stream.t`` to read
207 | [< ' ('A' .. 'Z' | 'a' .. 'z' as c); stream >] ->
210 lex_ident buffer stream
215 | [< ' ('A' .. 'Z' | 'a' .. 'z' | '0' .. '9' as c); stream >] ->
217 lex_ident buffer stream
218 | [< stream=lex >] ->
220 | "def" -> [< 'Token.Def; stream >]
221 | "extern" -> [< 'Token.Extern; stream >]
222 | id -> [< 'Token.Ident id; stream >]
229 | [< ' ('0' .. '9' as c); stream >] ->
232 lex_number buffer stream
237 | [< ' ('0' .. '9' | '.' as c); stream >] ->
239 lex_number buffer stream
240 | [< stream=lex >] ->
241 [< 'Token.Number (float_of_string (Buffer.contents buffer)); stream >]
253 | [< ' ('#'); stream >] ->
254 lex_comment stream
259 | [< ' ('\n'); stream=lex >] -> stream
271 | [< 'c; stream >] ->
272 [< 'Token.Kwd c; lex stream >]
274 (* end of stream. *)