Overview   Project   Class   Tree   Deprecated   Index 
Grammatica 1.5 Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

PerCederberg.Grammatica.Runtime
Class NFACharRangeTransition.Range

System.Object
   |
   +--NFACharRangeTransition.Range

   in TokenNFA.cs

private class NFACharRangeTransition.Range
extends System.Object

A character range class.


Constructor Summary
Range( char min, char max )
          Creates a new character range.
 
Method Summary
 bool Inside( char c )
          Checks if the specified character is inside the range.
 bool IsAscii()
          Checks if this range only matches ASCII characters
 

Constructor Detail

Range

public Range( char min, char max );
Creates a new character range.
Parameters:
min - the minimum character value
max - the maximum character value


Method Detail

Inside

public bool Inside( char c );
Checks if the specified character is inside the range.
Parameters:
c - the character to check
Returns:
true if the character is in the range, or false otherwise

IsAscii

public bool IsAscii();
Checks if this range only matches ASCII characters
Returns:
true if this range only matches ASCII, or false otherwise

 Overview   Project   Class   Tree   Deprecated   Index 
Grammatica 1.5 Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD