Searched refs:lexpos (Results 1 - 6 of 6) sorted by relevance
/gem5/ext/ply/ply/ |
H A D | lex.py | 71 return "LexToken(%s,%r,%d,%d)" % (self.type,self.value,self.lineno,self.lexpos) 111 # lexpos - Current position in the input string 131 self.lexpos = 0 # Current position in input text 257 self.lexpos = 0 295 self.lexpos += n 306 lexpos = self.lexpos 311 while lexpos < lexlen: 313 if lexdata[lexpos] in lexignore: 314 lexpos [all...] |
H A D | 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...] |
/gem5/ext/ply/example/hedit/ |
H A D | hedit.py | 34 t.lexer.lexpos -= len(t.value) - (i+1+n)
|
/gem5/ext/ply/example/yply/ |
H A D | ylex.py | 36 t.value = t.lexer.lexdata[t.lexpos+2:] 37 t.lexer.lexpos = len(t.lexer.lexdata) 60 t.lexer.codestart = t.lexpos 85 t.value = t.lexer.lexdata[t.lexer.codestart:t.lexpos+1]
|
/gem5/ext/ply/test/ |
H A D | lex_hedit.py | 34 t.lexer.lexpos -= len(t.value) - (i+1+n)
|
/gem5/src/python/m5/util/ |
H A D | grammar.py | 131 (self.current_source, t.lineno, t.lexpos + 1, t.value) 138 (repr(t.value[0]), t.lineno, t.lexpos)
|
Completed in 11 milliseconds