Пример #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();
        }
Пример #2
0
 protected override void OnEnd(OnEndEventArgs args)
 {
     EndLeading = args.GetLeadingAsString();
 }
Пример #3
0
 /// <summary>
 /// Called when we finish a parse.
 /// </summary>
 protected virtual void OnEnd(OnEndEventArgs args)
 {
 }