Welcome, Guest.
Please login or register.
xblite.exe revision 2.41.16
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    XBLite Compiler  ›  xblite.exe revision 2.41.16
Users Browsing Forum
No Members and 1 Guests

xblite.exe revision 2.41.16   This thread currently has 2,949 views. Print Print Thread
2 Pages « 1 2 All Recommend Thread
Guy1954
September 12, 2017, 10:57pm Report to Moderator Report to Moderator

Medium Member
Posts: 174
September 13, 2017

Hi Xbliters,

Please find attached: xblite_2_41_16_13sep17_src.zip (revision 16 - 13 September 2017), which contains:
- xblite.x: source of the Xblite compiler
- BuildXbiteExe_bat.txt to compile it (rename it first BuildXbiteExe.bat)
- makexblite.mak: the make file used by BuildXbiteExe.bat
- xst.dec: contains the new types
'
' r71-new+++
  $$ASCII               = 19          ' Ansi WinAPIs
  $$UTF8                = 20          ' UTF 8 bit encoding
  $$UTF16LE             = 21          ' Little Endian 16-bit encoding (Windows)
  $$WIDE                = 21          ' Unicode WinAPIs
  $$UTF16BE             = 22          ' Big Endian 16-bit encoding (Internet)
  $$UTF32LE             = 23          ' 32-bit Intel machines
  $$UTF32BE             = 24          ' Big Endian 32-bit encoding (Motorola, ...)
  $$UNICODE             = 25          ' True Unicode string type
' r71-new~~~
'
' r71-new+++
' r71-new+++
' Explicit Integers (imported data record)
'
$$INT8                =  2          ' == $$SBYTE : 8-bit integer
$$UINT8               =  3          ' == $$UBYTE : unsigned 8-bit integer
$$INT16LE             =  4          ' == $$SSHORT: Little Endian 16-bit integer (Windows)
$$UINT16LE            =  5          ' == $$USHORT: Little Endian unsigned 16-bit integer (Windows)
$$INT32LE             =  6          ' == $$SLONG : Little Endian 32-bit integer (Windows)
$$UINT32LE            =  7          ' == $$ULONG : Little Endian unsigned 32-bit integer (Windows)
$$INT64LE             = 12          ' == $$GIANT : Little Endian 64-bit integer (Windows)
' r71-new~~~
'
' r71-new+++
' Byte Order Marks (borrowed from Alan Gents' unc.x)
'
'
     $$BOM8$          = "\xEF\xBB\xBF"          ' UTF-8
     $$BOM16$         = "\xFF\xFE"               ' Normal   16 bit BOM - LE machine stores as FFFE - BE machine stores as FEFF
     $$INVERSE_BOM16$ = "\xFE\xFF"               ' Inverted 16 bit BOM - used to emulate BE output on LE machine
     $$BOM32$         = "\xFF\xFE\x00\x00"     ' Normal   32 bit BOM - LE machine stores as FFFE0000 - BE machine stores as 0000FEFF
     $$INVERSE_BOM32$ = "\x00\x00\xFE\xFF"     ' Inverted 32 bit BOM - used to emulate BE output on LE machine
' r71-new~~~
'
Enjoy!
Bye! Guy


(xblite 2.41.16 1 of 5)



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 15 - 18
Guy1954
September 12, 2017, 11:09pm Report to Moderator Report to Moderator

Medium Member
Posts: 174
September 13, 2017

Hi Xbliters!

The new and improved Xblite standard library xst.x

Please find attached: xst_71_13sep17_src.zip (revision 71 - 18 August 2017), which contains:
1.xst.x
2.xst.dec (for the new intrinsic types)
3.makexst.mak
4.BuildXstDll_bat.txt (to be renamed BuildXstDll.bat)

(xblite 2.41.16 3 of 5)



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 16 - 18
Guy1954
September 12, 2017, 11:18pm Report to Moderator Report to Moderator

Medium Member
Posts: 174
September 13, 2017

Hi David!

Please find attached xblite_manual_new_statements_doc_2017_09_13.zip,
which contains the modifications to the HTML Xblite manual
described by MS Word as "Document Word 97-2003":
- xblite_code_statement.doc
- xblite_grab_statement.doc
- xblite_strip_directive.doc
- xblite_xstlog_function.doc

Could it please, be merged to the Xblite manual: xblite_manual.chm?

Bye!
Guy



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 17 - 18
Guy1954
September 17, 2017, 10:12pm Report to Moderator Report to Moderator

Medium Member
Posts: 174
Date  : 17 September 2017

Hi Xbliters,

Please find attached xblite_2_41_16_17sep17_src.zip, which contains:
- BuildXbiteExe_bat.txt
- makexblite.mak
- read_me.txt
- xblite.x
- xst.dec

Installation:
1.Make a backup copy of all files of folder C:\xblite\bin\ to C:\xblite\bin\bak\
2.Create a folder xblite_2_41_16
3.Unzip xblite_2_41_16.zip into the new folder (Extracts xblite.x and the other files)
4.Rename CompileXbite.txt CompileXbite.bat
5.Use CompileXbite.bat to recompile
6.Copy xblite.exe into C:\xblite\bin\

New features:
1.New size-dependant integer types:
-  INT8 <=> SBYTE,  INT16_LE <=> SSHORT,  INT32_LE <=> SLONG, INT64_LE <=> GIANT
- UINT8 <=> UBYTE, UINT16_LE <=> USHORT, UINT32_LE <=> ULONG

2.New default character type: CHAR (similar to STRING)
- CHAR <=> UBYTE, CHAR() <=> UBYTE(), CHARAT <=> UBYTEAT().
- CHAR <=> UINT8, CHAR() <=> UINT8(), CHARAT <=> UINT8AT().

3.Assembly code injection: CODE and END CODE
- (CODE, END CODE) for GoAsm code injection.

3.
- GRAB statement: sort of COBOL's COPY REPLACING ==text1== BY ==text2==:

Usage of GRAB:
In WinX.x, I replaced m4_include(`accessors.m4') by GRAB "accessors/*.x"

1.GRAB "accessors/declare.x"        ' "$1" := "BINDING"
2.GRAB "accessors/declare02.x"
' "$1" := "BINDING"
' OMIT FUNCTIONs "_ActiveId", "_Get_idMin"

The 1st GRAB imports file ./accessors/declare.x replacing all $1 by BINDING.
The 2nd GRAB imports file ./accessors/declare02.x replacing all $1 by BINDING, but not only:
it remvoves the FUNCTIONs BINDING_ActiveId and BINDING_Get_idMin, which are not needed.

I believe this will promote code reuse, and a snippet production.

Bye! Guy.



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 18 - 18
2 Pages « 1 2 All Recommend Thread
Print Print Thread

XBLite Forum    General Boards    XBLite Compiler  ›  xblite.exe revision 2.41.16

Thread Rating
There is currently no rating for this thread