Commit Graph

4033 Commits

Author SHA1 Message Date
David G. Holm
32cdeff3db See ChangeLog entry 2001-06-06 15:20 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-06 19:21:40 +00:00
David G. Holm
eea4a1eb00 See ChangeLog entry 2001-06-06 14:50 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-06 18:49:36 +00:00
Antonio Linares
2bf5dc706b *** empty log message *** 2001-06-05 18:05:48 +00:00
Antonio Linares
78d1eff767 *** empty log message *** 2001-06-05 18:00:28 +00:00
David G. Holm
7a5deeffde See ChangeLog entry 2001-06-04 17:45 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-04 21:46:23 +00:00
David G. Holm
f8df859e21 See ChangeLog entry 2001-06-04 16:15 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-06-04 20:19:14 +00:00
Alexander S.Kresin
e8e761df94 2001-06-04 16:55 GMT+3 Alexander Kresin <alex@belacy.belgorod.su> 2001-06-04 12:54:34 +00:00
Ron Pinkas
2c507cf450 2001-06-03 23:50 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     + Added #ifdef WIN to support using Windows MessageBox() instead of Alert(), use BLD pp -dWIN to activate.
   * contrib/dot/pp_harb.ch
     + Minor revision in TInnterpreter() class.
     + Added wrapper for MessageBox()
   * contrib/dot/rp_run.ch
     + Added #ifdef #command to translate
2001-06-04 06:55:16 +00:00
Jean-Francois Lefebvre
2089356692 2001-06-03 09:35 UTC+1 JFL (mafact) <jfl@mafact.com> 2001-06-03 07:32:42 +00:00
Ron Pinkas
6aaecd70e6 2001-06-01 10:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     + PP_RunArray( asLines, aParams )
     + PP_Exec( aProcedures, aInitExit, nProcId, aParams )
     * Modified all PP_RunXXXX() to use PP_Exec()
     * RP_Comp_Err() now repports source line and line number with the sysntax error.

   * contrib/dot/pp_harb.ch
     + Added Tinterpreter() class
         METHOD New()
         METHOD AddLine( cLine )
         METHOD SetScript( cText )
         METHOD Compile()
         METHOD Run()
         METHOD RunFile( cFile, aParams, cPPOExt, bBlanks ) INLINE PP_Run( cFile, aParams, cPPOExt, bBlanks )
         METHOD ClearRules()
         METHOD InitStdRules()
         METHOD LoadClass()
         METHOD LoadFiveWin()

   * contrib/dot/prgscrpt.prg
     * Modified to demonstrate TInterpreter() syntax.

   * include/hbapi.h
   * source/vm/arrays.c
     * Fixed bug, in hb_stackArrayFromParams() and modified to accept a frame base parameter.

   * source/vm/arrayshb.c
     + Added HB_APARAMS() PRG wrapper to hb_stackArrayFromParams() returning array with passed parameter of the function calling HB_APARAMS()

   * source/rtl/do.c
     * Added required frams base parameter in calls to hb_stackArrayFromParams(). This fix population of oErr:Args if error occurs.
2001-06-01 17:42:09 +00:00
Brian Hays
6e2e3ff528 2001-05-30 10:49 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-31 05:55:46 +00:00
Brian Hays
b19831d46e 2001-05-30 10:49 UTC-0800 Brian Hays <bhays@abacuslaw.com> 2001-05-31 05:43:42 +00:00
David G. Holm
233b599eff See ChangeLog entry 2001-05-30 14:15 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-05-30 18:16:44 +00:00
David G. Holm
76075848e5 See ChangeLog entry 2001-05-30 13:30 UTC-0400 David G. Holm <dholm@jsd-llc.com> 2001-05-30 17:34:30 +00:00
Ron Pinkas
73db18f32d 2001-05-30 09:05 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
     + PP_ResetRules()
     + PP_InitStd()
     + PP_LoadRun()
     + PP_LoadClass()
     + PP_LoadFW()
2001-05-30 16:07:37 +00:00
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
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