comparison lab1/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 (* lab1/lexer.mli *)
2 (* Copyright (c) 2017 J. M. Spivey *)
3
4 (* |token| -- scan a token and return its code *)
5 val token : Lexing.lexbuf -> Parser.token
6
7 (* |lineno| -- number of current line *)
8 val lineno : int ref
9
10 (* |get_vars| -- list of identifiers used in program *)
11 val get_vars : unit -> Tree.ident list