1   /*
2    *  JapeConstants.java
3    *
4    *  Copyright (c) 1998-2001, The University of Sheffield.
5    *
6    *  This file is part of GATE (see http://gate.ac.uk/), and is free
7    *  software, licenced under the GNU Library General Public License,
8    *  Version 2, June 1991 (in the distribution as file licence.html,
9    *  and also available at http://gate.ac.uk/gate/licence.html).
10   *
11   *  Hamish Cunningham, 09/07/98
12   *
13   *  $Id: JapeConstants.java,v 1.7 2001/05/17 16:02:41 valyt Exp $
14   */
15  
16  
17  package gate.jape;
18  
19  import gate.*;
20  import gate.annotation.*;
21  import gate.util.*;
22  import java.util.*;
23  import java.io.*;
24  
25  /**
26    * Constants interface for the JAPE package.
27    */
28  public interface JapeConstants extends Serializable
29  {
30  
31    /** no Kleene operator */
32    public int NO_KLEENE_OP   =  0;
33  
34    /** Kleene star (*) */
35    public int KLEENE_STAR    =  1;
36  
37    /** Kleene plus (+) */
38    public int KLEENE_PLUS    =  2;
39  
40    /** Kleene query (?) */
41    public int KLEENE_QUERY   =  3;
42  
43    /** No binding on this element */
44    public int NO_BINDING     =  1;
45  
46    public int MULTI_SPAN_BINDING   =  2;
47  
48    public int SINGLE_SPAN_BINDING  =  3;
49  
50    /** Brill-style rule application */
51    public int BRILL_STYLE = 1;
52    /** Appelt-style rule application */
53    public int APPELT_STYLE = 2;
54    /** Appelt-shortest-style rule application */
55    public int FIRST_STYLE = 3;
56  
57    /** The default priority of a rule. */
58    public int DEFAULT_PRIORITY = -1;
59  
60    /** How far to increase indent when padding toString invocations. */
61    public int INDENT_PADDING = 4;
62  
63  } // JapeConstants
64  
65  
66  
67  
68  
69  // $Log: JapeConstants.java,v $
70  // Revision 1.7  2001/05/17 16:02:41  valyt
71  //
72  // Jape grammars now can match using the "first" style
73  //
74  // Tokeniser only matches one character per (Space)Tokens in case of whitespace or control characters
75  //
76  // Revision 1.6  2001/05/17 11:50:41  valyt
77  //
78  //  Factory now handles Runtime parameters as well as inittime ones.
79  //
80  //  There is a new rule application style Appelt-shortest
81  //
82  // Revision 1.5  2001/04/06 17:09:49  hamish
83  // save of session state via serialisation prototyped
84  //
85  // Revision 1.4  2000/11/08 16:35:02  hamish
86  // formatting
87  //
88  // Revision 1.3  2000/10/26 10:45:30  oana
89  // Modified in the code style
90  //
91  // Revision 1.2  2000/10/10 15:36:35  oana
92  // Changed System.out in Out and System.err in Err;
93  // Added the DEBUG variable seted on false;
94  // Added in the header the licence;
95  //
96  // Revision 1.1  2000/02/23 13:46:06  hamish
97  // added
98  //
99  // Revision 1.1.1.1  1999/02/03 16:23:01  hamish
100 // added gate2
101 //
102 // Revision 1.5  1998/08/12 15:39:36  hamish
103 // added padding toString methods
104 //
105 // Revision 1.4  1998/07/31 13:12:18  mks
106 // done RHS stuff, not tested
107 //
108 // Revision 1.3  1998/07/30 11:05:17  mks
109 // more jape
110 //
111 // Revision 1.2  1998/07/29 11:06:58  hamish
112 // first compiling version
113 //
114 // Revision 1.1.1.1  1998/07/28 16:37:46  hamish
115 // gate2 lives
116