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 |
Range
public Range( char min, char max );
- Creates a new character range.
- Parameters:
min - the minimum character value
max - the maximum character value
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