Alphabet.cs
23 lines
| 577 B
| text/x-csharp
|
CSharpLexer
cin
|
r55 | using Implab; | ||
using System; | ||||
using System.Collections.Generic; | ||||
using System.Linq; | ||||
using System.Text; | ||||
using System.Threading.Tasks; | ||||
namespace Implab.Parsing { | ||||
public class Alphabet: AlphabetBase<char> { | ||||
cin
|
r59 | public Alphabet() | ||
: base(char.MaxValue + 1) { | ||||
} | ||||
cin
|
r55 | public override int GetSymbolIndex(char symbol) { | ||
return symbol; | ||||
} | ||||
public override IEnumerable<char> InputSymbols { | ||||
get { return Enumerable.Range(char.MinValue, char.MaxValue).Select(x => (char)x); } | ||||
} | ||||
} | ||||
} | ||||