yacc.py | 175 # .lexpos = Starting lex position 188 # for a symbol. The lexspan() method returns a tuple (lexpos,endlexpos) 221 def lexpos(self,n): member in class:YaccProduction 222 return getattr(self.slice[n],"lexpos",0) 225 startpos = getattr(self.slice[n],"lexpos",0) 403 sym.lexpos = t1.lexpos 406 sym.endlexpos = getattr(t1,"endlexpos",t1.lexpos) 446 sym.lexpos = lexer.lexpos [all...] |