~ubuntu-branches/ubuntu/vivid/menhir/vivid

« back to all changes in this revision

Viewing changes to tokenType.mli

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-07-11 12:26:18 UTC
  • Revision ID: james.westby@ubuntu.com-20060711122618-dea56bmjs3qlmsd8
Tags: upstream-20060615.dfsg
Import upstream version 20060615.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(**************************************************************************)
 
2
(*                                                                        *)
 
3
(*  Menhir                                                                *)
 
4
(*                                                                        *)
 
5
(*  Fran�ois Pottier and Yann R�gis-Gianas, INRIA Rocquencourt            *)
 
6
(*                                                                        *)
 
7
(*  Copyright 2005 Institut National de Recherche en Informatique et      *)
 
8
(*  en Automatique. All rights reserved. This file is distributed         *)
 
9
(*  under the terms of the Q Public License version 1.0, with the         *)
 
10
(*  change described in file LICENSE.                                     *)
 
11
(*                                                                        *)
 
12
(**************************************************************************)
 
13
 
 
14
(* This module deals with a few details regarding the definition of
 
15
   the [token] type. In particular, if [--only-tokens] was specified,
 
16
   it emits the type definition and exits. *)
 
17
 
 
18
(* This is the conventional name of the [token] type, for use by
 
19
   the code generator. *)
 
20
 
 
21
val tctoken: string
 
22
val ttoken: IL.typ
 
23
 
 
24
(* This is the type of lexers. It refers to the [token] type,
 
25
   which is why it is defined here. *)
 
26
 
 
27
val tlexer: IL.typ
 
28
 
 
29
(* This is the definition of the type of tokens, for use by the
 
30
   code generator. *)
 
31
 
 
32
val tokentypedef: IL.typedef list
 
33
 
 
34
(* This function prefixes the name of a token with an appropriate
 
35
   Objective Caml module name, if necessary. *)
 
36
 
 
37
val tokenprefix: string -> string
 
38