comparison lab2/lexer.mli @ 0:bfdcc3820b32

Basis
author Mike Spivey <mike@cs.ox.ac.uk>
date Thu, 05 Oct 2017 08:04:15 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bfdcc3820b32
1 (* lab2/lexer.mli *)
2 (* Copyright (c) 2017 J. M. Spivey *)
3
4 (*
5 The lexer is generated from a camllex script. It takes an input
6 buffer, reads a token, and returns the |token| value that corresponds
7 to it. The lexer maintains the current line number in |lineno| for
8 producing error messages.
9 *)
10
11 (* |token| -- scan a token and return its code *)
12 val token : Lexing.lexbuf -> Parser.token
13
14 (* |lineno| -- number of current line *)
15 val lineno : int ref