Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/m/y/mython-HEAD/basil/parsing/BisonParser.py   mython(Download)
		elif tok == TOKEN:
		    self.parseTokenDecl(BisonSymbols.STOKEN,
					BisonSymbols.SNTERM)
		elif tok == NTERM:
		    self.parseTokenDecl(BisonSymbols.SNTERM,
		    self.lexor.warn('symbol %s redefined' % symbol.tag)
		symbol.klass = whatIs
		if ((whatIs == BisonSymbols.SNTERM) and
		    (oldClass != BisonSymbols.SNTERM)):
		    symbol.value = self.nvars
		self.productions.append(production)
		if lhs.klass == BisonSymbols.SUNKNOWN:
		    lhs.klass = BisonSymbols.SNTERM
		    lhs.value = self.nVars
		    self.nVars = self.nVars + 1