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; }
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 }
protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer, k) { initialize(); }
public AspectLanguageParser(TokenStream lexer) : this(lexer, 1) { }
public BooParser(antlr.TokenStream lexer) : base(lexer) { }
public AspectLanguageParser(TokenStream lexer) : this(lexer,1) { }
protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer,k) { initialize(); }