Searched refs:lexer (Results 1 - 25 of 38) sorted by relevance

12

/gem5/ext/ply/example/yply/
H A Dylex.py0 # lexer for yacc-grammars
35 if getattr(t.lexer,"lastsection",0):
36 t.value = t.lexer.lexdata[t.lexpos+2:]
37 t.lexer.lexpos = len(t.lexer.lexdata)
39 t.lexer.lastsection = 0
45 t.lexer.lineno += t.value.count('\n')
51 t.lexer.lineno += t.value.count("\n")
56 t.lexer.lineno += 1
60 t.lexer
[all...]
/gem5/ext/ply/test/
H A Dlex_state1.py25 t.lexer.begin('comment')
31 t.lexer.begin('INITIAL')
H A Dlex_state2.py25 t.lexer.begin('comment')
31 t.lexer.begin('INITIAL')
H A Dlex_state3.py27 t.lexer.begin('comment')
33 t.lexer.begin('INITIAL')
H A Dlex_state4.py26 t.lexer.begin('comment')
32 t.lexer.begin('INITIAL')
H A Dlex_state5.py26 t.lexer.begin('comment')
32 t.lexer.begin('INITIAL')
H A Dlex_state_noerror.py25 t.lexer.begin('comment')
31 t.lexer.begin('INITIAL')
H A Dlex_state_norule.py26 t.lexer.begin('comment')
32 t.lexer.begin('INITIAL')
H A Dlex_hedit.py13 # This example shows how to modify the state of the lexer to parse
34 t.lexer.lexpos -= len(t.value) - (i+1+n)
40 t.lexer.skip(1)
42 # Build the lexer
H A Dlex_state_try.py27 t.lexer.begin('comment')
33 t.lexer.begin('INITIAL')
H A Dlex_opt_alias.py43 t.lexer.lineno += t.value.count("\n")
47 t.lexer.skip(1)
51 # Build the lexer
H A Dlex_module_import.py4 # A lexer defined in a module, but built in lex_module.py
41 t.lexer.skip(1)
H A Dcalclex.py43 t.lexer.skip(1)
45 # Build the lexer
/gem5/ext/ply/example/closurecalc/
H A Dcalc.py44 t.lexer.lineno += t.value.count("\n")
48 t.lexer.skip(1)
50 # Build the lexer
51 lexer = lex.lex()
113 result = parser.parse(text,lexer=lexer)
/gem5/ext/ply/example/hedit/
H A Dhedit.py13 # This example shows how to modify the state of the lexer to parse
34 t.lexer.lexpos -= len(t.value) - (i+1+n)
41 t.lexer.skip(1)
43 # Build the lexer
/gem5/ext/ply/example/GardenSnake/
H A DGardenSnake.py122 if t.lexer.at_line_start and t.lexer.paren_count == 0:
130 t.lexer.lineno += len(t.value)
132 if t.lexer.paren_count == 0:
137 t.lexer.paren_count += 1
143 t.lexer.paren_count -= 1
150 t.lexer.skip(1)
172 def track_tokens_filter(lexer, tokens):
173 lexer.at_line_start = at_line_start = True
205 lexer
[all...]
/gem5/ext/ply/example/ansic/
H A Dclex.py4 # A lexer for ANSI C.
59 t.lexer.lineno += t.value.count("\n")
146 t.lexer.lineno += t.value.count('\n')
151 t.lexer.lineno += 1
155 t.lexer.skip(1)
157 lexer = lex.lex(optimize=1) variable
159 lex.runmain(lexer)
/gem5/ext/ply/example/BASIC/
H A Dbasiclex.py50 t.lexer.lineno += 1
55 t.lexer.skip(1)
/gem5/ext/ply/example/calc/
H A Dcalc.py33 t.lexer.lineno += t.value.count("\n")
37 t.lexer.skip(1)
39 # Build the lexer
/gem5/ext/ply/example/calcdebug/
H A Dcalc.py33 t.lexer.lineno += t.value.count("\n")
37 t.lexer.skip(1)
39 # Build the lexer
/gem5/ext/ply/example/unicalc/
H A Dcalc.py43 t.lexer.lineno += t.value.count("\n")
47 t.lexer.skip(1)
49 # Build the lexer
/gem5/ext/ply/ply/
H A Dctokens.py120 t.lexer.lineno += t.value.count('\n')
126 t.lexer.lineno += 1
H A Dcpp.py13 # Default preprocessor lexer definitions. These tokens are enough to get
26 t.lexer.lineno += t.value.count("\n")
48 t.lexer.lineno += t.value.count("\n")
54 t.lexer.lineno += t.value.count("\n")
60 t.lexer.lineno += t.value.count("\n")
66 t.lexer.skip(1)
141 def __init__(self,lexer=None):
142 if lexer is None:
143 lexer = lex.lexer
875 lexer = lex.lex() variable in class:Preprocessor
[all...]
/gem5/src/python/m5/util/
H A Dgrammar.py102 lexer = self.lex.clone()
103 lexer.input(data)
104 self.lexers.append((lexer, source))
112 result = parser.parse(lexer=lexer, debug=debug, tracking=tracking)
/gem5/src/arch/
H A Dmicro_asm.py216 # put the lexer in the "params" state. Seeing the colon will put it back
220 t.lexer.begin('asm')
233 t.lexer.begin('asm')
238 # parameters. If it's a label, the following colon will make the lexer stop
246 t.lexer.begin('params')
259 t.lexer.begin('asm')
264 t.lexer.begin('INITIAL')
280 # is over and the lexer should go back to looking for regular assembly.
284 t.lexer.begin('asm')
289 t.lexer
[all...]

Completed in 20 milliseconds

12