Commit Graph

2206 Commits

Author SHA1 Message Date
Ron Pinkas
4e7bfbb146 Corrected Reset at <EOF> 2000-08-23 04:05:38 +00:00
Ron Pinkas
ce87f32df5 2000-08-22 10:40 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/simplex.c
   * source/compiler/harbour.slx
   * source/macro/macro.slx
     ! Removed un-needed calls to strlen().
2000-08-22 17:39:34 +00:00
Ron Pinkas
93f92c364e 2000-08-21 15:45 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/simplex.c
     ! Optimized Keywords and Words search, Lexer is 10-15% faster.

   * source/compiler/harbour.slx
   * source/macro/macro.slx
     ! Sorted Keywords and Words, to support optimized search, by simplex.
2000-08-21 22:47:22 +00:00
Alexander S.Kresin
4307f615c8 2000-08-21 15:18 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2000-08-21 11:20:21 +00:00
Viktor Szakats
a38b766d6d 2000-08-17 12:18 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-08-17 10:20:09 +00:00
Ron Pinkas
58f7a9f75c 2000-08-15 23:40 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.slx
    ! Corrected support for stringified strings to include nested string delimiters in the LITERAL.

    /* Please note, both lexers are subject to extreme rare incomatibility, with direct code as follow:

       ? [" 1st. char is a Quote, last charcter is not.] ; MoreCode := [other SB delimited str ending with quote."]

       I can't see that being a real problem on one hand, and I don't know that we can flag a specific LITERAL
       within any given line as a PP stringified, as opposed to direct code, unless PP generates a specific [inline]
       marker for lexer. Since Clipper PPO of stringified string does NOT compile, I tend to think that's what Clipper
       does. Finally, since Clipper can't compile such PPO of valid code, I would suggest that if we ever decide to
       correct this, we include the "marker" in PPO output too, making it valid.
    */
2000-08-16 06:44:09 +00:00
Ron Pinkas
926872a96b 2000-08-15 18:25 UTC+0800 Ron Pinkas <ron@profit-master.com>
* 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.
2000-08-16 03:09:07 +00:00
Ryszard Glab
28ee6341b3 ChangeLog 2000-08-15 20:40 2000-08-15 18:46:56 +00:00
Andi Jahja
3dfd013760 Correction on local name 2000-08-15 15:24:38 +00:00
Andi Jahja
0b2df68734 Indonesian Languange Updated 2000-08-15 15:17:03 +00:00
Viktor Szakats
0bf0970f51 2000-08-15 02:48 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-08-15 01:32:01 +00:00
Alexander S.Kresin
05860b2a31 2000-08-14 11:00 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2000-08-14 06:59:50 +00:00
Alexander S.Kresin
c20cc8251f 2000-08-13 15:58 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2000-08-13 12:00:55 +00:00
Antonio Linares
5c1b1da3ab 20000813-06:55 GMT+1 2000-08-13 05:00:21 +00:00
Ryszard Glab
a8de6652d6 ChangeLog 2000-08-12 15:20 UTC+0100 2000-08-12 13:12:55 +00:00
Alexander S.Kresin
99ebec5296 2000-08-11 11:25 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2000-08-11 07:28:30 +00:00
Ryszard Glab
f5a45f932b ChangeLog 2000-08-11 08-55 UTC+0100 2000-08-11 06:56:36 +00:00
David G. Holm
9e674b820d See ChangeLog entry 2000-08-10 14:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-08-10 18:37:35 +00:00
Ryszard Glab
7b71ae0103 ChangeLog 2000-08-10 17:33 UTC+0100 2000-08-10 15:29:07 +00:00
Ryszard Glab
12cb3fb990 ChangeLog 2000-09-10 11:50 UTC+0100 2000-08-10 09:49:35 +00:00
Ron Pinkas
bd7d70af1d 2000-08-09 20:00 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/simplex.c
     * Corrected support for BREAK ( ).
2000-08-10 02:59:07 +00:00
Ron Pinkas
d93298fc67 2000-08-09 17:15 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/simplex.c
     * Minor improvements.

   * source/compiler/harbour.slx
     - Removed un-needed cases in hb_lex_CustomAction() added by Ryszard.
     - Removed 1 rule each for WHILE CASE BREAK and RETURN to default trailing '[' to string delimiter.

   * tests/keywords.prg
     * Corrected few lines that had '[' as Array Index to String Delimiter after CASE, BREAK etc.

     /* Note keywords.prg should now be valid other than 3 (old) correct errors to do with FIELD*/
     SimpLex based harbour does compile it correctly Flex reports 26 incorrect errors.
2000-08-10 00:36:21 +00:00
David G. Holm
bf9e8abfaf See ChangeLog entry 2000-08-09 15:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-08-09 19:38:24 +00:00
Ryszard Glab
283b555df8 ChangeLog 2000-08-09 14:15 UTC+0100 2000-08-09 12:17:01 +00:00
Maurilio Longo
80ed9154f1 2000-08-08 12:11 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-08-09 08:18:44 +00:00
Ryszard Glab
1969cff6cd ChangeLog 2000-08-09 09:25 UTC+0100 2000-08-09 07:20:48 +00:00
Ryszard Glab
cc4d80de27 ChangeLog 2000-08-08 18:05 UTC+0100 2000-08-08 16:46:16 +00:00
Maurilio Longo
47251f48db 2000-08-08 12:11 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-08-08 10:15:44 +00:00
Ron Pinkas
c06672fe89 2000-08-08 02:00 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.c
    * Corrected display of errors statistics to use \r so that error count doen't appear connected to the last reported
      compiler line number progress.

  * source/macro/macro.slx
    - Removed unused asHold

  * source/compiler/harbour.slx
    - Removed unused asHold
    - Optimized some rules.

  * source/compiler/simplex.c
    - Removed unused asHold

  * tests/keywords.prg
    * Uncommented all code that was commented other than few lines which I added TODO: PP ... for (problem resulting from PP)
2000-08-08 09:11:01 +00:00
Ron Pinkas
07cad51b18 2000-08-07 12:20 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.y
     + Added support for OPTIONAL Var... as first parameter[s] of declared function.

   * tests/testdecl.prg
     + Added: DECLARE SomeFunc( OPTIONAL SomeVar AS STRING ) and DECLARE SomeFunc( OPTIONAL SomeVar AS STRING, OPTIONAL OtherVar )
       to test syntax of OPTIONAL as first parameter[s] of declared function.

   * source/compiler/harbour.slx
     - Removed few redundant rules.
     * Improved handling of INC/DEC
2000-08-07 19:25:21 +00:00
Ron Pinkas
c3b455e04f 2000-08-07 09:05 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.l
     + Added rule to allow DECLARE Var AS ... (like PRIVATE Var AS ...)

   * source/compiler/harbour.slx
     + Added rule to allow DECLARE Var AS ... (like PRIVATE Var AS ...)
     ! Corrected typo with DECLARE IDENTIFIER := rule.
     ! Corrcted compiler warnings reported by Maurilio

   * tests/testdecl.prg
     + Added DECLARE Var9 AS STRING to test this syntax too.
2000-08-07 16:09:45 +00:00
Maurilio Longo
8416d3d230 2000-08-07 16:20 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-08-07 14:27:41 +00:00
Ron Pinkas
62eb7c794f 2000-08-06 18:50 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.slx
     ! Few more memory optimizations.
2000-08-07 01:56:09 +00:00
Ron Pinkas
a9f0be4e28 2000-08-06 01:40 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.slx
     ! Optimized rules, removed ~100 rules. Rules are simpler, smaller, and faster.

   * source/compiler/simplex.c
     + Added: bIgnoreWords (allows for reserve words check to be suspened).
     + Added: iLastToken to save last read Token
     + Added immediate call to CUSTOM_ACTION for Keys, Words, and Selfs, without having to reduce first (when requested).
     * Optimized Keys search to not check bNewLine on every iteration.
2000-08-06 08:47:06 +00:00
Ron Pinkas
78339ed12d 2000-08-04 13:00 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.slx
     * Optimized rules for WITH
2000-08-05 01:58:04 +00:00
David G. Holm
2cb19f8a88 See ChangeLog entry 2000-08-04 19:00 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2000-08-04 23:03:59 +00:00
Ron Pinkas
c0d549bb9d 2000-08-03 18:50 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/macro/macro.slx
   * source/compiler/harbour.slx
     + Added (int) casting to isalpha() parameter calls.

   * source/compiler/hbslex.c
     * Removed extra empty line.

   * include/hberrors.h
     + Added #define HB_PP_ERR_TOO_MANY_INCLUDES 17

   * source/pp/ppcore.c
     + Addded: #define HB_PP_MAX_INCLUDES FOPEN_MAX - 5 - 1 (Victor ?)
     + Added : "Too many nested #includes, can\'t open: \'%s\'"
     + Added logic to protect against too many nested includes.
2000-08-04 19:54:25 +00:00
Ron Pinkas
209fbcb4ac 2000-08-03 18:50 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.c
    * Added call to hb_pp_init() between multiple prg compilations.
2000-08-04 01:49:00 +00:00
Maurilio Longo
ceb3b502aa 20000803-13:13 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-08-03 11:16:47 +00:00
Ron Pinkas
9af55ea917 2000-08-03 01:55 UTC+0800 Ron Pinkas <ron@profit-master.com>
* include/hberrors.h
     * Removed #define HB_PP_ERR_INCLUDE_CYCLIC

   * source/pp/ppcore.c
     * Removed Cyclic #include detection logic.

  * source/compiler/simplex.c
    * Removed some unneeded comments.
2000-08-03 09:03:44 +00:00
Ron Pinkas
a04e873b2e 2000-08-02 19:50 UTC+0800 Ron Pinkas <ron@profit-master.com>
* include/hberrors.h
     * Changed #define HB_PP_ERR_INCLUDE_SELF to HB_PP_ERR_INCLUDE_CYCLIC

   * source/pp/ppcore.c
     * Changed "Can\'t #include self \'%s\'" to "Cyclic #include not allowed: \'%s\'"
     * Changed self refernce #include detection, to detect any #include of an already opened file.
2000-08-03 02:53:33 +00:00
Ron Pinkas
1a7632b428 2000-08-02 14:10 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.l
     * Changed USUAL to ANYTYPE
2000-08-02 21:10:13 +00:00
Ron Pinkas
52ad519676 2000-08-02 14:05 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.slx
     * Changed VARIANT to ANYTYPE as it appear to be the prefered choice.

   * source/compiler/hbpcode.c
     * Changed \[ to [ to correct compiler warnings.
     * Changed Usual. to AnyType.
2000-08-02 21:07:29 +00:00
Ryszard Glab
47e68c5b5b ChangeLog 2000-08-02 21:10 UTC+0100 2000-08-02 19:04:42 +00:00
Ron Pinkas
038f3838d8 2000-08-02 11:30 UTC+0800 Ron Pinkas <ron@profit-master.com>
* hb_slex.bc
   * makefile.bc
     + Added: -Phb_comp -C to Flex (macro.l) as per GNU make.
     + Added: -phb_comp to Bison (macro.y) as per GNU make.

     /* We might need same change in other make files (VC etc.) */
     /* BTW, Do we have SimpLex support in those other make files? */

   * source/macro/macro.l
   * source/macro/macro.y
     - Removed: #define yylex hb_complex

   * source/macro/macroslx.c
     - Removed un-needed comment.

   * source/pp/ppcore.c
     ! Fixed unintended side effect of UPPER-CASING #include file names.
2000-08-02 18:35:20 +00:00
Ron Pinkas
685b646051 2000-08-02 09:40 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/macro/macro.l
   * source/macro/macro.y
     + Added: #define yylex hb_complex

   * source/pp/ppcore.c
     + Added check for the file path when checking self reference of #include.
     + Added logic to ignore case when checing self reference of #include.
2000-08-02 16:43:49 +00:00
Maurilio Longo
9d50b20089 20000802-12:58 GMT+2 Maurilio Longo <maurilio.longo@libero.it> 2000-08-02 11:04:22 +00:00
Ron Pinkas
ed8a203200 2000-08-01 20:15 UTC+0800 Ron Pinkas <ron@profit-master.com>
* include/hberrors.h
     + Added: #define HB_PP_ERR_INCLUDE_SELF                  17

   * source/pp/ppcore.c
     + Added Error: "Can\'t #include self \'%s\'"
     + Added logic to detect self referncing #include directive.
2000-08-02 03:19:43 +00:00
Viktor Szakats
19940ce68b 2000-08-02 03:31 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-08-02 01:32:35 +00:00
Viktor Szakats
f29fce5395 2000-08-02 03:14 UTC+0100 Victor Szakats <info@szelvesz.hu> 2000-08-02 01:17:26 +00:00