casa
$Rev:20696$
|
Global functions for flex/bison scanner/parser for RecordGram. More...
#include <RecordGram.h>
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. | |
Int & | recordGramPosition () |
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. |
Global functions for flex/bison scanner/parser for RecordGram.
Internal
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.
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.
void casa::RecordGram_global_functions_RecordGramFunctions::RecordGramerror | ( | const char * | ) |
The yyerror function for the parser.
It throws an exception with the current token.
int casa::RecordGram_global_functions_RecordGramFunctions::recordGramInput | ( | char * | buf, |
int | max_size | ||
) |
Declare the input routine for flex/bison.
int casa::RecordGram_global_functions_RecordGramFunctions::recordGramParseCommand | ( | const String & | command | ) |
Declare the bison parser (is implemented by bison command).
Give the current position in the string.
This can be used when parse errors occur.
String casa::RecordGram_global_functions_RecordGramFunctions::recordGramRemoveEscapes | ( | const String & | in | ) | [inline] |
A function to remove escaped characters.
Definition at line 93 of file RecordGram.h.
String casa::RecordGram_global_functions_RecordGramFunctions::recordGramRemoveQuotes | ( | const String & | in | ) | [inline] |
A function to remove quotes from a quoted string.
Definition at line 97 of file RecordGram.h.