gambas-source-code/main/lib/eval/eval_analyze.h
Benoît Minisini 1608babe38 Enhance the Gambas code analyzer to speed up the new highlighting component.
[COMPILER]
* BUG: Synchronize reserved words enumeration with reserved words table.

[GB.EVAL]
* NEW: Highlight: 'Analyze()' got a new optional boolean parameter that stops the analyze when the "%>" token is encountered.
* NEW: Highlight: 'IsFunction' is a new property that returns if 'Highlight.Analyze()' got a function declaration.
* NEW: Highlight: 'LengthBefore' is a new property that returns the number of analyzed characters before the possible rewrite.
2023-10-28 23:36:10 +02:00

32 lines
1.1 KiB
C

/***************************************************************************
eval_analyze.h
(c) 2000-2017 Benoît Minisini <benoit.minisini@gambas-basic.org>
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.
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.
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.
***************************************************************************/
#ifndef __EVAL_ANALYZE_H
#define __EVAL_ANALYZE_H
#include "eval.h"
void EVAL_analyze(const char *src, int len, int state, EVAL_ANALYZE *result, bool rewrite, bool limit);
void EVAL_analyze_exit(void);
#endif