casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::RecordGram_global_functions_RecordGramFunctions Struct Reference

Global functions for flex/bison scanner/parser for RecordGram. More...

#include <RecordGram.h>

List of all members.

Public Member Functions

int recordGramParseCommand (const String &command)
 Declare the bison parser (is implemented by bison command).
void RecordGramerror (const char *)
 The yyerror function for the parser.
IntrecordGramPosition ()
 Give the current position in the string.
int recordGramInput (char *buf, int max_size)
 Declare the input routine for flex/bison.
String recordGramRemoveEscapes (const String &in)
 A function to remove escaped characters.
String recordGramRemoveQuotes (const String &in)
 A function to remove quotes from a quoted string.

Detailed Description

Global functions for flex/bison scanner/parser for RecordGram.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Synopsis

Global functions are needed to define the input of the flex scanner and to start the bison parser. The input is taken from a string.

Motivation

It is necessary to be able to give a record select command in ASCII. This can be used in a CLI or in the record browser to get a subset of a record or to sort a record.

Definition at line 77 of file RecordGram.h.


Member Function Documentation

The yyerror function for the parser.

It throws an exception with the current token.

Declare the input routine for flex/bison.

Declare the bison parser (is implemented by bison command).

Give the current position in the string.

This can be used when parse errors occur.

A function to remove escaped characters.

Definition at line 93 of file RecordGram.h.

A function to remove quotes from a quoted string.

Definition at line 97 of file RecordGram.h.


The documentation for this struct was generated from the following file: