Generic Interpreter 0.9
Protected API

gi
Class Lexicon.Match

java.lang.Object
  |
  +--gi.Lexicon.Expression
        |
        +--gi.Lexicon.Alphabet
              |
              +--gi.Lexicon.Match
Direct Known Subclasses:
Lexicon.NonMatch
Enclosing class:
Lexicon

protected static class Lexicon.Match
extends gi.Lexicon.Alphabet

This class implements an Expression denoting the set of characters in a string.

Version:
0.9
Author:
© 1999-2000 Craig A. Rich <carich@acm.org>

Constructor Summary
Lexicon.Match(char c)
          Constructs an Expression denoting the set containing a character.
Lexicon.Match(String string)
          Constructs an Expression denoting the set of characters in a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexicon.Match

public Lexicon.Match(char c)

Constructs an Expression denoting the set containing a character. An NFA recognizing the language denoted by this Expression is constructed.

Parameters:
c - the character whose singleton set is denoted.

Lexicon.Match

public Lexicon.Match(String string)

Constructs an Expression denoting the set of characters in a string. An NFA recognizing the language denoted by this Expression is constructed.

Parameters:
string - the string of characters whose set is denoted.

 

© 1999-2000 Craig A. Rich <carich@acm.org>