HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.12.0
|
A compiler holding information needed to compile XREs. More...
Public Member Functions | |
def | __init__ |
Construct compiler for unknown format transducers. More... | |
def | __init__ |
Create compiler for impl format transducers. More... | |
def | compile |
Compile a transducer defined by xre. More... | |
def | define_function |
todo More... | |
def | define_list |
todo More... | |
def | define_transducer |
Add a definition macro. More... | |
def | define_xre |
Add a definition macro. More... | |
def | getOutputToConsole |
(Windows-specific) Whether output is printed to console instead of standard output. More... | |
def | is_definition |
Whether name is a definition. More... | |
def | is_function_definition |
Whether name is a function definition. More... | |
def | set_expand_definitions |
Whether definitions are expanded. More... | |
def | set_verbosity |
Set the verbosity of the compiler. More... | |
def | setOutputToConsole |
(Windows-specific) Whether output is printed to console instead of standard output. More... | |
def | undefine |
todo More... | |
A compiler holding information needed to compile XREs.
def __init__ | ( | self | ) |
Construct compiler for unknown format transducers.
def __init__ | ( | self, | |
impl | |||
) |
Create compiler for impl format transducers.
def compile | ( | self, | |
xre | |||
) |
Compile a transducer defined by xre.
May return a pointer to empty transducer on non-fatal error. A None pointer is returned on fatal error, if abort is not called.
def define_function | ( | self, | |
name, | |||
arguments, | |||
xre | |||
) |
todo
def define_list | ( | self, | |
name, | |||
symbol_list | |||
) |
todo
def define_transducer | ( | self, | |
name, | |||
transducer | |||
) |
Add a definition macro.
Compilers will replace arcs labeled name, with a transducer transducer in later phases of compilation.
def define_xre | ( | self, | |
name, | |||
xre | |||
) |
Add a definition macro.
Compilers will replace arcs labeled name, with a transducer defined by regular expression xre in later phases of compilation.
def getOutputToConsole | ( | self | ) |
(Windows-specific) Whether output is printed to console instead of standard output.
def is_definition | ( | self, | |
name | |||
) |
Whether name is a definition.
def is_function_definition | ( | self, | |
name | |||
) |
Whether name is a function definition.
def set_expand_definitions | ( | self, | |
v | |||
) |
Whether definitions are expanded.
def set_verbosity | ( | self, | |
v | |||
) |
Set the verbosity of the compiler.
def setOutputToConsole | ( | self, | |
v | |||
) |
(Windows-specific) Whether output is printed to console instead of standard output.
def undefine | ( | self, | |
name | |||
) |
todo