gse-test.cc File Reference

#include "config.h"
#include <cstdlib>
#include <cstdio>
#include <string>
#include <GetOpt.h>
#include "dods-datatypes.h"
#include "BaseType.h"
#include "Grid.h"
#include "DDS.h"
#include "GSEClause.h"
#include "parser.h"
#include "gse.tab.hh"
#include "debug.h"

Include dependency graph for gse-test.cc:

Go to the source code of this file.

Defines

#define YY_BUFFER_STATE   (void *)

Functions

void gse_delete_buffer (void *buffer)
int gse_lex ()
int gse_parse (void *arg)
int gse_restart (FILE *in)
void * gse_string (const char *yy_str)
void gse_switch_to_buffer (void *new_buffer)
int main (int argc, char *argv[])
void test_gse_scanner (bool show_prompt)
void test_gse_scanner (const char *str)
void test_parser (const string &dds_file)

Variables

int gse_debug
const string options = "sS:p:dv"
const string prompt = "gse-test: "
const string usage
const string version = "$Revision: 18315 $"


Define Documentation

#define YY_BUFFER_STATE   (void *)

Definition at line 57 of file gse-test.cc.


Function Documentation

void gse_delete_buffer ( void *  buffer  ) 

int gse_lex (  ) 

Referenced by test_gse_scanner().

int gse_parse ( void *  arg  ) 

int gse_restart ( FILE *  in  ) 

void* gse_string ( const char *  yy_str  ) 

void gse_switch_to_buffer ( void *  new_buffer  ) 

int main ( int  argc,
char *  argv[] 
)

Definition at line 89 of file gse-test.cc.

References gse_debug, options, test_gse_scanner(), test_parser(), usage, and version.

Here is the call graph for this function:

void test_gse_scanner ( bool  show_prompt  ) 

Definition at line 162 of file gse-test.cc.

References gse_lex(), and prompt.

Here is the call graph for this function:

void test_gse_scanner ( const char *  str  ) 

Definition at line 150 of file gse-test.cc.

References gse_delete_buffer(), gse_restart(), gse_string(), and gse_switch_to_buffer().

Referenced by main().

Here is the call graph for this function:

void test_parser ( const string &  dds_file  ) 

Definition at line 226 of file gse-test.cc.

References libdap::dods_float32_c, libdap::dods_float64_c, libdap::dods_grid_c, libdap::dods_int16_c, libdap::dods_int32_c, gse_parse(), gse_restart(), and prompt.

Here is the call graph for this function:


Variable Documentation

int gse_debug

Referenced by main().

const string options = "sS:p:dv"

Definition at line 77 of file gse-test.cc.

Referenced by main().

const string prompt = "gse-test: "

Definition at line 76 of file gse-test.cc.

void usage

Initial value:

 "gse-test [-s [-S string] -d -v [-p dds file]\n\
                     Test the grid selections expression evaluation software.\n\
                     Options:\n\
                     -s: Feed the input stream directly into the expression scanner, does\n\
                     not parse.\n\
                     -S: <string> Scan the string as if it was standard input.\n\
                     -p: <dds file> parse stdin using the grid defined in the DDS file.\n\
                     -d: Turn on expression parser debugging.\n\
                     -v: Print the version of expr-test"

Definition at line 78 of file gse-test.cc.

Referenced by main().

const string version = "$Revision: 18315 $"

Definition at line 75 of file gse-test.cc.


Generated on Tue Jun 24 09:33:50 2008 for libdap++ by  doxygen 1.5.5