12345678910111213141516171819202122232425262728293031323334353637module juptune.asn1.lang.lexer;
struct Asn1Lexer
{
/++ FUNCTIONS ++/
///
ulong cursor();
///
Result lookahead(ulong offset, Asn1Token token);
/// Other helpers
Asn1Token makeToken(Asn1Location location, Asn1Token.Type type, Asn1Token.InnerValue value = InnerValue(Number(0LU, false), , ));
///
Result next(Asn1Token token);
///
ulong tokensRead();
/++ MANIFEST CONSTANTS ++/
///
enum int MAX_LOOKAHEAD = 3;
/++ VARIABLES ++/
///
static immutable AsciiAlphabet!("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"&'$(LPAREN)$(RPAREN)*,-./:;<=>@[]^_{|}\t\n\x0b\f\r ") Alphabet;
///
static immutable AsciiAlphabet!("\t\n\x0b\f\r 01") BitStringAlphabet;
///
static immutable AsciiAlphabet!("\t\n\x0b\f\r 0123456789ABCDEF") HexStringAlphabet;
///
static immutable AsciiAlphabet!("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-") IdentifierAlphabet;
///
static immutable AsciiAlphabet!("\n\x0b\f\r") NewLine;
///
static immutable AsciiAlphabet!("\t\n\x0b\f\r ") WhiteSpace;
}
| Name | Description |
|---|---|
| MAX_LOOKAHEAD |
| Name | Description |
|---|---|
| cursor | |
| lookahead | |
| makeToken |
Other helpers |
| next | |
| tokensRead |
| Name | Description |
|---|---|
| Alphabet | |
| BitStringAlphabet | |
| HexStringAlphabet | |
| IdentifierAlphabet | |
| NewLine | |
| WhiteSpace |