strdata.c revision 3e14f97f673e8a630f076077de35afdd43dc1587
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* data for string evaluator library
*/
#include <ast_standards.h>
#include "streval.h"
const unsigned char strval_precedence[35] =
/* opcode precedence,assignment */
{
/* MOD */ 14,
/* TIMES */ 14,
/* PLUS */ 13,
/* MINUS */ 13,
/* DIV */ 14,
/* COLON */ 0|NOASSIGN,
};
/*
* This is for arithmetic expressions
*/
const char strval_states[64] =
{
};
const char e_argcount[] = "%s: function has wrong number of arguments";
const char e_badnum[] = "%s: bad number";
const char e_moretokens[] = "%s: more tokens expected";
const char e_paren[] = "%s: unbalanced parenthesis";
const char e_badcolon[] = "%s: invalid use of :";
const char e_divzero[] = "%s: divide by zero";
const char e_synbad[] = "%s: arithmetic syntax error";
const char e_notlvalue[] = "%s: assignment requires lvalue";
const char e_recursive[] = "%s: recursion too deep";
const char e_questcolon[] = "%s: ':' expected for '?' operator";
const char e_function[] = "%s: unknown function";
const char e_incompatible[] = "%s: invalid floating point operation";
const char e_overflow[] = "%s: overflow exception";
const char e_domain[] = "%s: domain exception";
const char e_singularity[] = "%s: singularity exception";
const char e_charconst[] = "%s: invalid character constant";