/external/ply/ply/example/hedit/ |
hedit.py | 35 t.lexer.lexpos -= len(t.value) - (i + 1 + n)
|
/external/ply/ply/ply/ |
lex.py | 66 return 'LexToken(%s,%r,%d,%d)' % (self.type, self.value, self.lineno, self.lexpos) 112 # lexpos - Current position in the input string 133 self.lexpos = 0 # Current position in input text 257 self.lexpos = 0 296 self.lexpos += n 307 lexpos = self.lexpos 312 while lexpos < lexlen: 314 if lexdata[lexpos] in lexignore: 315 lexpos += [all...] |
yacc.py | 213 # .lexpos = Starting lex position 229 # for a symbol. The lexspan() method returns a tuple (lexpos,endlexpos) 267 def lexpos(self, n): member in class:YaccProduction 268 return getattr(self.slice[n], 'lexpos', 0) 270 def set_lexpos(self, n, lexpos): 271 self.slice[n].lexpos = lexpos 274 startpos = getattr(self.slice[n], 'lexpos', 0) 486 sym.lexpos = t1.lexpos [all...] |
/external/selinux/python/sepolgen/src/sepolgen/ |
lex.py | 66 return 'LexToken(%s,%r,%d,%d)' % (self.type, self.value, self.lineno, self.lexpos) 112 # lexpos - Current position in the input string 133 self.lexpos = 0 # Current position in input text 257 self.lexpos = 0 296 self.lexpos += n 307 lexpos = self.lexpos 312 while lexpos < lexlen: 314 if lexdata[lexpos] in lexignore: 315 lexpos += [all...] |
yacc.py | 213 # .lexpos = Starting lex position 229 # for a symbol. The lexspan() method returns a tuple (lexpos,endlexpos) 267 def lexpos(self, n): member in class:YaccProduction 268 return getattr(self.slice[n], 'lexpos', 0) 270 def set_lexpos(self, n, lexpos): 271 self.slice[n].lexpos = lexpos 274 startpos = getattr(self.slice[n], 'lexpos', 0) 486 sym.lexpos = t1.lexpos [all...] |
/external/libchrome/third_party/ply/ |
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...] |
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...] |
/external/ply/ply/test/ |
lex_hedit.py | 34 t.lexer.lexpos -= len(t.value) - (i+1+n)
|
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
lexer_unittest.py | 35 self.lineno == other.lineno and self.lexpos == other.lexpos 39 def _MakeLexToken(token_type, value, lineno=1, lexpos=0): 41 but lexpos is 0-based.)""" 43 rv.type, rv.value, rv.lineno, rv.lexpos = token_type, value, lineno, lexpos
|