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

moot::mootClassfreqsCompiler Class Reference

Lexical-class frequency parameter-file compiler. More...

#include <mootClassfreqsCompiler.h>

Inheritance diagram for moot::mootClassfreqsCompiler:

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

Collaboration graph
[legend]
List of all members.

Public Methods

Public Attributes


Detailed Description

mootClassfreqsCompiler compiles lexical-class 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::mootClassfreqsCompiler::mootClassfreqsCompiler   [inline]
 

Default constructor

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

Default destructor


Member Function Documentation

mootClassfreqs* moot::mootClassfreqsCompiler::parse_classfreqs  
 

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

mootClassfreqs* moot::mootClassfreqsCompiler::parse_from_file FILE *    file,
const char *    filename = ((void *)0)
[inline]
 

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

mootClassfreqs* moot::mootClassfreqsCompiler::parse_from_string const char *    string,
const char *    srcname = ((void *)0)
[inline]
 

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

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

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

void moot::mootClassfreqsCompiler::select_string const char *    in,
const char *    my_srcname = ((void *)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::mootClassfreqsCompiler::yyerror const char *    msg [virtual]
 

yyerror: report parse errors.

virtual int moot::mootClassfreqsCompiler::yylex   [virtual]
 

Implements mootClassfreqsParser.

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

yywarn: report parse warnings.

Reimplemented from mootClassfreqsParser.


Member Data Documentation

char* moot::mootClassfreqsCompiler::objname
 

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

char* moot::mootClassfreqsCompiler::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!

mootClassfreqsLexer moot::mootClassfreqsCompiler::theLexer
 

flex++ lexer object


The documentation for this class was generated from the following file:
Generated on Wed Jul 28 15:48:05 2004 for libmoot by doxygen1.2.15