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;
        }
Example #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
        }
Example #3
0
 protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer, k)
 {
     initialize();
 }
Example #4
0
 public AspectLanguageParser(TokenStream lexer) : this(lexer, 1)
 {
 }
Example #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();
		}