Searched refs:yacc (Results 26 - 48 of 48) sorted by relevance

12

/gem5/ext/ply/test/
H A Dyacc_simple.py9 import ply.yacc as yacc
64 yacc.yacc()
H A Dyacc_sr.py9 import ply.yacc as yacc
59 yacc.yacc()
H A Dyacc_term1.py9 import ply.yacc as yacc
64 yacc.yacc()
H A Dyacc_unused.py9 import ply.yacc as yacc
73 yacc.yacc()
H A Dyacc_unused_rule.py9 import ply.yacc as yacc
68 yacc.yacc()
H A Dyacc_uprec.py9 import ply.yacc as yacc
59 yacc.yacc()
H A Dyacc_uprec2.py9 import ply.yacc as yacc
59 yacc.yacc()
H A Dtestyacc.py15 import ply.yacc
54 self.assertRaises(ply.yacc.YaccError,run_import,"yacc_badargs")
61 self.assertRaises(ply.yacc.YaccError,run_import,"yacc_badid")
71 except ply.yacc.YaccError:
77 self.assertRaises(ply.yacc.YaccError,run_import,"yacc_badprec2")
93 self.assertRaises(ply.yacc.YaccError,run_import,"yacc_badrule")
105 except ply.yacc.YaccError:
123 except ply.yacc.YaccError:
131 except ply.yacc.YaccError:
139 except ply.yacc
[all...]
/gem5/ext/ply/example/calc/
H A Dcalc.py98 import ply.yacc as yacc
99 yacc.yacc()
107 yacc.parse(s)
/gem5/ext/ply/example/calcdebug/
H A Dcalc.py98 import ply.yacc as yacc
99 yacc.yacc()
113 yacc.parse(s,debug=logging.getLogger())
/gem5/ext/ply/example/unicalc/
H A Dcalc.py108 import ply.yacc as yacc
109 yacc.yacc()
117 yacc.parse(unicode(s))
/gem5/ext/ply/example/closurecalc/
H A Dcalc.py19 import ply.yacc as yacc
108 parser = yacc.yacc()
/gem5/ext/ply/example/yply/
H A Dyply.py7 # Converts a UNIX-yacc specification file into a PLY-compatible
19 # a yacc-specified C++ parser containing 442 rules and 855 parsing
45 yacc.parse(open(filename).read())
50 yacc.yacc()
H A Dyparse.py1 # parser for Unix yacc-based grammars
17 '''yacc : defsection rulesection'''
210 yacc.yacc(debug=0)
/gem5/src/python/m5/util/
H A Dgrammar.py31 import ply.yacc
74 if attr == 'yacc':
75 self.yacc = ply.yacc.yacc(module=self, **self.yacc_kwargs)
76 return self.yacc
106 'productions' : self.yacc.productions,
107 'action' : self.yacc.action,
108 'goto' : self.yacc.goto,
109 'errorfunc' : self.yacc
[all...]
/gem5/ext/ply/example/optcalc/
H A Dcalc.py110 import ply.yacc as yacc
111 yacc.yacc(optimize=1)
118 yacc.parse(s)
/gem5/ext/ply/example/newclasscalc/
H A Dcalc.py21 import ply.yacc as yacc
45 yacc.yacc(module=self,
57 yacc.parse(s)
/gem5/ext/ply/example/classcalc/
H A Dcalc.py19 import ply.yacc as yacc
42 yacc.yacc(module=self,
54 yacc.parse(s)
/gem5/ext/ply/example/ansic/
H A Dcparse.py9 import ply.yacc as yacc
857 yacc.yacc(method='LALR')
859 #profile.run("yacc.yacc(method='LALR')")
/gem5/src/arch/
H A Dmicro_asm.py40 from ply import yacc
489 self.parser = yacc.yacc()
/gem5/ext/ply/example/BASIC/
H A Dbasparse.py404 bparser = yacc.yacc()
/gem5/ext/ply/example/GardenSnake/
H A DGardenSnake.py333 #import yacc
636 self.parser = yacc.yacc(start="file_input_end")
/gem5/ext/ply/ply/
H A Dyacc.py2 # ply: yacc.py
68 # Change these to modify the default behavior of yacc (if you wish)
71 yaccdebug = 0 # Debugging mode. If set, yacc generates a
80 yaccdevel = 0 # Set to True if developing yacc. This turns off optimized
139 # Exception raised for yacc-related errors
534 sys.stderr.write("yacc: Syntax error at line %d, token=%s\n" % (lineno, errtoken.type))
536 sys.stderr.write("yacc: Syntax error, token=%s" % errtoken.type)
538 sys.stderr.write("yacc: Parse error in input. EOF\n")
586 raise RuntimeError("yacc: internal parser error!!!\n")
807 sys.stderr.write("yacc
3036 def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, start=None, function
[all...]

Completed in 28 milliseconds

12