Lines Matching refs:sym

252         sym = YaccSymbol()
253 sym.type = '$end'
254 self.symstack.append(sym)
327 sym = YaccSymbol()
328 sym.type = "$end"
329 symstack.append(sym)
383 sym = YaccSymbol()
384 sym.type = pname # Production name
385 sym.value = None
397 targ[0] = sym
402 sym.lineno = t1.lineno
403 sym.lexpos = t1.lexpos
405 sym.endlineno = getattr(t1,"endlineno",t1.lineno)
406 sym.endlexpos = getattr(t1,"endlexpos",t1.lexpos)
425 symstack.append(sym)
434 sym.type = 'error'
435 lookahead = sym
445 sym.lineno = lexer.lineno
446 sym.lexpos = lexer.lexpos
449 targ = [ sym ]
464 symstack.append(sym)
473 sym.type = 'error'
474 lookahead = sym
565 sym = symstack[-1]
566 if sym.type == 'error':
638 sym = YaccSymbol()
639 sym.type = '$end'
640 symstack.append(sym)
680 sym = YaccSymbol()
681 sym.type = pname # Production name
682 sym.value = None
686 targ[0] = sym
691 sym.lineno = t1.lineno
692 sym.lexpos = t1.lexpos
694 sym.endlineno = getattr(t1,"endlineno",t1.lineno)
695 sym.endlexpos = getattr(t1,"endlexpos",t1.lexpos)
711 symstack.append(sym)
720 sym.type = 'error'
721 lookahead = sym
731 sym.lineno = lexer.lineno
732 sym.lexpos = lexer.lexpos
735 targ = [ sym ]
747 symstack.append(sym)
756 sym.type = 'error'
757 lookahead = sym
838 sym = symstack[-1]
839 if sym.type == 'error':
910 sym = YaccSymbol()
911 sym.type = '$end'
912 symstack.append(sym)
952 sym = YaccSymbol()
953 sym.type = pname # Production name
954 sym.value = None
958 targ[0] = sym
972 symstack.append(sym)
981 sym.type = 'error'
982 lookahead = sym
990 targ = [ sym ]
1002 symstack.append(sym)
1011 sym.type = 'error'
1012 lookahead = sym
1093 sym = symstack[-1]
1094 if sym.type == 'error':
1580 # grammar rules. Returns a list of tuples (sym, prod) where sym in the symbol
3144 for sym, prod in undefined_symbols:
3145 errorlog.error("%s:%d: Symbol '%s' used, but not defined as a token or a rule",prod.file,prod.line,sym)