コード例 #1
0
        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;
        }
コード例 #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
        }
コード例 #3
0
 protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer, k)
 {
     initialize();
 }
コード例 #4
0
 public AspectLanguageParser(TokenStream lexer) : this(lexer, 1)
 {
 }
コード例 #5
0
ファイル: BooParser.cs プロジェクト: yantrabuddhi/boo
 public BooParser(antlr.TokenStream lexer) : base(lexer)
 {
 }
コード例 #6
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
        }
コード例 #7
0
		public AspectLanguageParser(TokenStream lexer) : this(lexer,1)
		{
		}
コード例 #8
0
		protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer,k)
		{
			initialize();
		}