This link has been bookmarked by 13 people . It was first bookmarked on 25 May 2007, by York Jong.
Here each function accepts a single argument, t, which is a tuple. The values of t[i] are mapped to grammar symbols as shown here:
def p_statement_plus(t): 'statement : statement ADDOP term' # ^ ^ ^ ^ # t[0] t[1] t[2] t[3] t[0] = t[1] + t[3]
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.