Lines Matching refs:parser
107 self.parser = yacc.yacc(module = self, write_tables = False, debug = False)
195 self.parser.parse(expr, lexer = self.lexer)
293 parser.set_dirinfo(basedir, dirdepth)
298 parser.excluded += 1
301 parser.parse_lines(fd, args.maxlines, el.path)
353 parser = id_parser(spdx) variable
379 parser.parse_lines(stdin, args.maxlines, '-')
384 parser.parse_lines(open(p, 'rb'), args.maxlines, p)
395 ndirs = len(parser.spdx_dirs)
398 for di in parser.spdx_dirs.values():
409 sys.stderr.write('Files excluded: %12d\n' %parser.excluded)
410 sys.stderr.write('Files checked: %12d\n' %parser.checked)
411 sys.stderr.write('Lines checked: %12d\n' %parser.lines_checked)
412 if parser.checked:
413 pc = int(100 * parser.spdx_valid / parser.checked)
414 sys.stderr.write('Files with SPDX: %12d %3d%%\n' %(parser.spdx_valid, pc))
415 sys.stderr.write('Files with errors: %12d\n' %parser.spdx_errors)
426 for f in sorted(parser.spdx_dirs.keys()):
427 di = parser.spdx_dirs[f]
437 for f in sorted(parser.spdx_dirs.keys()):
438 di = parser.spdx_dirs[f]