internal WhitespacePreservingTokenStreamFilter(antlr.TokenStream istream, int eosType, int endType, int idType)
        {
            if (istream == null)
            {
                throw new ArgumentNullException("istream");
            }

            _istream       = istream;
            _pendingTokens = new Queue();
            _eosTokenType  = eosType;
            _endTokenType  = endType;
            _idTokenType   = idType;
        }
Esempio n. 2
0
        public IndentTokenStreamFilter(antlr.TokenStream istream, int wsTokenType, int indentTokenType, int dedentTokenType, int eosTokenType)
        {
            if (null == istream)
            {
                throw new ArgumentNullException("istream");
            }

            _istream         = istream;
            _wsTokenType     = wsTokenType;
            _indentTokenType = indentTokenType;
            _dedentTokenType = dedentTokenType;
            _eosTokenType    = eosTokenType;
            _indentStack     = new Stack();
            _pendingTokens   = new Queue();

            _indentStack.Push(0);             // current indent level is zero
        }
Esempio n. 3
0
 protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer, k)
 {
     initialize();
 }
Esempio n. 4
0
 public AspectLanguageParser(TokenStream lexer) : this(lexer, 1)
 {
 }
Esempio n. 5
0
 public BooParser(antlr.TokenStream lexer) : base(lexer)
 {
 }
        public IndentTokenStreamFilter(antlr.TokenStream istream, int wsTokenType, int indentTokenType, int dedentTokenType, int eosTokenType)
        {
            if (null == istream)
            {
                throw new ArgumentNullException("istream");
            }

            _istream = istream;
            _wsTokenType = wsTokenType;
            _indentTokenType = indentTokenType;
            _dedentTokenType = dedentTokenType;
            _eosTokenType = eosTokenType;
            _indentStack = new Stack();
            _pendingTokens = new Queue();

            _indentStack.Push(0); // current indent level is zero
        }
		public AspectLanguageParser(TokenStream lexer) : this(lexer,1)
		{
		}
		protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer,k)
		{
			initialize();
		}