Exemplo n.º 1
0
        internal void InitializeABParser(ABParserConfiguration config)
        {
            // Set the tokens.
            Tokens = config.Tokens;

            // Then, initialize the base parser.
            InitializeBaseParser(config);

            BeforeTokenProcessedArgs = new BeforeTokenProcessedEventArgs(this);
            OnTokenProcessedArgs     = new OnTokenProcessedEventArgs(this);
            OnEndArgs = new OnEndEventArgs();
            OFUCPPos  = 0;

            OnTokenProcessedPreviousTokenInfo = new TokenInformation();
            OnTokenProcessedTokenInfo         = new TokenInformation();
            CurrentEventTokenInfo             = new TokenInformation();
        }
Exemplo n.º 2
0
 internal void InitializeBaseParser(ABParserConfiguration tokens) => _baseParser = NativeMethods.CreateBaseParser(tokens.TokensStorage);
Exemplo n.º 3
0
 protected ABParser(ABParserConfiguration config) => InitializeABParser(config);