Searched refs:lexpos (Results 1 - 6 of 6) sorted by relevance

/gem5/ext/ply/ply/
H A Dlex.py71 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 Dyacc.py175 # .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 Dhedit.py34 t.lexer.lexpos -= len(t.value) - (i+1+n)
/gem5/ext/ply/example/yply/
H A Dylex.py36 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 Dlex_hedit.py34 t.lexer.lexpos -= len(t.value) - (i+1+n)
/gem5/src/python/m5/util/
H A Dgrammar.py131 (self.current_source, t.lineno, t.lexpos + 1, t.value)
138 (repr(t.value[0]), t.lineno, t.lexpos)

Completed in 11 milliseconds