MSSpwGram.h
Classes
- Global Functions -- Global functions for flex/bison scanner/parser for MSSpwGram (full description)
Interface
- int msSpwGramParseCommand (const MeasurementSet *ms, const String& command)
- void MSSpwGramerror (char*)
- const TableExprNode *msSpwGramParseNode()
- Int& msSpwGramPosition()
- int msSpwGramInput (char* buf, int max_size)
- String msSpwGramRemoveEscapes (const String& in)
- String msSpwGramRemoveQuotes (const String& in)
Prerequisite
- MSSpwGram.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.
To Do
Member Description
Declare the bison parser (is implemented by bison command).
The yyerror function for the parser.
It throws an exception with the current token.
Give the table expression node.
Give the current position in the string.
This can be used when parse errors occur.
int msSpwGramInput (char* buf, int max_size)
Declare the input routine for flex/bison.
A function to remove escaped characters.
A function to remove quotes from a quoted string.