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