Package EasyExtend :: Module eegrammar :: Class GrammarUpdater
[hide private]
[frames] | no frames]

Class GrammarUpdater

object --+
         |
        GrammarUpdater
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, pth, options={})
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
langlet_path(self, pth)
 
read_offset(self)
 
track_change(self)
 
load_grammar(self)
Function used to create ext-language specific grammarObjects that contain dfa parser tables.
 
create_rules(self, lines)
 
_merge_ext(self, f_ext)
Create a new set of lines reading Grammar + Grammar.ext.
 
write_merged_grammar(self, grammar)
 
map_symbols(self, f_symbol, gram_lines)
Create new langlet specific xxx_symbol.py file.
 
local_grammar_path(self)
 
global_grammar_path(self)
 
grammar_ext_path(self)
 
symbol_path(self)
 
nfa_path(self)
 
map_extended(self, rules)
 
post_process_line(self, line)
 
_write_extended(self, f_symbol)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pth, options={})
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

load_grammar(self)

 

Function used to create ext-language specific grammarObjects that contain dfa parser tables. These grammar objects will be created using lifted nodes of the the used langlets.

Note: The grammarObj will be replaced by a newer version if the Grammar file is more recent than the parsetable.py module.

_merge_ext(self, f_ext)

 

Create a new set of lines reading Grammar + Grammar.ext. If Grammar.ext contains a rule R of the same name as Grammar replace R of Grammar with R of Grammar.ext