Home
last modified time | relevance | path

Searched refs:lexpos (Results 1 – 12 of 12) sorted by relevance

/external/svox/pico/lib/
Dpicoklex.c387 const picoos_uint32 lexpos, in klex_setLexResult() argument
407 lexres->posind[i++] = 0x000000ff & (lexpos); in klex_setLexResult()
408 lexres->posind[i++] = 0x000000ff & (lexpos >> 8); in klex_setLexResult()
409 lexres->posind[i] = 0x000000ff & (lexpos >> 16); in klex_setLexResult()
422 picoos_uint32 lexpos; in klex_lexblockLookup() local
427 lexpos = lexposStart; in klex_lexblockLookup()
429 while ((rv < 0) && (lexpos < lexposEnd)) { in klex_lexblockLookup()
431 rv = klex_lexMatch(&(this->lexblocks[lexpos]), graph, graphlen); in klex_lexblockLookup()
434 klex_setLexResult(&(this->lexblocks[lexpos]), lexpos, lexres); in klex_lexblockLookup()
439 (lexpos < lexposEnd)) { in klex_lexblockLookup()
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Dlex.py55 return "LexToken(%s,%r,%d,%d)" % (self.type,self.value,self.lineno,self.lexpos)
86 self.lexpos = 0 # Current position in input text
108 c.lexpos = self.lexpos
206 self.lexpos = 0
244 self.lexpos += n
255 lexpos = self.lexpos
260 while lexpos < lexlen:
262 if lexdata[lexpos] in lexignore:
263 lexpos += 1
268 m = lexre.match(lexdata,lexpos)
[all …]
Dyacc.py138 def lexpos(self,n): member in YaccProduction
287 sym.lexpos = targ[1].lexpos
288 sym.endlexpos = getattr(targ[-1],"endlexpos",targ[-1].lexpos)
/external/ply/ply/ply/
Dlex.py66 return 'LexToken(%s,%r,%d,%d)' % (self.type, self.value, self.lineno, self.lexpos)
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 += 1
320 m = lexre.match(lexdata, lexpos)
328 tok.lexpos = lexpos
[all …]
Dyacc.py268 def lexpos(self, n): member in YaccProduction
484 sym.lexpos = t1.lexpos
487 sym.endlexpos = getattr(t1, 'endlexpos', t1.lexpos)
529 sym.lexpos = lexer.lexpos
654 sym.endlexpos = getattr(lookahead, 'lexpos', sym.lexpos)
666 t.lexpos = t.endlexpos = lookahead.lexpos
675 lookahead.lexpos = sym.lexpos
804 sym.lexpos = t1.lexpos
807 sym.endlexpos = getattr(t1, 'endlexpos', t1.lexpos)
846 sym.lexpos = lexer.lexpos
[all …]
/external/libmojo/third_party/ply/
Dlex.py71 return "LexToken(%s,%r,%d,%d)" % (self.type,self.value,self.lineno,self.lexpos)
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 += 1
319 m = lexre.match(lexdata,lexpos)
326 tok.lexpos = lexpos
[all …]
Dyacc.py221 def lexpos(self,n): member in YaccProduction
403 sym.lexpos = t1.lexpos
406 sym.endlexpos = getattr(t1,"endlexpos",t1.lexpos)
446 sym.lexpos = lexer.lexpos
692 sym.lexpos = t1.lexpos
695 sym.endlexpos = getattr(t1,"endlexpos",t1.lexpos)
732 sym.lexpos = lexer.lexpos
/external/ply/ply/example/yply/
Dylex.py37 t.value = t.lexer.lexdata[t.lexpos + 2:]
38 t.lexer.lexpos = len(t.lexer.lexdata)
66 t.lexer.codestart = t.lexpos
97 t.value = t.lexer.lexdata[t.lexer.codestart:t.lexpos + 1]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dlexer_unittest.py38 self.lineno == other.lineno and self.lexpos == other.lexpos
42 def _MakeLexToken(token_type, value, lineno=1, lexpos=0): argument
46 rv.type, rv.value, rv.lineno, rv.lexpos = token_type, value, lineno, lexpos
/external/ply/ply/example/hedit/
Dhedit.py35 t.lexer.lexpos -= len(t.value) - (i + 1 + n)
/external/ply/ply/test/
Dlex_hedit.py34 t.lexer.lexpos -= len(t.value) - (i+1+n)
/external/ply/ply/
DCHANGES265 start_pos = p.lexpos(3)
718 Added lexpos() and lexspan() methods to grammar symbols. These
724 p.lexpos(1) # Lexing position of left-hand-expression
725 p.lexpos(1) # Lexing position of PLUS
915 Added the lexing position to tokens as an attribute lexpos. This
918 details (e.g., scan backwards from lexpos to the first newline