/*
 *  JapeConstants.java
 *
 *  Copyright (c) 1998-2001, The University of Sheffield.
 *
 *  This file is part of GATE (see http://gate.ac.uk/), and is free
 *  software, licenced under the GNU Library General Public License,
 *  Version 2, June 1991 (in the distribution as file licence.html,
 *  and also available at http://gate.ac.uk/gate/licence.html).
 *
 *  Hamish Cunningham, 09/07/98
 *
 *  $Id: JapeConstants.java,v 1.9 2002/04/23 10:30:47 valyt Exp $
 */


package gate.jape;

import gate.*;
import gate.annotation.*;
import gate.util.*;
import java.util.*;
import java.io.*;

/**
  * Constants interface for the JAPE package.
  */
public interface JapeConstants extends Serializable
{

  /** no Kleene operator */
  public int NO_KLEENE_OP		=  0;

  /** Kleene star (*) */
  public int KLEENE_STAR		=  1;

  /** Kleene plus (+) */
  public int KLEENE_PLUS		=  2;

  /** Kleene query (?) */
  public int KLEENE_QUERY		=  3;

  /** No binding on this element */
  public int NO_BINDING			=  1;

  public int MULTI_SPAN_BINDING		=  2;

  public int SINGLE_SPAN_BINDING	=  3;

  /** Brill-style rule application */
  public int BRILL_STYLE = 1;
  /** Appelt-style rule application */
  public int APPELT_STYLE = 2;
  /** Appelt-shortest-style rule application */
  public int FIRST_STYLE = 3;
  /** The phase finishes on the first match */
  public int ONCE_STYLE = 4;


  /** The default priority of a rule. */
  public int DEFAULT_PRIORITY = -1;

  /** How far to increase indent when padding toString invocations. */
  public int INDENT_PADDING = 4;

} // JapeConstants





// $Log: JapeConstants.java,v $
// Revision 1.9  2002/04/23 10:30:47  valyt
//
// bugfix: confusion between "once" and "first" application style
//
// Revision 1.8  2002/04/22 11:45:57  valyt
//
// ONCE mode added to Jape
//
// Revision 1.7  2001/05/17 16:02:41  valyt
//
// Jape grammars now can match using the "first" style
//
// Tokeniser only matches one character per (Space)Tokens in case of whitespace or control characters
//
// Revision 1.6  2001/05/17 11:50:41  valyt
//
// 	Factory now handles Runtime parameters as well as inittime ones.
//
// 	There is a new rule application style Appelt-shortest
//
// Revision 1.5  2001/04/06 17:09:49  hamish
// save of session state via serialisation prototyped
//
// Revision 1.4  2000/11/08 16:35:02  hamish
// formatting
//
// Revision 1.3  2000/10/26 10:45:30  oana
// Modified in the code style
//
// Revision 1.2  2000/10/10 15:36:35  oana
// Changed System.out in Out and System.err in Err;
// Added the DEBUG variable seted on false;
// Added in the header the licence;
//
// Revision 1.1  2000/02/23 13:46:06  hamish
// added
//
// Revision 1.1.1.1  1999/02/03 16:23:01  hamish
// added gate2
//
// Revision 1.5  1998/08/12 15:39:36  hamish
// added padding toString methods
//
// Revision 1.4  1998/07/31 13:12:18  mks
// done RHS stuff, not tested
//
// Revision 1.3  1998/07/30 11:05:17  mks
// more jape
//
// Revision 1.2  1998/07/29 11:06:58  hamish
// first compiling version
//
// Revision 1.1.1.1  1998/07/28 16:37:46  hamish
// gate2 lives
