TableGram.h
Classes
- Global Functions -- Global functions for flex/bison scanner/parser for TableGram (full description)
Interface
- int tableGramParseCommand (const String& command)
- void TableGramerror (char*)
- Int& tableGramPosition()
- int tableGramInput (char* buf, int max_size)
- String tableGramRemoveEscapes (const String& in)
- String tableGramRemoveQuotes (const String& in)
- MVTime tableGramParseDateTime (const String& in)
- Double tableGramParseTime (const String& in)
Review Status
- Reviewed By:
- UNKNOWN
- Date Reviewed:
- before2004/08/25
- Programs:
- Tests:
Prerequisite
- TableGram.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 a table select command in ASCII.
This can be used in a CLI or in the table browser to get a subset
of a table or to sort a table.
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 current position in the string.
This can be used when parse errors occur.
int tableGramInput (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.
A function to parse a date/time string.
A function to parse a time/position string.
The value is returned in radians.