view ply-3.8/test/pkg_test6/parsing/statement.py @ 9468:02576f427b4b

<oerjan> sled bin/slashlearn//7s![&].*!&& echo -n "$verb \'$key\': $(echo "$value" | sed \'s.^[/ ].\x030,04&\x0f.\')"!
author HackBot
date Thu, 27 Oct 2016 01:06:47 +0000
parents 343ff337a19b
children
line wrap: on
line source

# This file contains definitions of statement grammar

def p_statement_assign(t):
    'statement : NAME EQUALS expression'
    names[t[1]] = t[3]

def p_statement_expr(t):
    'statement : expression'
    t[0] = t[1]