annotate lab2/lexer.mli @ 1:b5139af1a420 tip basis

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