Automata  1.0
Public Member Functions | Static Public Member Functions | List of all members
System.Automata.TapeAlphabet Class Reference

An alphabet for use with a Turing tape More...

Inheritance diagram for System.Automata.TapeAlphabet:
System.Automata.Alphabet

Public Member Functions

 TapeAlphabet (Alphabet a, params char[] c)
 
 TapeAlphabet (params char[] c)
 
- Public Member Functions inherited from System.Automata.Alphabet
 Alphabet (params char[] s)
 Initialize the alphabet with the given symbols. More...
 
void Add (char s)
 
bool Contains (char s)
 
IEnumerator< char > GetEnumerator ()
 
override string ToString ()
 

Static Public Member Functions

static TapeAlphabet operator+ (TapeAlphabet a, Alphabet b)
 
static TapeAlphabet operator+ (Alphabet a, TapeAlphabet b)
 
static TapeAlphabet operator+ (TapeAlphabet a, TapeAlphabet b)
 
static TapeAlphabet operator- (TapeAlphabet a, Alphabet b)
 
static Alphabet operator- (Alphabet a, TapeAlphabet b)
 
static TapeAlphabet operator- (TapeAlphabet a, TapeAlphabet b)
 
- Static Public Member Functions inherited from System.Automata.Alphabet
static Alphabet operator+ (Alphabet a, Alphabet b)
 
static Alphabet operator- (Alphabet a, Alphabet b)
 

Additional Inherited Members

- Public Attributes inherited from System.Automata.Alphabet
const char EmptyString = '\0'
 Represents a string of length 0 More...
 
const char Z = (char)3
 Represents the initial symbol on the stack. More...
 
const char Blank = (char)127
 Represents a blank symbol on a Turing tape. More...
 
const char Wildcard = (char)26
 Represents a wildcard (?) symbol when replacing stack contents. More...
 
int Count => Chars.Count
 
- Static Public Attributes inherited from System.Automata.Alphabet
static Alphabet Unary => new Alphabet('1')
 {1} More...
 
static Alphabet Binary => new Alphabet('0', '1')
 {0, 1} More...
 
static Alphabet Decimal => new Alphabet(Enumerable.Range(48, 10).Select(c => (char)c).ToArray())
 {0, 1, ..., 9} More...
 
static Alphabet Ab => new Alphabet('a', 'b')
 {a, b} More...
 
static Alphabet Abc => new Alphabet('a', 'b', 'c')
 {a, b, c} More...
 
static Alphabet AzLower => new Alphabet(Enumerable.Range(65, 26).Select(c => (char)c).ToArray())
 {a, b, ..., z} More...
 
static Alphabet AzUpper => new Alphabet(Enumerable.Range(97, 26).Select(c => (char)c).ToArray())
 {A, B, ..., Z} More...
 
static Alphabet AzAll => new Alphabet(AzLower.Concat(AzUpper).ToArray())
 {a, b, ..., Z} More...
 
static Alphabet Ascii => new Alphabet(Enumerable.Range(32, 94).Select(c => (char)c).ToArray())
 All the printable ASCII characters More...
 
- Protected Attributes inherited from System.Automata.Alphabet
List< char > Chars
 

Detailed Description

An alphabet for use with a Turing tape


The documentation for this class was generated from the following file: