Class Chars
Character definitions and utility methods for Alang.
Inherited Members
Namespace: Automata.Core.Alang
Assembly: Automata.Core.dll
Syntax
public static class Chars
Fields
| Edit this page View SourceComplement
Complement operator character.
Declaration
public const char Complement = '~'
Field Value
Type | Description |
---|---|
char |
Difference
Difference operator character.
Declaration
public const char Difference = '-'
Field Value
Type | Description |
---|---|
char |
EOI
End of input character.
Declaration
public const char EOI = '\0'
Field Value
Type | Description |
---|---|
char |
Intersection
Intersection operator character.
Declaration
public const char Intersection = '&'
Field Value
Type | Description |
---|---|
char |
Invalid
Invalid character.
Declaration
public const char Invalid = '\uffff'
Field Value
Type | Description |
---|---|
char |
KleenePlus
Kleene plus operator character.
Declaration
public const char KleenePlus = '+'
Field Value
Type | Description |
---|---|
char |
KleeneStar
Kleene star operator character.
Declaration
public const char KleeneStar = '*'
Field Value
Type | Description |
---|---|
char |
LeftParen
Left parenthesis character.
Declaration
public const char LeftParen = '('
Field Value
Type | Description |
---|---|
char |
Option
Option operator character.
Declaration
public const char Option = '?'
Field Value
Type | Description |
---|---|
char |
RightParen
Right parenthesis character.
Declaration
public const char RightParen = ')'
Field Value
Type | Description |
---|---|
char |
Union
Union operator character.
Declaration
public const char Union = '|'
Field Value
Type | Description |
---|---|
char |
Wildcard
Wildcard token denoting any string in the alphabet.
Declaration
public const char Wildcard = '.'
Field Value
Type | Description |
---|---|
char |
Methods
| Edit this page View SourceIsAtomChar(char)
Indicates if a character can be part of an atom.
Declaration
public static bool IsAtomChar(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to check. |
Returns
Type | Description |
---|---|
bool | true
|
IsExpressionStart(char)
Indicates if a character can be the start of an expression.
Declaration
public static bool IsExpressionStart(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to check. |
Returns
Type | Description |
---|---|
bool | true
|
IsOperator(char)
Indicates if a character is an operator.
Declaration
public static bool IsOperator(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to check. |
Returns
Type | Description |
---|---|
bool | true
|