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.9 2002/04/23 10:30:47 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    /** The phase finishes on the first match */
57    public int ONCE_STYLE = 4;
58  
59  
60    /** The default priority of a rule. */
61    public int DEFAULT_PRIORITY = -1;
62  
63    /** How far to increase indent when padding toString invocations. */
64    public int INDENT_PADDING = 4;
65  
66  } // JapeConstants
67  
68  
69  
70  
71  
72  // $Log: JapeConstants.java,v $
73  // Revision 1.9  2002/04/23 10:30:47  valyt
74  //
75  // bugfix: confusion between "once" and "first" application style
76  //
77  // Revision 1.8  2002/04/22 11:45:57  valyt
78  //
79  // ONCE mode added to Jape
80  //
81  // Revision 1.7  2001/05/17 16:02:41  valyt
82  //
83  // Jape grammars now can match using the "first" style
84  //
85  // Tokeniser only matches one character per (Space)Tokens in case of whitespace or control characters
86  //
87  // Revision 1.6  2001/05/17 11:50:41  valyt
88  //
89  //  Factory now handles Runtime parameters as well as inittime ones.
90  //
91  //  There is a new rule application style Appelt-shortest
92  //
93  // Revision 1.5  2001/04/06 17:09:49  hamish
94  // save of session state via serialisation prototyped
95  //
96  // Revision 1.4  2000/11/08 16:35:02  hamish
97  // formatting
98  //
99  // Revision 1.3  2000/10/26 10:45:30  oana
100 // Modified in the code style
101 //
102 // Revision 1.2  2000/10/10 15:36:35  oana
103 // Changed System.out in Out and System.err in Err;
104 // Added the DEBUG variable seted on false;
105 // Added in the header the licence;
106 //
107 // Revision 1.1  2000/02/23 13:46:06  hamish
108 // added
109 //
110 // Revision 1.1.1.1  1999/02/03 16:23:01  hamish
111 // added gate2
112 //
113 // Revision 1.5  1998/08/12 15:39:36  hamish
114 // added padding toString methods
115 //
116 // Revision 1.4  1998/07/31 13:12:18  mks
117 // done RHS stuff, not tested
118 //
119 // Revision 1.3  1998/07/30 11:05:17  mks
120 // more jape
121 //
122 // Revision 1.2  1998/07/29 11:06:58  hamish
123 // first compiling version
124 //
125 // Revision 1.1.1.1  1998/07/28 16:37:46  hamish
126 // gate2 lives
127