release.txt

来自「在手机操作系统symbina上使用的一个脚本扩展语言的代码实现,可以参考用于自己」· 文本 代码 · 共 1,156 行 · 第 1/3 页

TXT
1,156 行
字号
included file. Was SynatxError - now raises EErrIncludeProcedure;


Changes by Howard:

Extracted stack class definitions and inlines from OPLTDEF.H and OPLTDEF.INL
to OPLSTACK.H and OPLSTACK.INL.
This emptied OPLTDEF.INL which has now been removed from the project.

1) ICON now doesn't write the ICN file if it already exists and the
APP...ENDA is empty.
If it doesn't exist or if not empty APP..ENDA, an ICN will be generated
with default components provided for any missing components.
This allows developers to copy the ICN from the PC to the app
directory.
FLAGS 0 can be used to force replacement of the ICN file - needed
eg. when you use just FLAGS 1 and then want to remove the flags.


2) Restored USESPRITE for Opl1993 only. Needed for comaprison with .REF files.

3) gBUTTON now has 3 optional final arguments giving bitmap, mask and layout.
The byte value at the IP after the opcode is the count of optional
args, 0, 1, 2 or 3. The new syntax is:
 GBUTTON text$, type%, w%, h%, st%[, bitMapId& [,maskId&[,layout%]]]
The bitmaps are of type CFbsBitmap* as returned by the bitmap OPX function:
	BITMAPLOAD&:(name$,index&)
declared in header file OPXBMP.OXH

4) Added POINTERFILTER filter%,mask%

5) Fixed T_TRAN to allow wildcards again - RDir::Read() was just
returning the filename component (in TEntry).

6) Added mCASC which works exactly as mCARD but specifies a cascade card.

7) Removed *.MDP from ttran\li.prj in keeping with current practice

8) Bug fixes:
   - Added INCHA27.OPH to LI.PRJ as required by BUGS.OPL test module
   - Changed COplModuleLexer::IncludeL() to open the include filename rather than the source
   	ie. from:
		User::LeaveIfError(iTextSystem->OpenSource(aFileName,iCurrentSource.iSource));
	to:
		User::LeaveIfError(iTextSystem->OpenSource(includeName.FullName(),iCurrentSource.iSource));
	which was causing BUGS.OPL to fail
	Copied a good BUGS.OPO to TTRAN\BUGS.REF to replace the bad one that was there.

9) Made T_TRAN and TMODTRAN call RFbsSession::FbsStartup(), Connect()
   and Disconnect() at startup. Needed for creation of ICN files with ICON
   Do any other tests support APP...ENDA? If so they need fixing too.


Version 0.01.013
================
Now also uses for the first time: FBSCLI and APPARC

Changes by Howard:

1) Now parses icon file names for the ICON keyword. If no mbm is
specified, uses z\system\data\defopicn.mbm. This default icon will be
replaced by a better looking one at a later date.
The default path for the MBM is the same as that of the nodule
containing the ICON keyword.

You can have multiple ICON declarations in the APP...ENDA construct,
but normal and mask bitmaps must alternate. Normal and mask icons
must be same size:

APP myApp,333   rem uid
  ICON "mbm32"  rem 32*32
  ICON "mbm32m" rem mask
  ICON ...
ENDA

or

APP myApp,333
  ICON "myApp"  rem all the app's icons
ENDA

2) In APP...ENDA, FLAGS 1 now specifies 'RequiresDocument' flag in
the ICN file - there is currently a bug however preventing the Shell
from reading this info.



Version 0.01.012
================
1) Fixed:
        IF 1.0
        IF &1
giving false conditions.
        

Version 0.01.011
================
Later changes by Nick:

1) Changed class declaration for TOplSignature to fix the BYREF bug for:
    declare opx date,$10       
      DTDateTimeDiff&:(start&,end&,BYREF a&,BYREF b&,BYREF c&,BYREF d&,BYREF e&,BYREF f&,BYREF g&)
    end declare
which happened when there were more than 9 arguments. 
A bit flag was overflowing and it thought that the function was a statistical one 
like MIN & MAX, so pushed a float by value instead.

This fix also now produces the required errors for wrong arg count, wrong byref type:

    dtdatetimediff&:(start&,end&,a%,b)
    dtdatetimediff&:(start&,end&,a&,b&,c&,d&)


2) CModuleParser::DeclareBlocks() fixed to allow blank lines in OPX declarations,
hence will also allow REM statements which count as blank lines.


Extra by Howard:
1) Added:
- ReturnFromEval Qcode added                    extended 0x21
- GETEVENT32 var ev&()                          extended 0x22
- GETEVENTA32 var stat%,var ev&()               extended 0x23
- gCOLOR red%,green%,blue%                      extended 0x24
- SETFLAGS f&                                   extended 0x25
- SETDOC doc$ replaces SETNAME name$            extended 0x26
- DaysToDate days&,var y%, var m%, var d%       extended 0x27
- gINFO32 var info&()                           extended 0x28
- IOWAITSTAT32 var stat&                        extended 0x29
- COMPACT dbase$                                extended 0x2A
- DBMS transaction keywords:
        - BEGINTRANS                            extended 0x2B
        - COMMITTRANS                           extended 0x2C
        - ROLLBACK                              extended 0x2D
        - r%=INTRANS                            func 0x57
- GETEVENTC(var stat%)                          func 0x56
- e$=ERRX$                                      func 0xD8
- doc$=GETDOC$                                  func 0xD9
           gives extended error message "Error in module\proc,missExt1,missExt2,..."
           useful when error trapped in OPL program but need to find details

2) Long font ids supported for gFONT, FONT and gCLOCK with mode%=10
   (font ids 3-13 are still mapped by runtime to rom fonts as required)

3) gLOADFONT changed back to Opl1993 args (UID is required for gFONT/FONT only)

4) gCREATEBIT(width%,height%[,mode%]) now supported - extra arg mode% for greyscale mode

5) Added mode% for gPEEKLINE  ix%, x%, y%, %(), ln%[,mode%=-1 (for opler1)]

6) Changed many cases of KOplAllTargets to KOplOpl1993Only (eg. USR,CALL, SPRITE)

7) Removed UseSprite s% which is not supported by Opl1993 runtime nor by Opler1

8) Added TBool COplModuleParser::TargetIsOpl1993() const

9) gINFO is now for Opl1993 only - gINFO32 required for Era

 
Version 0.01.010
================
Nick T (Nov 20th)
E32(70),F32(036), STORE(026).

1) Added new test TErrLoc to test the location of translation errors
 - numerous minor bug fixes as a result.

2) Tidied up Token/File/ErrorOffset inteface to lexer classes. There
is now a single

IMPORT_C virtual TInt TokenOffset() const

memeber function which does the right thing.


3) Opler1 targeted translations now produce a 'Proper'
CDirectFileStore.

The Uid's remain as before.
The Root Stream has the following structure:

        TUid            KOplInterpretterId
        TUint16         TranslatorVersion
        TUint16         RuntimeVersion required
        TStreamId       Id of stream containing source name
        TStreamId       Id of stream containing procedure table
        TStreamId       Id of Stream containgin Opx info

The Source stream just contains an Lbc with the source name
The Proceure table stream??
???

???


Version 0.01.009
================
Nick T (Nov 4th)
E32(70),F32(036), STORE(026).

NOTE: This is currently built with the B2 releases. MNT.CMD and
\OPLT\TTRAN\RUN.CMD will need changing for the new WINS Z: plan.

ARM Release DLL  51K

1) Added BookMark, KillBookMark and gotoBookMark as per Howard's
changes.

2) Changed the output file format to be Application Architecture
compliant when target is EOplTargetP1 (opler1).

For Opler1 the Syntax for APP is now APP name,&appUID and this is
used as UID3 in the object module.

The module file format is currently practically unchanged apart from
this - it's all in the root stream apart from teh old file signature
and file format version which have been scrapped.


3) Added interface for EVAL. COplEvalTranslator which will populate a
COplEvalQcode containing the qcode, the maximum stack depth  and the
names and number of arguments of all the procedures called.

NOTE: Within the Qcode the 'address' of the procedures is an Index
which can be used to obtain the name from the COplEvalQcode (see
TEVLTRAN-Test3 for details).

Known problems
--------------
        UDEB build of OPLT won't link when built from the command
line, but links fine if built from within MSVC - go figure!

        gCreate won't accept 6 parameters (turning it into
                                        gCreateGrey)
        Error positioning on operator type mismatch is off.

Version 0.01.008
================
Nick T (Oct 4th)
E32(66),F32(031), STORE(021). 

ARM Release DLL  49K

Overall changes:
---------------
Substantially re-written the back-end handling. As a result the DLL
is about 10% smaller and a lot faster. also there is provision for
passing through an external back end to the tranmslator. This is
intended to allow a Munger to be written with the minimal amount of
extra effort (example with next release). base class for back-end is
given in OPLTBACKE.H and detailks of 16-bit back end are in
OPL16GEN.CPP.

Opl now uses streams internaly (and will soon do so to produce the OPO
module). Hence a new dependecy on store.


Changes to the interface:
------------------------

Integrated the change to KTextTranLiineDelimiter into the main
release.

Split TTextTranError into a base class TTranslateError and a derived
class TSourceTranslateError. TTranslatError just holds the error
number and an offset. TSourceTranslateError adds in a file name. This
is in preparation for adding the EVAL line translation.

TranslateChunk will return KErrNone if all went well and there's more
to go. KErrEof if teh end of the file has been reached successfully &
KErrGeneral for any traslator specific error. The Error number can
then be obtained from the TSourceTranslateError passed. (see
T_TRAN.CPP for details).

StartTranslateL() has acquired a new parameter: a
CtextTranslator::TDebug enum. This can be ERelease or EDebug and does
the obvious. Currently the translator only has partial Debugging support :- it
puts out the Statement16 and Statement32 qcodes at the start of each
statement. This has not bee well tested so should not be relied on.

Changes toLanguage/Keywords:
---------------------------
    Modify
    Insert
    Cancel
    Put
    Delete dBase$,table$
    gCircle
 &  gEllipse

are all now supported when translating for opler1. Also, when
translating for opler1 gLoadFont MUST have two arguments
(findName%,UId&)


The following qcodes are now being used:
0x67 - Statement16 followed by a 16-bit offset of teh statement in
        th text file.
0xdc - gCircle - single argument on the stack
0xdd - gEllipse - two arguments on the stack

Extended:
 0x19 -- Statemnt32 - followed by a 32-bit offset of the statement in
         the file
 0x1a - modify
 0x1b - Insert
 0x1c - Cancel 
 0x1d - Put
 0x1e - Delete table (DELETE used with two arguments).



Known Problems:
        gCreate won't accept 6 parameters (turning it into
                                        gCreateGrey)
        Error positioning on operator type mismatch is off.

Version 0.01.007
================
Nick T (June 22th)

Only tested WINS DEB build.[Zoe needs this in a hurry & I haven't
built that latest ARM release of E32 & F32 yet].

Changed Tran Version & Min runtime version to 2.00A for the
EOplTargetP1 target.

Added in OPX table for EOplTargetP1 as described in OPX.DOC.

Fixed bug in Operator proecedence code causing problems translating
SOKOBAN.

Fixed alloc heaven bug when when tarnslating files containing OPX
declarations.

Version 0.01.006
================
Nick T (May 28th)

Retrospective  releasenotes (didn't incldue them in the release!)

Added suppot for CONST, INCLUDE & DECLARE OPX constructs. DECLAR OPX
stuff is incomplete only in that it doesn write out the list of
externals to the file.

Allso up'd the size allowed for identifiers to 32 characters for
Opler1 target (EOplTargetP1).

Version 0.01.005
================
Nick T (May 22nd)

T_TRAN extended so that it can either be invoked with a command line
or without. If nothing is passed on the command line, it will prompt
for the module or modules to translate.

First kosher ARM build - it's way too big (approx 54K!!!) & it's too slow. A
deal of this can be fixed by moving the Reserved words into a resource
file and loading them up into the hash table when the translator is
constructed.

Version 0.01.004
================
Nick T (May 15th)

Changed over to the new CTextTranslate, MTextSourceSystem, MTextSystem
interface.

TextTran.h & TextTran.inl are temporarily housed here until they make
their way to TextEd.

Added T_TRAN test program which is a command line translator ala
HHTRAN et. al. At the moment will only deal with CrLF text files, but
easily expandable - see .\TTRAN\TEXTFILE.*

Got the MNT and other files into some semblance of good shape

Version 0.01.003
================
Nick T (April 30th)

First proper release (hallelujah!):

Functionally complete for translating Opl1993 OPL modules.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?