/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2010-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
static const char lookup_usage[] =
"[+PLUGIN?\findex\f]"
"[+DESCRIPTION?The lookup checks if the \avariable\a operand value "
"appears in the \afile\a operand, where \afile\a contains one value per "
"line.]"
"\n"
"\nfile variable\n"
"\n"
;
#include <dsslib.h>
#include <dt.h>
typedef struct Value_s
{
} Value_t;
typedef struct State_s
{
} State_t;
extern Dsslib_t dss_lib_lookup;
static int
{
char* s;
Value_t* v;
{
if (vm)
return -1;
}
goto bad;
for (;;)
{
{
case '?':
{
}
else
goto bad;
continue;
case ':':
else
goto bad;
continue;
}
break;
}
goto bad;
{
goto bad;
}
{
goto bad;
}
goto bad;
{
{
goto bad;
}
}
return 0;
bad:
return -1;
}
static int
{
return -1;
}
static int
{
return 0;
}
{
{
"lookup",
"look up variable value in file",
CXH,
0,
},
{0}
};
{
"lookup",
"lookup query"
"[-1lms5P?\n@(#)$Id: dss lookup query (AT&T Research) 2010-04-20 $\n]"
CXH,
0,
0,
0,
0,
0,
0,
&queries[0]
};