Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs Asn1Lexer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module 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;
}

Constants

Name Description
MAX_LOOKAHEAD

Functions

Name Description
cursor
lookahead
makeToken

Other helpers

next
tokensRead

Variables

Name Description
Alphabet
BitStringAlphabet
HexStringAlphabet
IdentifierAlphabet
NewLine
WhiteSpace