Commit Graph

312 Commits

Author SHA1 Message Date
Ron Pinkas
f70ae7a150 + PP_InitStd() 2001-05-30 15:52:06 +00:00
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
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
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
Luiz Rafael Culik
48d4ea2222 See changelog 2001-05-20 19:15 GMT -3 2001-05-20 22:16:13 +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
Viktor Szakats
37b052fc7a 2001-05-15 15:02 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu> 2001-05-15 13:02:07 +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
Brian Hays
26cf690f08 2001-05-13 07:55 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-14 02:54:55 +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
Martin Vogel
ed53aa16bf 2001-05-10 14:30 GMT+0200 (MET DST) Martin Vogel <vogel@inttec.de> 2001-05-10 12:24:43 +00:00
Martin Vogel
3a3a9b26dd 2001-05-10 11:30 GMT+0200 (MET DST) Martin Vogel <vogel@inttec.de> 2001-05-10 09:39:48 +00:00
Martin Vogel
00b76ae87b 2001-05-06 20:30 CET Martin Vogel <vogel@inttec.de> 2001-05-06 18:30:21 +00:00
Ron Pinkas
e9fda3ebb9 2001-05-04 17:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
   * contrib/dot/rp_run.ch
     ! Few corrections to Pre Processor, and Interpreter.

   * include/hbclass.ch
     + Added support for METHOD implementations without requiring the CLASS Clause.
     + Added support for METHOD implementations without requiring the "()" if no parameters needed.
2001-05-05 00:12:14 +00:00
Ron Pinkas
07ac000f2f 2001-05-01 02:35 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/rp_run.ch
   * contrib/dot/pp.prg
     % Optimozed and improved handling of IF [ELSEIF] [ELSE] ENDIF in Interpreter mode.
     % Optimozed and improved handling of DO CASE [CASE] [OTHERWISE] END[CASE] in Interpreter mode.
     + Added support for FOR [LOOP] [EXIT] NEXT to Interpreter mode.
     + Added support for [DO] WHILE [LOOP] [EXIT] END[DO] to Interpreter mode.
     + Added support for file statics to Interpreter mode.
     + Added supprt for Command-Line Parameters to Interpreter mode.
       /* PP "FileName Param1 ParamN" -r */

   * tests/stripem.prg
     ! Resolved missing Default() and ToChar()
2001-05-01 10:02:07 +00:00
Martin Vogel
9064a7fa40 2001-04-28 23:15 CET Martin Vogel <vogel@inttec.de> 2001-04-28 21:12:26 +00:00
Alexander S.Kresin
24539cfa36 2001-04-26 22:10 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-04-26 18:14:52 +00:00
Martin Vogel
2222baa871 *** empty log message *** 2001-04-26 11:56:50 +00:00
Brian Hays
d6d95c9c5b 2001-04-26 01:15 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-04-26 08:12:48 +00:00
Alexander S.Kresin
99aa934ff6 2001-04-20 19:00 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-04-20 15:03:37 +00:00
Martin Vogel
b828880be3 *** empty log message *** 2001-04-20 14:37:45 +00:00
Martin Vogel
d0ebf10b16 *** empty log message *** 2001-04-20 14:35:41 +00:00
Martin Vogel
71dca700b4 *** empty log message *** 2001-04-20 08:55:10 +00:00
Brian Hays
ea6b49c5da 2001-04-19 01:30 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-04-19 08:25:16 +00:00
Martin Vogel
f0cf1b5502 ---------------------------------------------------------------------- 2001-04-18 20:35:43 +00:00
Martin Vogel
42b632707d *** empty log message *** 2001-04-18 13:57:58 +00:00
Martin Vogel
e7d9b9aff4 ---------------------------------------------------------------------- 2001-04-17 20:12:01 +00:00
Martin Vogel
816d0a9a50 ---------------------------------------------------------------------- 2001-04-17 16:48:48 +00:00
Martin Vogel
d6b722a525 ---------------------------------------------------------------------- 2001-04-17 16:00:52 +00:00
Brian Hays
e37935c8fe 2001-04-12 10:56 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-04-13 05:52:38 +00:00
David G. Holm
0e07837322 See ChangeLog entry 2001-04-12 15:00 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-04-12 18:56:30 +00:00
David G. Holm
5cc3068f99 See ChangeLog entry 2001-04-12 14:20 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-04-12 18:24:41 +00:00
Brian Hays
70519acca5 2001-04-09 12:30 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-04-09 19:27:12 +00:00
Ron Pinkas
a34ad40efb Minor corrections as per -W3 Warnings 2001-04-08 23:31:42 +00:00
Brian Hays
f4a6e32259 2001-04-04 01:20 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-04-04 08:19:24 +00:00