Aegis  4.25.D505
Functions
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/sem.h File Reference
#include <common/nstring.h>

Go to the source code of this file.

Functions

void sem_integer (long n)
void sem_real (double n)
void sem_string (const nstring &text)
void sem_enum (const nstring &name)
void sem_list (void)
void sem_list_end (void)
void sem_field (const nstring &name)
void sem_field_end (void)
void sem_parse (meta_context &ctx, input &ifp)
void sem_parse_file (meta_context &ctx, const nstring &filename)
void sem_parse_env (meta_context &ctx, const nstring &name)

Function Documentation

void sem_enum ( const nstring name)

The sem_enum function is called when the parser sees a name in an enumeration tag place.

Parameters:
nameThe name of the enumerand.
void sem_field ( const nstring name)

The sem_field function is called when the parser sees the start of a name=value field. The field_end method will be called after the value has been parsed.

Parameters:
nameThe nam eof the field.
void sem_field_end ( void  )

The sem_field_end function is called by the parser when it sees the end of a name=value field.

void sem_integer ( long  n)

The sem_integer function is called by the parser when an integer value is seen.

Parameters:
nThe value of the number.
void sem_list ( void  )

The sem_list function is called when the parser sees the start of a list value. The pop method will be called after the value has been parsed.

void sem_list_end ( void  )

The sem_list_end function is called by the parser when it sees the end of a list element.

void sem_parse ( meta_context ctx,
input ifp 
)

The sem_parse function is used to parse the given input, a redirect the parser actions through the given context.

Parameters:
ctxThe context for the parser's actions.
ifpThe input stream to be parsed.
void sem_parse_env ( meta_context ctx,
const nstring name 
)

The sem_parse_env function is used to parse the given environment variable, and redirect the parser actions through the given context.

Parameters:
ctxThe context for the parser's actions.
nameThe name of the environment variable to be parsed.
void sem_parse_file ( meta_context ctx,
const nstring filename 
)

The sem_parse_file function is used to parse the given file, and redirect the parser actions through the given context.

Parameters:
ctxThe context for the parser's actions.
filenameThe name of the file to be parsed.
void sem_real ( double  n)

The sem_real function is called by the parser when a floating point value is seen.

Parameters:
nThe value of the number.
void sem_string ( const nstring text)

The sem_string function is called by the parser when a string value is seen.

Parameters:
textThe value of the string constant.