$Id: gparse.py,v 1.10 1999/03/18 15:07:03 brian Exp $
Imported modules
|
|
from parser import sequence2ast, compileast, ast2list
from symbol import test, suite, argument, arith_expr, shift_expr, subscriptlist, subscript, comparison, trailer, xor_expr, term, not_test, factor, atom, expr, arglist, power, and_test, and_expr
import sys
from token import STAR, NAME, RPAR, LPAR, NUMBER, DOT, STRING, COMMA, ISTERMINAL, LSQB, COLON
|
Functions
|
|
compile
dot_munge
item_munge
multi_munge
munge
slice_munge
|
|
compile
|
compile (
src,
file_name,
ctype,
)
|
|
dot_munge
|
dot_munge ( ast, i )
|
|
item_munge
|
item_munge ( ast, i )
|
|
multi_munge
|
multi_munge ( ast )
|
|
munge
|
munge (
ast,
STAR=STAR,
DOT=DOT,
LSQB=LSQB,
COLON=COLON,
trailer=trailer,
)
|
|
slice_munge
|
slice_munge ( ast, i )
|
|