class documentation

class ChartParserApp(object): (source)

Constructor: ChartParserApp(grammar, tokens, title)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method about Undocumented
Method apply_strategy Undocumented
Method bottom_up Undocumented
Method bottom_up_leftcorner Undocumented
Method bottom_up_leftcorner_strategy Undocumented
Method bottom_up_strategy Undocumented
Method destroy Undocumented
Method edit_grammar Undocumented
Method edit_sentence Undocumented
Method fundamental Undocumented
Method get_font_size Undocumented
Method help Undocumented
Method load_chart Load a chart from a pickle file
Method load_grammar Load a grammar from a pickle file
Method mainloop Enter the Tkinter mainloop. This function must be called if this demo is created from a non-interactive program (e.g. from a secript); otherwise, the demo will close as soon as the script completes.
Method reset Undocumented
Method resize Undocumented
Method save_chart Save a chart to a pickle file
Method save_grammar Undocumented
Method set_font_size Undocumented
Method set_grammar Undocumented
Method set_sentence Undocumented
Method top_down_init Undocumented
Method top_down_predict Undocumented
Method top_down_strategy Undocumented
Method view_matrix Undocumented
Method view_results Undocumented
Constant CHART_FILE_TYPES Undocumented
Constant GRAMMAR_FILE_TYPES Undocumented
Method _animate_strategy Undocumented
Method _apply_strategy Undocumented
Method _click_cv_edge Undocumented
Method _deselect_edge Undocumented
Method _display_rule Undocumented
Method _init_animation Undocumented
Method _init_bindings Undocumented
Method _init_buttons Undocumented
Method _init_chartview Undocumented
Method _init_fonts Undocumented
Method _init_menubar Undocumented
Method _init_parser Undocumented
Method _init_rulelabel Undocumented
Method _reset_parser Undocumented
Method _select_edge Undocumented
Method _select_matrix_edge Undocumented
Method _show_new_edge Undocumented
Method _stop_animation Undocumented
Constant _BU_LC_RULE Undocumented
Constant _BU_LC_STRATEGY Undocumented
Constant _BU_RULE Undocumented
Constant _BU_STRATEGY Undocumented
Constant _FUNDAMENTAL Undocumented
Constant _TD_INIT Undocumented
Constant _TD_PREDICT Undocumented
Constant _TD_STRATEGY Undocumented
Instance Variable _animate Undocumented
Instance Variable _animating Undocumented
Instance Variable _boldfont Undocumented
Instance Variable _chart Undocumented
Instance Variable _cp Undocumented
Instance Variable _cpstep Undocumented
Instance Variable _cv Undocumented
Instance Variable _font Undocumented
Instance Variable _grammar Undocumented
Instance Variable _matrix Undocumented
Instance Variable _results Undocumented
Instance Variable _root Undocumented
Instance Variable _rulelabel1 Undocumented
Instance Variable _rulelabel2 Undocumented
Instance Variable _selection Undocumented
Instance Variable _size Undocumented
Instance Variable _step Undocumented
Instance Variable _sysfont Undocumented
Instance Variable _tokens Undocumented
def __init__(self, grammar, tokens, title='Chart Parser Application'): (source)

Undocumented

def about(self, *e): (source)

Undocumented

def apply_strategy(self, strategy, edge_strategy=None): (source)

Undocumented

def bottom_up(self, *e): (source)

Undocumented

def bottom_up_leftcorner(self, *e): (source)

Undocumented

def bottom_up_leftcorner_strategy(self, *e): (source)

Undocumented

def bottom_up_strategy(self, *e): (source)

Undocumented

def destroy(self, *args): (source)

Undocumented

def edit_grammar(self, *e): (source)

Undocumented

def edit_sentence(self, *e): (source)

Undocumented

def fundamental(self, *e): (source)

Undocumented

def get_font_size(self): (source)

Undocumented

def help(self, *e): (source)

Undocumented

def load_chart(self, *args): (source)

Load a chart from a pickle file

def load_grammar(self, *args): (source)

Load a grammar from a pickle file

def mainloop(self, *args, **kwargs): (source)

Enter the Tkinter mainloop. This function must be called if this demo is created from a non-interactive program (e.g. from a secript); otherwise, the demo will close as soon as the script completes.

def reset(self, *args): (source)

Undocumented

def resize(self): (source)

Undocumented

def save_chart(self, *args): (source)

Save a chart to a pickle file

def save_grammar(self, *args): (source)

Undocumented

def set_font_size(self, size): (source)

Undocumented

def set_grammar(self, grammar): (source)

Undocumented

def set_sentence(self, sentence): (source)

Undocumented

def top_down_init(self, *e): (source)

Undocumented

def top_down_predict(self, *e): (source)

Undocumented

def top_down_strategy(self, *e): (source)

Undocumented

def view_matrix(self, *e): (source)

Undocumented

def view_results(self, *e): (source)

Undocumented

CHART_FILE_TYPES: list = (source)

Undocumented

Value
[('Pickle file', '.pickle'), ('All files', '*')]
GRAMMAR_FILE_TYPES: list = (source)

Undocumented

Value
[('Plaintext grammar file', '.cfg'),
 ('Pickle file', '.pickle'),
 ('All files', '*')]
def _animate_strategy(self, speed=1): (source)

Undocumented

def _apply_strategy(self): (source)

Undocumented

def _click_cv_edge(self, edge): (source)

Undocumented

def _deselect_edge(self): (source)

Undocumented

def _display_rule(self, rule): (source)

Undocumented

def _init_animation(self): (source)

Undocumented

def _init_bindings(self): (source)

Undocumented

def _init_buttons(self, parent): (source)

Undocumented

def _init_chartview(self, parent): (source)

Undocumented

def _init_fonts(self, root): (source)

Undocumented

def _init_menubar(self): (source)

Undocumented

def _init_parser(self, grammar, tokens): (source)

Undocumented

def _init_rulelabel(self, parent): (source)

Undocumented

def _reset_parser(self): (source)

Undocumented

def _select_edge(self, edge): (source)

Undocumented

def _select_matrix_edge(self, edge): (source)

Undocumented

def _show_new_edge(self, edge): (source)

Undocumented

def _stop_animation(self, *e): (source)

Undocumented

_BU_LC_RULE = (source)

Undocumented

Value
[BottomUpPredictCombineRule()]
_BU_LC_STRATEGY = (source)

Undocumented

Value
_BU_LC_RULE + _FUNDAMENTAL
_BU_RULE = (source)

Undocumented

Value
[BottomUpPredictRule()]
_BU_STRATEGY = (source)

Undocumented

Value
_BU_RULE + _FUNDAMENTAL
_FUNDAMENTAL = (source)

Undocumented

Value
[SingleEdgeFundamentalRule()]
_TD_INIT = (source)

Undocumented

Value
[TopDownInitRule()]
_TD_PREDICT = (source)

Undocumented

Value
[TopDownPredictRule()]
_TD_STRATEGY = (source)

Undocumented

Value
_TD_INIT + _TD_PREDICT + _FUNDAMENTAL
_animate = (source)

Undocumented

_animating: int = (source)

Undocumented

_boldfont = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

_grammar = (source)

Undocumented

Undocumented

_results = (source)

Undocumented

Undocumented

_rulelabel1 = (source)

Undocumented

_rulelabel2 = (source)

Undocumented

_selection = (source)

Undocumented

Undocumented

Undocumented

_sysfont = (source)

Undocumented

Undocumented