casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::MSFeedGram_global_functions_MSFeedGramFunctions Struct Reference

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

#include <MSFeedGram.h>

Public Member Functions

TableExprNode msFeedGramParseCommand (MSFeedParse *thisParser, const TableExprNode &col1TEN, const TableExprNode &col2TEN, const String &command, Vector< Int > &selectedFeeds1, Vector< Int > &selectedFeeds2, Matrix< Int > &selectedFeedPairs)
 Declare the bison parser (is implemented by bison command). More...
 
TableExprNode msFeedGramParseCommand (Table &subTable, TableExprNode &col1TEN, TableExprNode &col2TEN, const String &command, Vector< Int > &selectedFeeds1, Vector< Int > &selectedFeeds2, Matrix< Int > &selectedFeedPairs)
 
TableExprNode msFeedGramParseCommand (const MeasurementSet *ms, const String &command, Vector< Int > &selectedFeeds1, Vector< Int > &selectedFeeds2, Matrix< Int > &selectedFeedPairs)
 
TableExprNode baseMSFeedGramParseCommand (MSFeedParse *parser, const String &command, Vector< Int > &selectedFeeds1, Vector< Int > &selectedFeeds2, Matrix< Int > &selectedFeedPairs)
 
void MSFeedGramerror (const char *)
 The yyerror function for the parser. More...
 
IntmsFeedGramPosition ()
 Give the current position in the string. More...
 
int msFeedGramInput (char *buf, int max_size)
 Declare the input routine for flex/bison. More...
 

Detailed Description

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

Intended use:

Internal

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 an image expression in ASCII. This can be used in glish.

Definition at line 74 of file MSFeedGram.h.

Member Function Documentation

TableExprNode casacore::MSFeedGram_global_functions_MSFeedGramFunctions::baseMSFeedGramParseCommand ( MSFeedParse parser,
const String command,
Vector< Int > &  selectedFeeds1,
Vector< Int > &  selectedFeeds2,
Matrix< Int > &  selectedFeedPairs 
)
void casacore::MSFeedGram_global_functions_MSFeedGramFunctions::MSFeedGramerror ( const char *  )

The yyerror function for the parser.

It throws an exception with the current token.

int casacore::MSFeedGram_global_functions_MSFeedGramFunctions::msFeedGramInput ( char *  buf,
int  max_size 
)

Declare the input routine for flex/bison.

TableExprNode casacore::MSFeedGram_global_functions_MSFeedGramFunctions::msFeedGramParseCommand ( MSFeedParse thisParser,
const TableExprNode col1TEN,
const TableExprNode col2TEN,
const String command,
Vector< Int > &  selectedFeeds1,
Vector< Int > &  selectedFeeds2,
Matrix< Int > &  selectedFeedPairs 
)

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

It returns a TaQL expression tree.

TableExprNode casacore::MSFeedGram_global_functions_MSFeedGramFunctions::msFeedGramParseCommand ( Table subTable,
TableExprNode col1TEN,
TableExprNode col2TEN,
const String command,
Vector< Int > &  selectedFeeds1,
Vector< Int > &  selectedFeeds2,
Matrix< Int > &  selectedFeedPairs 
)
TableExprNode casacore::MSFeedGram_global_functions_MSFeedGramFunctions::msFeedGramParseCommand ( const MeasurementSet ms,
const String command,
Vector< Int > &  selectedFeeds1,
Vector< Int > &  selectedFeeds2,
Matrix< Int > &  selectedFeedPairs 
)
Int& casacore::MSFeedGram_global_functions_MSFeedGramFunctions::msFeedGramPosition ( )

Give the current position in the string.

This can be used when parse errors occur.


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