qse/ase/awk/run.h

104 lines
1.8 KiB
C
Raw Normal View History

2006-03-07 16:02:58 +00:00
/*
2006-07-12 07:25:15 +00:00
* $Id: run.h,v 1.15 2006-07-12 07:25:15 bacon Exp $
2006-03-07 16:02:58 +00:00
*/
#ifndef _XP_AWK_RUN_H_
#define _XP_AWK_RUN_H_
#ifndef _XP_AWK_AWK_H_
#error Never include this file directly. Include <xp/awk/awk.h> instead
#endif
2006-04-14 16:26:00 +00:00
enum
{
/* if you change this, you have to change __assop_str in tree.c */
XP_AWK_ASSOP_NONE,
XP_AWK_ASSOP_PLUS,
XP_AWK_ASSOP_MINUS,
XP_AWK_ASSOP_MUL,
XP_AWK_ASSOP_DIV,
XP_AWK_ASSOP_MOD,
XP_AWK_ASSOP_EXP
};
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-03-29 16:39:04 +00:00
XP_AWK_BINOP_LOR,
XP_AWK_BINOP_LAND,
2006-04-29 12:09:29 +00:00
XP_AWK_BINOP_IN,
2006-03-29 16:39:04 +00:00
XP_AWK_BINOP_BOR,
2006-03-30 16:24:10 +00:00
XP_AWK_BINOP_BXOR,
2006-03-29 16:39:04 +00:00
XP_AWK_BINOP_BAND,
2006-03-31 12:04:14 +00:00
2006-03-07 16:02:58 +00:00
XP_AWK_BINOP_EQ,
XP_AWK_BINOP_NE,
XP_AWK_BINOP_GT,
XP_AWK_BINOP_GE,
XP_AWK_BINOP_LT,
2006-03-31 12:04:14 +00:00
XP_AWK_BINOP_LE,
XP_AWK_BINOP_LSHIFT,
XP_AWK_BINOP_RSHIFT,
XP_AWK_BINOP_PLUS,
XP_AWK_BINOP_MINUS,
XP_AWK_BINOP_MUL,
XP_AWK_BINOP_DIV,
2006-04-11 15:44:30 +00:00
XP_AWK_BINOP_MOD,
2006-04-12 03:54:12 +00:00
XP_AWK_BINOP_EXP,
2006-06-29 15:40:30 +00:00
XP_AWK_BINOP_CONCAT,
2006-04-12 03:54:12 +00:00
XP_AWK_BINOP_MA,
XP_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. */
XP_AWK_UNROP_PLUS,
XP_AWK_UNROP_MINUS,
XP_AWK_UNROP_NOT,
XP_AWK_UNROP_BNOT
};
enum
{
/* if you change this, you have to change
* __incop_str in tree.c accordingly. */
XP_AWK_INCOP_PLUS,
XP_AWK_INCOP_MINUS
2006-03-07 16:02:58 +00:00
};
2006-07-12 07:25:15 +00:00
enum
{
/* this table should match __bvtab in parse.c */
XP_AWK_GLOBAL_ARGC,
XP_AWK_GLOBAL_ARGIND,
XP_AWK_GLOBAL_ARGV,
XP_AWK_GLOBAL_CONVFMT,
XP_AWK_GLOBAL_FIELDWIDTHS,
XP_AWK_GLOBAL_ENVIRON,
XP_AWK_GLOBAL_ERRNO,
XP_AWK_GLOBAL_FILENAME,
XP_AWK_GLOBAL_FNR,
XP_AWK_GLOBAL_FS,
XP_AWK_GLOBAL_INORECASE,
XP_AWK_GLOBAL_NF,
XP_AWK_GLOBAL_NR,
XP_AWK_GLOBAL_OFMT,
XP_AWK_GLOBAL_OFS,
XP_AWK_GLOBAL_ORS,
XP_AWK_GLOBAL_RS,
XP_AWK_GLOBAL_RT,
XP_AWK_GLOBAL_RSTART,
XP_AWK_GLOBAL_RLENGTH,
XP_AWK_GLOBAL_SUBSEP
};
2006-03-07 16:02:58 +00:00
#endif