2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
gbx_expression.h
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2022-09-12 15:13:13 +02:00
|
|
|
(c) 2000-2017 Benoît Minisini <benoit.minisini@gambas-basic.org>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __GBX_EXPRESSION_H
|
|
|
|
#define __GBX_EXPRESSION_H
|
|
|
|
|
|
|
|
#include "gb_table.h"
|
|
|
|
#include "gbx_class.h"
|
|
|
|
|
|
|
|
typedef
|
2016-01-03 17:44:24 +01:00
|
|
|
struct {
|
|
|
|
void *parent;
|
|
|
|
char *source;
|
|
|
|
int len;
|
|
|
|
PATTERN *pattern;
|
|
|
|
int pattern_count;
|
|
|
|
PATTERN *current;
|
|
|
|
PATTERN *tree;
|
|
|
|
CLASS exec_class;
|
|
|
|
CLASS_LOAD class_load;
|
|
|
|
FUNCTION func;
|
|
|
|
CLASS_CONST *cst;
|
|
|
|
ushort *code;
|
|
|
|
ushort ncode;
|
|
|
|
ushort ncode_max;
|
|
|
|
TABLE *table;
|
|
|
|
TABLE *string;
|
|
|
|
/*TABLE *variable;*/
|
|
|
|
CLASS **class;
|
|
|
|
char **unknown;
|
|
|
|
int *var;
|
|
|
|
short nvar;
|
|
|
|
short last_code;
|
|
|
|
short last_code2;
|
2009-08-24 16:19:32 +02:00
|
|
|
short assign_code;
|
2016-01-03 17:44:24 +01:00
|
|
|
int stack_usage;
|
|
|
|
void *op;
|
2010-08-29 22:51:10 +02:00
|
|
|
char *error;
|
2016-01-03 17:44:24 +01:00
|
|
|
unsigned analyze : 1;
|
|
|
|
unsigned rewrite : 1;
|
2009-07-14 04:24:54 +02:00
|
|
|
unsigned comment : 1;
|
2016-01-03 17:44:24 +01:00
|
|
|
unsigned custom : 1;
|
|
|
|
//unsigned _reserved : 12;
|
|
|
|
}
|
|
|
|
//PACKED
|
|
|
|
EXPRESSION;
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
typedef
|
2016-01-03 17:44:24 +01:00
|
|
|
struct {
|
|
|
|
SYMBOL sym;
|
|
|
|
int local;
|
|
|
|
}
|
|
|
|
EVAL_SYMBOL;
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
#endif
|