Commit Graph

4017 Commits

Author SHA1 Message Date
Ron Pinkas
7ecb733987 2001-05-30 08:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     ! Fixed PP_PreProLine() to not generate '#line n "<module>"' if module name is empty()
2001-05-30 15:44:31 +00:00
Ron Pinkas
e92d3a8188 2001-05-30 01:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     + Added PP_PreProText( cText [, acLines ] ) returns the pre-process text and optional file asLines with pre=processed lines.
     + Added PP_RunText( cText, [bPreProcess], [aParmas] ) returns the return value of executed code. bPreProcess defaults to .T.
     * Enhanced PP_Run( cFile [, aParams] ) to accept optioanl Array with Paramaters.
     ! Minor correction in NextExp().

   * contrib/dot/prgscrpt.prg
     * Rewrote sample to demonstarte new simpler wrapper functions:
2001-05-30 08:41:51 +00:00
Ron Pinkas
5cff3e5d7e // Note, aCompiledProcs MUST be an array.
PP_RunInit( aCompiledProcs )

   // Note the return value from PP_ExecProcedure() and no Procedure declaration in this 1st sample...
   Alert( PP_ExecProcedure( ;
        PP_CompileLine( ;
          PP_PreProLine( "Private cVar := 'Hi there'; ? cVar; Return 'Returned from embedded script!'" ), ;
                         0, aCompiledProcs, NIL, @nProcId )[1] ) )
2001-05-29 02:13:22 +00:00
Ron Pinkas
5125ec5218 Corrected 2 more typos 2001-05-28 22:04:21 +00:00
Ron Pinkas
11881115ac Corrected typos 2001-05-28 22:02:22 +00:00
Ron Pinkas
6ae9ae8dc2 2001-05-28 14:50 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     * Renamed PP_ProcessLine() to PP_PreProLine() and PP_ProcessFile() to PP_PreProFile() to allow 10 chars uniqueness.
     * Changed STATIC ExecuteMethod() to PP_ExecMethod() and STATIC ExecuteProcedure() to PP_ExecProcedure()
       to allow call from external modules, while preserving name space, and 10 chars uniqeness.
     * Removed STATIC from RP_*_Err() to allow calls from external modules.
     * Changed PP_CompileLine() to accept array of compiled procedures, instead of using a static.
       This allows thread safety, and support calls from external modules.
     * Changed RP_Run_Err() to accept 2nd parameter the Compiled Procedures Array, and 3rd parameter Module Name.
       This allows thread safety, and support calls from external modules.
     + Added PP_RunInit() to support initialization for Interpreter mode from external modules.
     + Added #ifdef __HARBOUR_ #include "pp_harb.ch" to allow Clipper to compile pp.prg.

   * contrib/dot/rp_run.ch
     * Changed ExecuteMethod() calls to PP_ExecMethod()

   + contrib/dot/pp_harb.ch
     + Added external file holding Harbour specific code that Clipper could not compile.

   + contrib/dot/prgscrpt.prg
     + Added sample to demonstrate PP interpreter embeded in a small prg to run prg driven scripts.
2001-05-28 21:48:50 +00:00
Ron Pinkas
453242b03f 2001-05-28 03:20 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     * Renamed Main() to PP_Main(), ProcessFile() to PP_ProcessFile() and ProcessLine() to PP_ProcessLine()
     * Qualified all "private" functions/procedures with STATIC.
2001-05-28 10:21:47 +00:00
Ron Pinkas
93b4ab7cd2 2001-05-28 02:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     ! Fixed support for multi-words in restricted list matching in NextExp()
2001-05-28 09:42:53 +00:00
Ron Pinkas
14154f017e 2001-05-27 21:20 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     * Few minor corrections to NextExp()
     ! Fixed generation of compiled rules results to always have marker place holders, even if no results exist.
     + Added TraceLog() message about repeatble results for non optional markers.
     * Updated burned-in rules for FiveWin.ch with newly generated rules.
     + Added few #ifdef FW to better support compilation with \fwh\samples\buildh.bat
     + Added #include "fwextern.ch" (#ifdef FW) to force link most FW modules.

   /* PP, if built like this:

         BUILDH pp -dFW

      (note -dFW) will produce PP.exe which will run most \fwh\samples\*.prg

      Test like this:

         PP Tutor01 -R

      etc... :-)

   */
2001-05-28 04:33:08 +00:00
Brian Hays
86ce6ffa7a 2001-05-27 02:19 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-27 21:12:46 +00:00
Brian Hays
bce863e76c 2001-05-26 10:25 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-27 05:19:21 +00:00
Ron Pinkas
da0e4678cd 2001-05-26 21:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     ! Fixed support for '$' in NextToken() and NextExp()
     + Added nAtSkipStr() to exclude content of strings when searching for ';'
     ! Fixed Multi Line logic to use nAtSkipStr() instead of At()
     + Added infile C versions for NextToken() and NextIdentifier()
     + Added precompiled rules for FiveWin.ch (Harbour)
     + Added precompiled rules for RP_Run.ch.

   * source/compiler/genc.c
     + Added few #include files to generation of inline C.
2001-05-27 04:14:30 +00:00
Ron Pinkas
efb9abf69c 2001-05-25 12:20 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     * Few corrections to NextToken() and CompileRule() to match Clipper behaviour regrding decimal point, and decimal numbers.

   * source/pp/ppcore.c
     - Removed unused variable as per compiler warning.

   * source/vm/hvm.c
     ! Fixed HB_P_POPFIELD and HB_P_POPVARIABLE to NOT pop top stack element pre-maturely.
       Item is now pop only after assignment took place. This fixes problem where the FieldPut rutine had to use the stack,
       thus overriding the assigned item.
2001-05-25 19:18:50 +00:00
Ron Pinkas
f0c9749ff2 Clipper always associate '.' with trailing digits, if any, even without digit prefix.
Corrected NextToken() and CompileRule() match compiler accordingly.
2001-05-25 05:44:45 +00:00
Ron Pinkas
057812a1c8 Corrected tokenizing of numbers with decimal point in NextToken() and CompileRule() 2001-05-25 04:02:33 +00:00
Ron Pinkas
fe40609370 Refined CompileRule() to use same logic as NextToken() when compiling the match patterns. 2001-05-25 01:33:03 +00:00
Brian Hays
0b3f153594 2001-05-24 01:09 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-24 07:58:32 +00:00
Ron Pinkas
59346e6bf8 2001-05-23 21:15 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbclass.ch
     ! Corrected few minor typos.

   * source/compiler/harbour.slx
   * source/macro/macro.slx
     - Commented few unused lines.

   * contrib/dot/pp.prg
     % Rewrote NextToken() and NextExp().
     + Added NextIdentifier()
     ! Found that Clipper PP is not processing tokens read by NextToken() and NextExp() so removed recursive support,
       and changed logic in ProcessLine() to linear process:
         #defines against all valid Identifiers - Expansion forces a resacn from top.
         #[x]translates against all tokens - Expansion forces a resacn from top of #defines.
         #[x]command agains the first token - Expansion forces a resacn from top of #defines.
     ! Corrected and refined many aspects of Interpreter mode.
     + Added ExecuteMethod() and support for OO syntax.
     + Added support for -I<includepaths...> command line switch.

   * contrib/dot/rp_run.ch
     + Added support for OO syntax.

   * contrib/dot/pp.txt
     * Updated documentation.
2001-05-24 04:52:09 +00:00
Jean-Francois Lefebvre
df0469310e 2001-05-21 21:35 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-21 19:48:54 +00:00
David G. Holm
f468640ed6 See ChangeLog entry 2001-05-21 14:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-05-21 18:32:17 +00:00
Luiz Rafael Culik
f4c38a8e03 See changelog 2001-05-21 08:30 GMT -3 2001-05-21 11:30:38 +00:00
Jean-Francois Lefebvre
7a15d4b230 2001-05-21 07:20 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-21 05:20:23 +00:00
Luiz Rafael Culik
48d4ea2222 See changelog 2001-05-20 19:15 GMT -3 2001-05-20 22:16:13 +00:00
Jean-Francois Lefebvre
bcf30692fc 2001-05-20 23:15 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-20 21:19:12 +00:00
Luiz Rafael Culik
6a79e0df22 See changelog 2001-05-20 13:35 GMT -3 2001-05-20 16:36:17 +00:00
Luiz Rafael Culik
5553f51101 See changelog 2001-05-19 19:00 GMT -3 2001-05-19 22:39:27 +00:00
Luiz Rafael Culik
abd074d0b7 See changelog 2001-05-19 19:00 GMT -3 2001-05-19 21:59:37 +00:00
David G. Holm
2ce7927d23 See ChangeLog entry 2001-05-18 13:20 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-05-18 17:22:06 +00:00
Alexander S.Kresin
996407054e 2001-05-18 09:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-05-18 05:55:41 +00:00
Alexander S.Kresin
6c44badd16 2001-05-17 13:25 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-05-17 09:25:05 +00:00
Alexander S.Kresin
b75cbcc5eb 2001-05-16 22:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-05-16 18:53:06 +00:00
Ron Pinkas
77b2ea6255 2001-05-16 09:00 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbclass.ch
     * Refined #error messages for OO compile time inegrity checks, as per input from Antonio and Dave.
2001-05-16 16:06:58 +00:00
Luiz Rafael Culik
ed3a74e294 See changelog 2001-05-16 08:10 GMT -3 2001-05-16 11:13:32 +00:00
Luiz Rafael Culik
e4eadba7d2 See changelog 2001-05-16 08:00 GMT -3 2001-05-16 11:04:21 +00:00
Alexander S.Kresin
b95903fc29 2001-05-16 10:45 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-05-16 06:42:04 +00:00
Jean-Francois Lefebvre
348e31507c 2001-05-15 20:15 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-15 18:15:51 +00:00
Alexander S.Kresin
53cd4b00ff 2001-05-15 20:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-05-15 16:54:42 +00:00
Viktor Szakats
37b052fc7a 2001-05-15 15:02 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu> 2001-05-15 13:02:07 +00:00
Viktor Szakats
c2e365bf9a 2001-05-15 13:46 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu> 2001-05-15 11:46:55 +00:00
Chen Kedem
74f956a70d 2001-05-15 13:20 UTC+0300 Chen Kedem <niki@actcom.co.il> 2001-05-15 10:19:59 +00:00
David G. Holm
1619608493 See ChangeLog entry 2001-05-14 21:10 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-05-15 01:09:17 +00:00
Brian Hays
b677c6824e 2001-05-14 02:09 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-14 21:04:43 +00:00
Jean-Francois Lefebvre
185c620932 2001-05-14 21:30 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-14 19:29:47 +00:00
Alexander S.Kresin
0193067d92 2001-05-14 22:14 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-05-14 18:15:39 +00:00
Brian Hays
26cf690f08 2001-05-13 07:55 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-14 02:54:55 +00:00
Jean-Francois Lefebvre
cb8fa099bd 2001-05-13 22:30 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-05-13 20:30:28 +00:00
Ron Pinkas
94596e571d 2001-05-13 09:40 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbclass.ch
     % Removed many redundant rules (recently added for OO integrity checks).

     /* Found the PP problem that stopped me from implementing this optimized form before.
        It seems the PP has a problem with "[" follwing a an identifier without a space prefix like:
        #command TEST[([<param,...>])]

        It seems to work OK like this:
        #command TEST [([<param,...>])]
     */
2001-05-13 16:44:24 +00:00
Martin Vogel
b1cf172910 2001-05-12 18:30 GMT+0200 Martin Vogel <vogel@inttec.de> 2001-05-12 16:29:33 +00:00
Ron Pinkas
0a4e3d34ff 2001-05-11 14:15 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbclass.ch
     + Added syntax declaration support for METHOD ... OPERATOR ...
2001-05-11 21:16:22 +00:00
Ron Pinkas
49c45dda27 2001-05-11 09:00 UTC-0800 Ron Pinkas <ron@profit-master.com>
* include/hbclass.ch
     ! Fixed declaration support for OnError() METHODS
     ! Fixed support for Methods having space prefixing the "( ... )" in the method implementation.
     + Refined #error messages to report the Class Name .

   * source/pp/ppcore.c
     * Removed recently added but not required support of #define expansion in #error directive.
2001-05-11 16:06:37 +00:00