casacore
Loading...
Searching...
No Matches
casacore::MSFeedGram_global_functions_MSFeedGramFunctions Struct Reference

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).
 
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.
 
IntmsFeedGramPosition ()
 Give the current position in the string.
 
int msFeedGramInput (char *buf, int max_size)
 Declare the input routine for flex/bison.
 

Detailed Description

Global functions for flex/bison scanner/parser for MSFeedGram

Intended use:

Internal

Prerequisite

  • MSFeedGram.l and.y (flex and bison grammar)

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 72 of file MSFeedGram.h.

Member Function Documentation

◆ baseMSFeedGramParseCommand()

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

◆ MSFeedGramerror()

void casacore::MSFeedGram_global_functions_MSFeedGramFunctions::MSFeedGramerror ( const char * )

The yyerror function for the parser.

It throws an exception with the current token.

◆ msFeedGramInput()

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

Declare the input routine for flex/bison.

◆ msFeedGramParseCommand() [1/3]

TableExprNode casacore::MSFeedGram_global_functions_MSFeedGramFunctions::msFeedGramParseCommand ( const MeasurementSet * ms,
const String & command,
Vector< Int > & selectedFeeds1,
Vector< Int > & selectedFeeds2,
Matrix< Int > & selectedFeedPairs )

◆ msFeedGramParseCommand() [2/3]

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.

◆ msFeedGramParseCommand() [3/3]

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 )

◆ msFeedGramPosition()

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: