Home | Trees | Index | Help |
---|
Package PyFoam :: Package ThirdParty :: Package ply :: Module yacc |
|
Classes | |
---|---|
MiniProduction |
|
Parser |
|
Production |
|
YaccProduction |
|
YaccSymbol |
Exceptions | |
---|---|
YaccError |
Function Summary | |
---|---|
add_function(f)
| |
add_lalr_lookaheads(C)
| |
add_lookaheads(lookbacks,
followset)
| |
add_precedence(plist)
| |
add_production(f,
file,
line,
prodname,
syms)
| |
augment_grammar(start)
| |
build_lritems()
| |
compute_first1()
| |
compute_follow(start)
| |
compute_follow_sets(ntrans,
readsets,
inclsets)
| |
compute_lookback_includes(C,
trans,
nullable)
| |
compute_nullable_nonterminals()
| |
Find each symbol that can be reached from the start symbol. | |
compute_read_sets(C,
ntrans,
nullable)
| |
Raise an error for any symbols that don't terminate. | |
digraph(X,
R,
FP)
| |
dr_relation(C,
trans,
nullable)
| |
find_nonterminal_transitions(C)
| |
first(beta)
| |
initialize_vars()
| |
lr0_closure(I)
| |
lr0_goto(I,
x)
| |
lr0_items()
| |
lr_init_vars()
| |
lr_parse_table(method)
| |
lr_read_tables(module,
optimize)
| |
lr_write_tables(modulename,
outputdir)
| |
Mark all symbols that are reachable from symbol s. | |
parse(*args,
**kwargs)
| |
reads_relation(C,
trans,
empty)
| |
traverse(x,
N,
stack,
F,
X,
R,
FP)
| |
validate_dict(d)
| |
validate_file(filename)
| |
verify_productions(cycle_check)
| |
yacc(method,
debug,
module,
tabmodule,
start,
check_recursion,
optimize,
write_tables,
debugfile,
outputdir)
| |
yacc_cleanup()
|
Variable Summary | |
---|---|
str |
__version__ = '2.2'
|
SRE_Pattern |
_is_identifier = ^[a-zA-Z0-9_-]+$
|
dict |
_lr0_cidhash = {}
|
cStringIO
,
md5
,
os
,
re
,
sys
,
types
debug_file
,
default_lr
,
error_count
,
tab_module
,
yaccdebug
,
_add_count
,
_INSTANCETYPE
Function Details |
---|
compute_reachable()Find each symbol that can be reached from the start symbol. Print a warning for any nonterminals that can't be reached. (Unused terminals have already had their warning.) |
compute_terminates()Raise an error for any symbols that don't terminate. |
mark_reachable_from(s, Reachable)Mark all symbols that are reachable from symbol s. |
Variable Details |
---|
__version__
|
_is_identifier
|
_lr0_cidhash
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 | http://epydoc.sf.net |