Lines Matching refs:lineno

94             self.lineno = 0
97 self.lineno = first
245 def defineInst(self, parser, name, args, lineno):
258 error(lineno, 'error defining "%s": %s.' % (name, exc))
271 def defineInst(self, parser, name, args, lineno):
272 error(lineno,
1523 # LineTracker: track filenames along with line numbers in PLY lineno fields
1524 # PLY explicitly doesn't do anything with 'lineno' except propagate
1530 def __init__(self, filename, lineno=1):
1532 self.lineno = lineno
1538 return LineTracker(self.filename, self.lineno + incr)
1541 return "%s:%d" % (self.filename, self.lineno)
1545 return self.lineno
1584 # element is a tuple (filename, lineno) that records the
1837 error(t.lexer.lineno, 'Integer value "%s" too large' % t.value)
1847 t.lexer.lineno += t.value.count('\n')
1857 t.lexer.lineno += t.value.count('\n')
1862 t.lexer.lineno += t.value.count('\n')
1867 self.fileNameStack.push(t.lexer.lineno)
1868 t.lexer.lineno = LineTracker(t.value[11:-2])
1872 t.lexer.lineno = self.fileNameStack.pop()
1882 t.lexer.lineno += t.value.count('\n')
1893 error(t.lexer.lineno, "illegal character '%s'" % t.value[0])
2047 error(t.lineno(1), 'In global let block: %s' % exc)
2063 error(t.lineno(1),
2071 error(t.lineno(1),
2078 error(t.lineno(1), 'In def operands: %s' % exc)
2079 self.buildOperandNameMap(user_dict, t.lexer.lineno)
2105 error(t.lineno(1),
2138 self.defFormat(id, params, code, t.lexer.lineno)
2260 error(t.lineno(1), 'Two default cases in decode block')
2307 error(t.lineno(1), 'instruction format "%s" not defined.' % t[1])
2373 codeObj = currentFormat.defineInst(self, t[1], t[3], t.lexer.lineno)
2388 error(t.lineno(1), 'instruction format "%s" not defined.' % t[1])
2390 codeObj = format.defineInst(self, t[3], t[5], t.lexer.lineno)
2481 error(t.lexer.lineno, "syntax error at '%s'" % t.value)
2495 def defFormat(self, id, params, code, lineno):
2500 error(lineno, 'format %s redefined.' % id)
2511 def buildOperandNameMap(self, user_dict, lineno):
2517 error(lineno, 'error: too many attributes for operand "%s"' %
2576 error(lineno,
2704 # Initialize lineno tracker
2705 self.lex.lineno = LineTracker(isa_desc_file)
2717 print("At %s:" % e.lineno)