* source/compiler/simplex.c
+ Added support for multi-charcters Stream Start and Stream End delimiters.
+ Added overidable MACROs STREAM_OPEN(x), STREAM_APPEND(x)
! Removed Hardcoded limits, changed to overidable #defines: MAX_STREAM, MAX_STREAM_STARTER, MAX_STREAM_TERMINATOR,
MAX_STREAM_EXCLUSIONS
* source/macro/macroslx.c
+ Added:
#define MAX_STREAM 2048 /* Max length of in-line LITERAL */
#define MAX_STREAM_STARTER 2
#define MAX_STREAM_TERMINATOR 2
#define MAX_STREAM_EXCLUSIONS 2
* source/compiler/hbslex.c
+ Added:
#define MAX_STREAM 2048 /* Max length of in-line LITERAL */
#define MAX_STREAM_STARTER 7 /* "QOUT([" */
#define MAX_STREAM_TERMINATOR 4 /* "])\n" */
#define MAX_STREAM_EXCLUSIONS 2
* source/macro/macro.slx
* Replaced AND_IGNORE_DELIMITERS() with TEST_LEFT()
* source/compiler/harbour.slx
+ Added: #define NUMERALS_PER_LINE 512
* Replaced AND_IGNORE_DELIMITERS() with TEST_LEFT()
+ Added support for TEXT ENDTEXT (pending some more work in PP), nested [[]] strings and double delimiters stringified strings.
21 lines
514 B
C
21 lines
514 B
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#include "hbcomp.h"
|
|
#include "harboury.h"
|
|
#include "hbsetup.h"
|
|
#include "hberrors.h"
|
|
#include "hbdefs.h"
|
|
|
|
#define MAX_STREAM 2048 /* Max length of in-line LITERAL */
|
|
#define MAX_STREAM_STARTER 7 /* "QOUT([" */
|
|
#define MAX_STREAM_TERMINATOR 4 /* "])\n" */
|
|
#define MAX_STREAM_EXCLUSIONS 2
|
|
|
|
#define TOKEN_SIZE HB_SYMBOL_NAME_LEN + 1
|
|
|
|
#define SLX_RULES "harbour.slx"
|
|
|
|
#include "simplex.c"
|