casa
$Rev:20696$
|
Global functions for flex/bison scanner/parser for MSFieldGram. More...
#include <MSFieldGram.h>
Public Member Functions | |
TableExprNode | msFieldGramParseCommand (const MSField &fieldSubTable, const TableExprNode &colAsTEN, const String &command, Vector< Int > &) |
Declare the bison parser (is implemented by bison command). | |
TableExprNode | baseMSFieldGramParseCommand (MSFieldParse *parser, const String &command, Vector< Int > &) |
void | MSFieldGramerror (const char *) |
The yyerror function for the parser. | |
const TableExprNode * | msFieldGramParseNode () |
Give the table expression node. | |
void | msFieldGramParseDeleteNode () |
Int & | msFieldGramPosition () |
Give the current position in the string. | |
int | msFieldGramInput (char *buf, int max_size) |
Declare the input routine for flex/bison. |
Global functions for flex/bison scanner/parser for MSFieldGram.
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 an image expression in ASCII. This can be used in glish.
Definition at line 72 of file MSFieldGram.h.
TableExprNode casa::MSFieldGram_global_functions_MSFieldGramFunctions::baseMSFieldGramParseCommand | ( | MSFieldParse * | parser, |
const String & | command, | ||
Vector< Int > & | |||
) |
void casa::MSFieldGram_global_functions_MSFieldGramFunctions::MSFieldGramerror | ( | const char * | ) |
The yyerror function for the parser.
It throws an exception with the current token.
int casa::MSFieldGram_global_functions_MSFieldGramFunctions::msFieldGramInput | ( | char * | buf, |
int | max_size | ||
) |
Declare the input routine for flex/bison.
TableExprNode casa::MSFieldGram_global_functions_MSFieldGramFunctions::msFieldGramParseCommand | ( | const MSField & | fieldSubTable, |
const TableExprNode & | colAsTEN, | ||
const String & | command, | ||
Vector< Int > & | |||
) |
Declare the bison parser (is implemented by bison command).
TableExprNode msFieldGramParseCommand (const MeasurementSet *ms, const String& command); TableExprNode msFieldGramParseCommand (MSSelectableTable *ms, const String& command,Vector<Int>&); TableExprNode msFieldGramParseCommand (const MeasurementSet *ms, const String& command,Vector<Int>&);
const TableExprNode* casa::MSFieldGram_global_functions_MSFieldGramFunctions::msFieldGramParseNode | ( | ) |
Give the table expression node.
Give the current position in the string.
This can be used when parse errors occur.