Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

moot::mootLexfreqsCompiler Class Reference

Lexical frequency parameter-file compiler. More...

#include <mootLexfreqsCompiler.h>

Inheritance diagram for moot::mootLexfreqsCompiler:

Inheritance graph
[legend]
Collaboration diagram for moot::mootLexfreqsCompiler:

Collaboration graph
[legend]
List of all members.

Public Methods

Public Attributes


Detailed Description

mootLexfreqsCompiler compiles lexical frequency parameter files into internal frequency tables, using a lexer/parser pair generated by Alain Coetmeur's flex++ and bison++ programs.


Constructor & Destructor Documentation

moot::mootLexfreqsCompiler::mootLexfreqsCompiler   [inline]
 

Default constructor

virtual moot::mootLexfreqsCompiler::~mootLexfreqsCompiler   [inline, virtual]
 

Default destructor


Member Function Documentation

mootLexfreqs* moot::mootLexfreqsCompiler::parse_from_file FILE *    file,
const char *    filename = 0
[inline]
 

parse n-gram parameters from a C-stream. Returns NULL on error.

mootLexfreqs* moot::mootLexfreqsCompiler::parse_from_string const char *    string,
const char *    srcname = 0
[inline]
 

parse one regular expression from a C-string. Returns NULL on error.

mootLexfreqs* moot::mootLexfreqsCompiler::parse_lexfreqs  
 

low-level parsing method: parse all remaining n-grams from the currently selected input source.

void moot::mootLexfreqsCompiler::select_streams FILE *    in,
FILE *    out,
const char *    my_srcname = 0
[inline]
 

low-level input selection: input from a C-stream.

void moot::mootLexfreqsCompiler::select_string const char *    in,
const char *    my_srcname = 0
[inline]
 

low-level input selection: input from a C-string. WARNING: do NOT free the string 'in' until parsing has finished!

virtual void moot::mootLexfreqsCompiler::yyerror const char *    msg [virtual]
 

yyerror: report parse errors.

virtual int moot::mootLexfreqsCompiler::yylex   [virtual]
 

Implements mootLexfreqsParser.

virtual void moot::mootLexfreqsCompiler::yywarn const char *    msg [virtual]
 

yywarn: report parse warnings.

Reimplemented from mootLexfreqsParser.


Member Data Documentation

char* moot::mootLexfreqsCompiler::objname
 

objname: name to use for object when reporting errors -- default: "mootLexfreqsCompiler" Warning: no copying is performed on this string; you must alloc&free it yourself!

char* moot::mootLexfreqsCompiler::srcname
 

srcname: name to use for current file when reporting errors -- default: "(unknown)" Warning: no copying is performed on this string; you must alloc&free it yourself!

mootLexfreqsLexer moot::mootLexfreqsCompiler::theLexer
 

flex++ lexer object


The documentation for this class was generated from the following file:
Generated on Mon Sep 11 16:10:36 2006 for libmoot by doxygen1.2.18