2006-03-07 16:02:58 +00:00
|
|
|
/*
|
2006-10-22 12:39:30 +00:00
|
|
|
* $Id: run.h,v 1.20 2006-10-22 12:39:30 bacon Exp $
|
2006-03-07 16:02:58 +00:00
|
|
|
*/
|
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
#ifndef _SSE_AWK_RUN_H_
|
|
|
|
#define _SSE_AWK_RUN_H_
|
2006-03-07 16:02:58 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
#ifndef _SSE_AWK_AWK_H_
|
|
|
|
#error Never include this file directly. Include <sse/awk/awk.h> instead
|
2006-03-07 16:02:58 +00:00
|
|
|
#endif
|
|
|
|
|
2006-04-14 16:26:00 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
/* if you change this, you have to change __assop_str in tree.c */
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_ASSOP_NONE,
|
|
|
|
SSE_AWK_ASSOP_PLUS,
|
|
|
|
SSE_AWK_ASSOP_MINUS,
|
|
|
|
SSE_AWK_ASSOP_MUL,
|
|
|
|
SSE_AWK_ASSOP_DIV,
|
|
|
|
SSE_AWK_ASSOP_MOD,
|
2006-10-22 12:39:30 +00:00
|
|
|
SSE_AWK_ASSOP_EXP
|
2006-04-14 16:26:00 +00:00
|
|
|
};
|
|
|
|
|
2006-03-07 16:02:58 +00:00
|
|
|
enum
|
|
|
|
{
|
2006-03-30 16:31:50 +00:00
|
|
|
/* if you change this, you have to change
|
2006-04-11 15:44:30 +00:00
|
|
|
* __binop_str in tree.c and __binop_func in run.c accordingly. */
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_BINOP_LOR,
|
|
|
|
SSE_AWK_BINOP_LAND,
|
|
|
|
SSE_AWK_BINOP_IN,
|
2006-04-29 12:09:29 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_BINOP_BOR,
|
|
|
|
SSE_AWK_BINOP_BXOR,
|
|
|
|
SSE_AWK_BINOP_BAND,
|
2006-03-31 12:04:14 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_BINOP_EQ,
|
|
|
|
SSE_AWK_BINOP_NE,
|
|
|
|
SSE_AWK_BINOP_GT,
|
|
|
|
SSE_AWK_BINOP_GE,
|
|
|
|
SSE_AWK_BINOP_LT,
|
|
|
|
SSE_AWK_BINOP_LE,
|
2006-03-31 12:04:14 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_BINOP_LSHIFT,
|
|
|
|
SSE_AWK_BINOP_RSHIFT,
|
2006-03-31 12:04:14 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_BINOP_PLUS,
|
|
|
|
SSE_AWK_BINOP_MINUS,
|
|
|
|
SSE_AWK_BINOP_MUL,
|
|
|
|
SSE_AWK_BINOP_DIV,
|
|
|
|
SSE_AWK_BINOP_MOD,
|
2006-10-22 12:39:30 +00:00
|
|
|
SSE_AWK_BINOP_EXP,
|
2006-04-12 03:54:12 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_BINOP_CONCAT,
|
|
|
|
SSE_AWK_BINOP_MA,
|
|
|
|
SSE_AWK_BINOP_NM
|
2006-03-31 12:04:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2006-04-02 12:45:04 +00:00
|
|
|
/* if you change this, you have to change
|
|
|
|
* __unrop_str in tree.c accordingly. */
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_UNROP_PLUS,
|
|
|
|
SSE_AWK_UNROP_MINUS,
|
|
|
|
SSE_AWK_UNROP_NOT,
|
|
|
|
SSE_AWK_UNROP_BNOT
|
2006-04-02 12:45:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
/* if you change this, you have to change
|
|
|
|
* __incop_str in tree.c accordingly. */
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_INCOP_PLUS,
|
|
|
|
SSE_AWK_INCOP_MINUS
|
2006-03-07 16:02:58 +00:00
|
|
|
};
|
|
|
|
|
2006-07-12 07:25:15 +00:00
|
|
|
enum
|
|
|
|
{
|
2006-08-27 15:29:21 +00:00
|
|
|
/* this table should match __bvtab in parse.c.
|
2006-10-22 11:34:53 +00:00
|
|
|
* in addition, sse_awk_setglobal also counts
|
2006-08-27 15:29:21 +00:00
|
|
|
* on the order of these values */
|
2006-07-12 07:25:15 +00:00
|
|
|
|
2006-10-22 11:34:53 +00:00
|
|
|
SSE_AWK_GLOBAL_ARGC,
|
|
|
|
SSE_AWK_GLOBAL_ARGV,
|
|
|
|
SSE_AWK_GLOBAL_CONVFMT,
|
|
|
|
SSE_AWK_GLOBAL_ENVIRON,
|
|
|
|
SSE_AWK_GLOBAL_ERRNO,
|
|
|
|
SSE_AWK_GLOBAL_FILENAME,
|
|
|
|
SSE_AWK_GLOBAL_FNR,
|
|
|
|
SSE_AWK_GLOBAL_FS,
|
|
|
|
SSE_AWK_GLOBAL_IGNORECASE,
|
|
|
|
SSE_AWK_GLOBAL_NF,
|
|
|
|
SSE_AWK_GLOBAL_NR,
|
|
|
|
SSE_AWK_GLOBAL_OFMT,
|
|
|
|
SSE_AWK_GLOBAL_OFS,
|
|
|
|
SSE_AWK_GLOBAL_ORS,
|
|
|
|
SSE_AWK_GLOBAL_RS,
|
|
|
|
SSE_AWK_GLOBAL_RT,
|
|
|
|
SSE_AWK_GLOBAL_RSTART,
|
|
|
|
SSE_AWK_GLOBAL_RLENGTH,
|
|
|
|
SSE_AWK_GLOBAL_SUBSEP
|
2006-07-12 07:25:15 +00:00
|
|
|
};
|
|
|
|
|
2006-03-07 16:02:58 +00:00
|
|
|
#endif
|