You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star2 (2)You must be signed in to star a repository
About
Open-source PowerBASIC to LLVM compiler for native x64/x86 Windows, written in Rust with no external crates. Existing PowerBASIC source compiles unchanged. 920 official keywords: 918 implemented, 0 documented gaps. Prebuilt binaries, JK-IDE integration, Android target.
No source changes required. PB64Basic compiles existing PowerBASIC source code as-is. The official PowerBASIC compilers are 32-bit only. PB64Basic is the open-source path to build the same source as a native 64-bit Windows application, and it publishes a per-keyword coverage matrix you can check line by line.
PB64Basic is an open-source PowerBASIC-to-LLVM compiler for 64-bit and 32-bit Windows. It is written in Rust with zero external crate dependencies.
Current coverage: 920 official PowerBASIC keywords available — 918 implemented by this project, 2 established in the official documentation, and 0 official keywords not implemented. The full matrix is maintained in docs/statement-coverage.md.
Prebuilt Windows binaries are on the Releases page. New users can start with Getting Started; JK-IDE integration, the PB64Basic help file, and the Android build path are documented below.
PB64Basic began as a fork of benstopics/powerbasilisk. Early releases fixed an upstream linker-flag bug and added statements that upstream silently dropped; the current tree has since moved far beyond that initial scope. The changelog below is the authoritative history.
The old hanlokesu/powerbasilisk URL resolves to this repository.
JK-IDE Integration and PB64Basic Help
JK-IDE can compile a source file with this compiler in PB64Basic (64bit) or PB64Basic (32bit) mode, or with the separate PBXB64.exe compiler. The Compilers menu lists PBWin 10, PB64Basic (64bit), PB64Basic (32bit), PBXB64 and Compile (default), followed by an Android APK submenu, Open PB Help, PB64BASIC.CHM and JKIDE.INI. Both PB64Basic entries drive the same PB64Basic.exe: the 64-bit entry builds <source>_x64.exe with the x86_64 runtime, while the 32-bit entry builds <source>_x86.exe with the i686 runtime, so one target never overwrites the other and the 64-bit output never collides with a PBWin-built <source>.exe. The Android submenu builds arm64-v8a, x86_64, or both ABIs in one APK from the active source; it requires the separate PB64Basic-Android build project.
This branch also integrates PB64Basic Help. The complete help set is bundled in the repository as jkide/PB64Basic.chm (958 topic pages plus an index); when JK-IDE integration is selected, setup.bat installs it as PB.chm/PB.chw for native F1 and PB64Basic.chm/PB64Basic.chw for the add-on's PB64BASIC.CHM menu. The original PBWin 10 help is preserved once as PB.chm.pbwin-bak / PB.chw.pbwin-bak and republished as PBWin.chm/PBWin.chw for the add-on's Open PB Help menu. Put the mouse pointer over any word or keyword in your source and press F1 to open that word's topic directly. If you prefer to browse, open the fork help from PB64BASIC.CHM, the original help from Open PB Help, or either file by double-clicking it, and use its contents and keyword index. This CHM is built with Full-text search=No, so it has no full-text search tab; the HHC6003 Itircl.dll line in the build log is expected for that setting.
Right-click context menu (editor tabs and editor area)
The add-on adds a context menu that you can open in two places, both listing the same seven commands:
Tab context menu — right-click a document tab along the top of the editor. It lets you act on that file without first switching to it: copy its path or name, copy the whole file, open its folder, rename it, or close the tab.
Editor context menu — right-click anywhere in the editor's text area. It offers the same commands for the file you are currently editing, so you do not need to move the pointer up to the tab.
The seven commands are grouped by purpose:
Clipboard
Copy Path — copy the full absolute path of the active file.
Copy File Name — copy just the file name, without the folder.
Copy File — copy the file itself as a real file object (CF_HDROP), so you can paste it directly into an Explorer folder; the source folder is also opened for you automatically.
Open
Open with — choose an installed application to open the file, through the system "Open with" dialog.
Open in Explorer — open the folder that contains the file.
File management
Rename... — rename the file on disk and update the editor tab title to match.
Close Tab — close the active document.
These commands keep the everyday file operations — copying, opening, renaming, and closing — a single right-click away, entirely inside the editor, so you spend less time switching between JK-IDE and Explorer. As described above, any source can still be compiled from the JK-IDE menu with either PB64Basic (64bit) / PB64Basic (32bit) or the separate PBXB64.exe PowerBASIC compiler.
What's New vs. Upstream
Fixed
-lui link flag bug — removed a stale -lui from the exe linker
arguments. Modern Windows SDKs no longer ship ui.lib, so the upstream
linker command failed whenever --lib-dir was used. This branch links
correctly against current Windows SDKs.
Auto-detect the Windows SDK — --lib-dir is now optional. When it is
omitted, the compiler scans the standard install roots
(C:\Program Files (x86)\Windows Kits\10\Lib and the 64-bit sibling) and
picks the newest installed SDK version whose um\x64 folder exists, so
each user does not need to know their SDK version number. If no SDK is
found, a warning is printed and linking will fail with a clear message.
New Built-ins (previously silently discarded)
Early snapshot — the first implementations from the initial releases of
this project (derived from benstopics/powerbasilisk).
Later batches were added after this table was written; the complete,
current list of every statement/function this project implements is in the
Newly implemented by this project
table below.
Why this matters: upstream pbcompiler would report "compiled
successfully" while silently dropping these calls at codegen time — > Unknown sub — skip for bare statements and Unknown function — 0 for
expressions. Programs built this way ran but did nothing. This branch wires
them to real Win32 / CRT calls and is verified against running executables.
? shorthand (batch 129)
The ? symbol at the start of a line is a shorthand for PRINT in console
programs and MSGBOX in GUI programs, matching PBCC / PBWin behavior:
Source directive
? "text" compiles to
default (no directive)
MSGBOX "text" (GUI subsystem, same as PB/Win 10)
#CONSOLE ON
CON.PRINT "text"
#CONSOLE OFF
MSGBOX "text"
#INCLUDE "win32api.inc" or "windows.inc"
MSGBOX "text" (auto-detected)
#COMPILER PBCC
CON.PRINT "text"
#COMPILER PBWIN
MSGBOX "text"
#COMPILE EXE / DLL / SLL
not used to decide (present in both PBCC and PBWin)
The default is the Windows GUI subsystem, matching PowerBASIC 10 for
Windows: a #COMPILE EXE program with no console directive links PE
subsystem 2 (GUI), measured with PBWin 10 on this machine. ? is therefore
MSGBOX by default.
Subsystem behavior:
#CONSOLE ON (PB64Basic / PB/CC extension — PBWin 10 itself rejects it
with Error 418): the exe is linked as a console subsystem app
(subsystem 3), so a CMD window appears at startup and PRINT/? output
goes there.
#CONSOLE OFF, or no directive at all: the exe is linked as a Windows
GUI subsystem app (subsystem 2, no CMD window). MSGBOX/? pop up
dialogs. PRINT needs a console to write to; when the program has none
(started from Explorer, or from a CMD window without an attached console),
its output is discarded. Add #CONSOLE ON when you need console output.
--console on the command line forces the console subsystem and overrides
the source directive.
The compiler now emits a warning at build time when a program contains
PRINT statements but is linked as a GUI EXE, so this is never silent.
? "Hello" ' default -> MSGBOX popup (GUI subsystem)
#CONSOLE ON
? "Hello" ' -> CON.PRINT to the console
Diagnostics: know when your code is silently dropped
Upstream would compile a .bas that uses an unimplemented statement, produce
a working .exe, and never tell you that whole lines of your code did
nothing. This branch adds an unimplemented-statement report:
Every statement that is parsed but produces no code is recorded.
After each build, the compiler prints a summary to stderr:
[PB64Basic] WARNING: N statement(s) not implemented (silently dropped).
A full report is written next to your output, e.g.
program.unimplemented.log, listing the source line and the statement
name for every silent drop, so you can tell exactly what will not run.
Example report from a program using DDT GUI statements:
PB64Basic - unimplemented / silently-dropped statement report
3 statement(s) parsed but produced NO code. These make the .exe run but do nothing.
Check each line below against your source:
line 5: statement `DIALOG` parsed but NOT implemented (NOOP) - no code generated
line 6: statement `XPRINT` parsed but NOT implemented (NOOP) - no code generated
line 7: statement `GARBAGE_STMT` has no codegen implementation - skipped
This covers all three silent-drop paths: parser-level NOOPs (known but
unimplemented statements), bare statements with no codegen (Unknown sub),
and expression functions with no implementation (Unknown function — 0).
Implementation notes (gotchas fixed)
LSET / RSET memory model. A PowerBASIC fixed-length string
(STRING * N) is a direct char buffer, not a BSTR pointer variable.
The first attempt used pb_lset(char**, ...) (pointer-to-pointer) and
produced garbage. The fix is a buffer variant (pb_lset_buf / pb_rset_buf)
that writes straight into the fixed buffer, selected automatically based on
the target variable's type.
Getting Started (new users)
Option A — prebuilt package (recommended for new users): download the
latest PB64Basic-Enhanced-vX.Y.Z-x64.zip from
Releases.
Replace X.Y.Z with the version you downloaded. The ZIP already contains the
compiled PB64Basic.exe, the 64-bit and 32-bit runtime objects
(pb_runtime_x64.obj, pb_runtime_x86.obj), sample programs and a one-click
compile.bat.
Unzip the package to a normal folder, for example
C:\PB64Basic. Do not run it from inside the ZIP file.
Double-click setup.bat once. It installs the compiler toolchain that
every PB64Basic program needs:
Visual C++ Build Tools (MSVC) — required, because it provides
link.exe and the C/C++ headers. Without it, clang reports
stdio.h not found and Rust reports link.exe not found.
LLVM / Clang — required to compile the generated code.
Windows SDK — required for Windows headers and import libraries.
The ZIP already contains PB64Basic.exe and both runtime objects, so
Rust and a source rebuild are not needed for Option A. setup.bat
still installs MSVC because every program you compile later must be linked
into an EXE. The first run can take 10-30 minutes; click YES on any
Windows UAC prompt and do not close the window.
Double-click compile.bat. It builds examples\hello.bas into
examples\hello_x64.exe and runs it.
Which download should I use? The green Code → Download ZIP button
(named PB64Basic-main.zip by GitHub) is the raw source tree only —
no executable inside; it is meant for developers building from source. New
users who just want to compile PB programs should use the Releases
package instead. (GitHub also auto-attaches "Source code (zip)" archives to
every Release — those are source-only as well, ignore them.)
Step-by-step help: every prompt and every manual fallback is written in
SETUP.md. Read that file if setup.bat reports a missing item.
Option B — build from source: the quickest path on a brand-new machine:
Double-click setup.bat (or run
powershell -NoProfile -ExecutionPolicy Bypass -File setup.ps1).
It checks for and installs (via winget, if missing):
Visual C++ Build Tools (MSVC) (Microsoft.VisualStudio.2022.BuildTools,
the Desktop development with C++ workload; ~2-4 GB download)
Rust toolchain (Rustlang.Rustup)
LLVM / Clang (LLVM.LLVM, ~500 MB download; a UAC prompt may appear
click YES)
Windows SDK (Microsoft.WindowsSDK.10.0.26100)
Then it builds pb_runtime_x64.obj and pb_runtime_x86.obj plus the release
PB64Basic.exe for you. It also searches local drives and the PowerBASIC
registry for a WinAPI directory and reports the resolved path; the licensed
Microsoft headers stay on your machine and are not redistributed in the
release package. For a custom copy, pass the PowerBASIC root or WinAPI folder
as the first argument, for example setup.bat "C:\PBWin10", or use
--include-dir when compiling.
Android build toolchain (optional). Answer Y to the Android prompt in
setup.bat, or run
powershell -NoProfile -ExecutionPolicy Bypass -File setup-android.ps1.
This installs four top-level components, not three: Eclipse Temurin JDK
17.0.21+9, Gradle 8.14.3, the Android SDK (command-line tools 15859902
plus platform-tools, platforms android-34/android-35 and build-tools
34.0.0/35.0.0), and Android NDK r27c (27.2.12479018). The download is
about 1.3 GB and the installed tree is about 3 GB. Android Studio, the
emulator and system images are deliberately not installed: adb and a
physical device or a separately installed emulator are enough to build and
install APKs.
--runtime-lib — points to the precompiled pb_runtime.c object.
--lib-dir — optional. Directory containing user32.lib,
shell32.lib, etc. Required for MSGBOX / SHELL / Win32 API usage.
If omitted, the compiler auto-detects the newest installed Windows SDK.
--include-dir <dir> (repeatable) - optional. Adds a directory that a bare #INCLUDE "header.inc" name searches in, before the built-in PBWin install candidates and the source file's own directory. The PB-style alias /I accepts the attached /I<dir> or separate /I <dir> form, case-insensitive. A separator-bearing relative #INCLUDE path still resolves against the source file's parent only; absolute paths are used as-is.
Embedding Binary Data with OBJEXTERN
This section explains the OBJEXTERN keyword in depth because it is easy to
misunderstand what an object file is doing here. Read it end to end before your
first use.
What it is for
OBJEXTERN binds a PB64Basic variable directly to a symbol that lives inside a
COFF object file (.obj). The most common use is embedding arbitrary binary
resources - text, images, lookup tables, compressed blobs, certificate data -
into the final executable, so the program reads those bytes at run time without
shipping or locating separate files.
Why a raw file cannot be linked directly
The linker only understands the COFF format (.obj, .lib/.SLL archives and
.dll). A raw .bin, .dat or .png is just a stream of bytes with no COFF
structure, so feeding one to the linker fails with unknown file type. That is a
linker requirement, not an OBJEXTERN restriction.
A helper tool such as bin2coff converts
any binary file into a COFF object that exposes two public symbols:
label - the data bytes themselves (from C: extern uint8_t label[]).
label_size - a 4-byte unsigned integer holding the byte count (from C:
extern uint32_t label_size).
Syntax
OBJEXTERN ["file.obj"] [32|64] name [ALIAS "sym"] AS type
The square brackets above only mark optional parts in this notation - you do not
type them. The width, when present, is a bare number, not a bracketed token.
The three practical forms are:
' 1. Pure symbol declaration; the object is supplied separately with #LINK.
OBJEXTERN gdata AS BYTE PTR
' 2. The object is named in the declaration; it is auto-linked (no #LINK).
OBJEXTERN "payload.obj" gdata AS BYTE PTR
' 3. Object + bare target width + explicit symbol name.
OBJEXTERN "payload_x64.obj" 64 gdata ALIAS "demo_block" AS BYTE PTR
How the type is interpreted
A pointer type (for example BYTE PTR) binds the data block. The variable
expression evaluates to the address of the embedded bytes rather than loading
a value, so it is the form you pass to PEEK$ to read the data.
A scalar type (for example DWORD) binds an external variable and loads
its value normally. This is how the label_size length symbol is read.
Target width, validation and auto-skip
A bare 64 marks a 64-bit object. It is linked when building a 64-bit target
and is automatically skipped - not linked, no error, no symbol registered -
when building a 32-bit target.
A bare 32 is the symmetric case: linked on the 32-bit target, skipped on the
64-bit target.
With no width marker, the compiler reads the COFF machine header itself.
It links the object when the object width matches the current target and
reports a clear error on a mismatch.
The compiler always reads the COFF header to verify a marked object. A wrong
marker (for example 64 on an object that is actually 32-bit) is an immediate
compile-time error rather than a confusing link failure.
When a file is named, it is added to the link set automatically and
de-duplicated. The same object referenced by several OBJEXTERN lines (the
data block and its size) is linked only once, so a separate #LINK is not
needed.
The file-less form (form 1) is still supported for workflows that prefer to
pull objects in with #LINK.
End-to-end workflow
Convert the binary to a COFF object for each target you ship:
Declare the data block and its length. Giving both widths lets the same source
compile for either target; the compiler selects the matching object and
skips the other declarations:
#COMPILE EXE
OBJEXTERN "payload_x64.obj" 64 gdata ALIAS "pblock" AS BYTE PTR
OBJEXTERN "payload_x64.obj" 64 gsize ALIAS "pblock_size" AS DWORD
OBJEXTERN "payload_x86.obj" 32 gdata ALIAS "pblock" AS BYTE PTR
OBJEXTERN "payload_x86.obj" 32 gsize ALIAS "pblock_size" AS DWORD
FUNCTION PBMAIN() AS LONG
LOCAL n AS DWORD
LOCAL txt AS STRING
n = gsize ' scalar: loads the embedded length
txt = PEEK$(gdata, gsize) ' pointer: reads the embedded bytes
' ...use n and txt...
END FUNCTION
Symbol naming and the leading underscore
On the Win32 (i686) target clang adds a leading underscore to global symbols
automatically; on x64 it does not. Therefore always write an ALIASwithout
a leading underscore, and the same declaration resolves correctly on both
targets. Writing the underscore yourself produces a double-underscore symbol on
Win32 that the linker cannot find.
Verified
All added built-ins are tested by compiling and running the generated
64-bit executables:
ISFILE — returns correct result for existing and missing files.
CURDIR$ — returns the real current working directory.
MSGBOX — a modal dialog is shown with the correct title.
SHELL — launching calc.exe starts the Calculator application.
Tier 2 additions are verified by compiling and running a combined test
program (test_enhance2.bas, exit code 0):
REPLACE — "the cat sat on the cat mat" — "the dog sat on the dog mat".
ERASE — a LONG array's summed elements return 0; a STRING array's
first element length returns 0.
LSET / RSET — a STRING * 10 variable shows left/right-justified text
padded to exactly 10 characters.
The upstream official test suite (14 programs) continues to build, run, and
pass with exit code 0, and the user's real-world .bas files now emit real
MessageBoxA / ShellExecuteA / GetCurrentDirectoryA / _access calls
instead of being silently dropped.
SDK auto-detection verified - every build listed above (the 14 official
tests, the Tier 2A and Tier 2B tests, the file I/O round trip, and the
user's real-world .bas program) was compiled and linked without
--lib-dir. The compiler auto-detected the newest installed Windows SDK
(C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64 on the
test machine, which also has the older 10.0.19041.0 installed) and
linked every program successfully.
Tier 2B file-statement test (test_tier2b.bas, exit code 0) covers the
remaining Tier-2 file statements end to end:
WRITE # — writes CSV-style records; reading them back with LINE INPUT #
yields "hello",42,3.5 and "world",7 exactly.
SEEK # — repositions to byte 1 and re-reads the first record correctly.
LOCK / UNLOCK # — a byte range is locked and released without error.
FLUSH # — buffers are flushed mid-program.
NAME ... AS ... — renames the test file on disk.
RESET — closes every open file handle; the renamed file is then deleted
with KILL and no temporary files remain.
File I/O round trip — a full write→read→verify→cleanup cycle passes with
exit code 0:
fileio_writer.bas opens testdata.txtFOR OUTPUT and writes 9 lines via
PRINT # (text, numbers, a float, loop-built rows, and a line produced by
the new REPLACE statement).
fileio_reader.bas opens it FOR INPUT, reads all 9 lines back with
LINE INPUT # inside WHILE NOT EOF(f), verifies the count, then deletes
the file with KILL.
Every line read back matches what was written, byte for byte. This confirms
the file pipeline (FREEFILE, OPEN, PRINT #, LINE INPUT #, EOF,
CLOSE, KILL) executes real I/O — not empty shells.
Statement / Function Support Matrix
Official coverage audit — every keyword below has been checked against the PowerBASIC official documentation (MIT-licensed keyword index, 735 keywords / 1282 topic pages, PB/Win 10+11 / PB/CC 6+7).
Full details: statement-coverage.md · raw data: statement-coverage.csv.
Summary:
920 official PowerBASIC statement/function keywords currently available for use
918 implemented or completed by this project
2 official keywords that are long established in the PB documentation, listed in the established-keywords table below. The CSV label "Established" means mature in the official PB docs - it is not a claim about what upstream shipped.
0 DDT/GUI-class keywords deferred (Tier 3)
0 documented keywords not yet implemented
Counts are computed directly from statement-coverage.csv (952 rows, deduplicated). 0 official keywords are not implemented yet; 32 entry is a fork extension, implemented here but not an official PB keyword (ACOS, ACOSH, ARRAY SELECT, ASIN, ASINH, ATANH, ATN2, CBRT, COSH, COT, COTH, CSC, CSCH, DIALOG CENTER, ERF, EXPM1, FLOOR, GRAPHIC BITMAP CAPTURE, HYPOT, ISEVEN, ISODD, LOG1P, NUL, OBJEXTERN, PRINT AT, RESOURCE SAVE FILE, SEC, SECH, SINH, TANH, TRUNC, VERSION$). Rows whose internal codegen name uses an underscore are shown here in their spaced form - GRAPHIC_CIRCLE appears as GRAPHIC CIRCLE; the raw names are in statement-coverage.md.
Updated through batch 443 (v0.2.224). No official keyword remains unimplemented - every non-Tier-3 official keyword is implemented.
batch 443 (v0.2.224) - Gary Beene batch 10 close-out: 0867 / 1108 / 1221 now identical; full rerun 41 identical / 0 near / 6 diff / 3 run_skipped.
batch 442 (v0.2.222) - batch 9 closure: 0348/1130 identical, 1110 icons, 1218 capture, 0556 no crash, 1351 documented; full rerun 40 identical / 4 near / 5 diff / 1 skipped.
batch 441 (v0.2.221) - 0433 Toolbar dynamic icons and 0556 ListView subclass closed without replacing samples; full details in CHANGELOG.md.
batch 440 (v0.2.220) - Gary Beene batch 9: 50 samples never used by batches 1-8. Both compilers compile 50/50 and 49/50 windows launch (0770 is a modal folder picker, compile-only). Pixel comparison: 42 identical, 2 near (0348 0.617%, 1130 0.745%), 2 differing (1110 animated sprites caught on different frames, 24.5%; 1218's two child-label OpenGL surfaces return blank to the grabber while a manual full-screen check shows both cubes), 1 size-mismatch (1351 reports TIX timings, so the digits differ by design) and 2 known failures kept visible rather than replaced: 0433 (Toolbar dynamic icons, exit 9) and 0556 (ListView subclass, 0xC0000005). Fixed: a literal 0 passed to a BYREF numeric parameter of a user Sub/Function was lowered to a null pointer, so OpenGL DrawScene(..., 0) crashed on first dereference; only external Win32 declarations now receive NULL. Self-check: examples/batch440_test.bas.
batch 439 (v0.2.219) - README subsystem claim corrected to GUI (subsystem 2); a GUI compile containing PRINT now warns at build time; #CONSOLE ON documented as a fork extension (PB/Win 10: Error 418).
batch 438 (v0.2.218) - STATIC labels now erase their own cell before every repaint: WM_CTLCOLORSTATIC answers with an OPAQUE solid brush in the dialog face colour instead of TRANSPARENT + NULL_BRUSH, so a label rewritten by a timer no longer keeps the previous digits on screen. Gary Beene sample 1595 (two labels on 250 ms timers) previously merged the accumulating strokes into solid black blobs and is now pixel-identical to PBWin10; the forced batch 7 rerun is 48 identical / 2 near (0915 0.016%, 1161 0.844%) and batch 8 is 50 identical. The comparison harness parks the foreground on a dummy window before capture, because the default button's dotted focus ring is a transient active-window artefact (PB64 inset 3 vs PBWin inset 4), not a rendering difference. Self-check: examples/batch438_test.bas.
batch 437 (v0.2.217) - Gary Beene batch 8 completion: the seven non-identical pairs from batch 436 were fixed (0109, 0143, 0941, 0982, 0623, 1625, 0898); full rerun is 50 identical / 0 near / 0 diff. Runtime x86 declarations fixed to uintptr_t; x64 and x86 runtime objects rebuilt. JK-IDE documentation page now uses a real JK-IDE 2.5 window screenshot instead of the wrong CHM image.
batch 436 (v0.2.216) - Gary Beene batch 8: 50 new samples, 50/50 compile and 50/50 run on both compilers, 43 identical / 2 near / 4 diff / 1 size-mismatch; the seven non-identical pairs are documented with measured causes, not reported as identical.
batch 435 (v0.2.215) - Gary Beene batch 7: 50/50 compile and 50/50 run on both compilers, 48 identical / 2 near on the GUI pixel comparison. Fixed DIR$ NEXT filter and DirData forms plus %SUBDIR; double-precision pie/arc angles with PBWin's geometric polar conversion; GRAPHIC canvas rebuild on resize and scroll-bar nMax; ListBox WS_VSCROLL creation and auto toggle; DIALOG NEW 32-bit arguments and focus selection; TreeView 32-bit item tokens and UTF-8 text; transparent TEXTOUT, edit margins, saturated RGB(), 16-bit LO(BYTE, ...), clipboard pointer returns, DISPATCH, STRINGZ, and THREAD CREATE comma. Remaining near: 0915 0.016% and 1595 0.053%. Self-check: examples/batch435_test.bas.
batch 434 (v0.2.214) - MACROTEMP handle-width fix (Discussion #10 follow-up): a MACROTEMP identifier receives a four-digit expansion suffix, which previously hid the pProc spelling from the x64 wide-slot rule. PBForms.INC's PBFormsInitComCtls therefore kept GetProcAddress in a 32-bit slot and crashed at CALL DWORD pProc. Trailing expansion digits are now stripped before the handle/pointer name checks; Erol's PBForms GUI sample now opens its Dialog1 window on x64 without editing the include file. Self-check: examples/batch434_macro_temp_handle.bas passes on x64 and x86 (macro-proc-fails= 0).
batch 433 (v0.2.213) - x64 automatic pointer-return promotion: a user function declared AS DWORD/AS LONG that returns a PTR-typed local (or a known pointer-returning API) now returns a full 64-bit value, so the original DibLoadImage ... AS DWORD source works without editing to AS QUAD. Genuine 32-bit numeric returns keep DWORD width. Self-check: examples/batch433_auto_ptr_return.bas passes on x64 and x86 (=== FAILURES: 0), and the exact Apollo11 DibLoadImage body reads and dereferences a BMP correctly on x64.
batch 432 (v0.2.212) - fix examples/hello.bas CRLF and any-key console input (Discussions #11); default and --small outputs byte-identical
batch 430 (v0.2.210) - Win64 callback and DIB fixes for Discussions #10 (Apollo11 quits silently): six allocation APIs (GLOBALREALLOC, LOCALREALLOC, HEAPALLOC, COTASKMEMALLOC, COTASKMEMREALLOC, SHALLOC) now return a full 64-bit pointer instead of a truncated DWORD; SIZEOF(@udtvar) / SIZEOF(@array(i)) now report the pointed-to UDT layout (previously 0, so the DIB header pointer stayed on BITMAPFILEHEADER); and bounded STATIC arrays declared inside a function now use module-level storage instead of a per-call stack slot, so a callback keeps the pointers it stored in WM_CREATE when WM_PAINT runs. Verified with the Apollo11 sample (four 220x240 DIBs draw, SetDIBitsToDevice returns 240) and new examples/batch430_static_ptr_array.bas (static= 77 sizeof= 14, === FAILURES: 0).
batch 429 (v0.2.209) - Setup/MSVC installer fix: setup.bat / setup.ps1 now install Visual C++ Build Tools (MSVC) when missing, load the MSVC and Windows SDK INCLUDE/LIB/PATH environment, and run a stdio.h + link.exe smoke test before building. The prebuilt release package skips Rust/source rebuilds but still installs MSVC because every user program needs link.exe. setup.bat now explains each step, UAC, disk/time cost, and the manual fallback; new SETUP.md is the step-by-step guide. No compiler behavior change.
batch 428 (v0.2.208) - Close the Long Pointer numeric-operation family, per-window dialog callback routing, unsigned DWORD output, and the tab-page callback path: pointer +=/-= and comparisons no longer fall into string concatenation, illegal pointer arithmetic is rejected with Error 477, modeless dialogs and tab pages dispatch by window handle, and PRINT/STR$/PRINT#/LPRINT/TXT PRINT render DWORD unsigned. 509 examples compile, 347 headless build and 343 run with 0 failures, 40 negative probes and both link targets are clean.
batch 427 (v0.2.207) - Close the remaining dialog defects from Gary Beene batches 3 and 4: empty-argument CALL DlgProc() in DIALOG SHOW MODAL/MODELESS, numeric CB.HNDL in superclass procedures, ES_MULTILINE initial focus for superclassed edits, and re-entrant WM_INITDIALOG when a modeless child is created inside the parent handler. Batch 6 is 50/50 identical (0 near, 0 diff); samples 1359/1360, 0287/0289 and 0335 now open and compare. Batch 4 rerun is 42 identical / 2 near / 1 diff (0335 2.613%), with six PBWin10-only compile failures.
batch 426 (v0.2.206) - Fix x86_64 0263 array and pointer crash paths: multi-variable REDIM, STATIC array descriptor lifetime, ARRAYATTR totals, and POKE pointer addresses. Add examples/batch426_array_static_test.bas; all six 0263 buttons now complete under the full 100000-iteration loop, and 505 examples compile with 0 failures.
batch 425 (v0.2.205) - Implemented a true 10-byte x87 Extended type: LEN=10, MKE$/CVE$, 80-bit scalar/array/UDT/global layout, 80-bit arithmetic and output, VAL(), and function argument/return passing. The x87 control word is initialised to 0x037F at process and thread entry, and f80 helpers cover SQR/EXP/LOG/trig/pow/round. Floating literals now carry PBWin's default precision class (<=6 digits SINGLE, 7-16 DOUBLE, 17+ EXT; !/#/## override), and ^ always evaluates on the x87 stack. Gary Beene batch 5 is now 50 of 50 pixel-identical; batch 2 rerun is 39 identical / 3 dependency skip / 2 dynamic pass / 6 PBWin10 compile failures. Self-check: examples/batch421_ext_test.bas and examples/batch424_ext_thread_test.bas.
batch 415 (v0.2.204) - Close the six remaining Gary Beene GUI residuals: 0398 and 0513 ListView header and delete-row geometry, 0899 subsystem 4.0 border width, 1135 global dynamic array shadowing, 0263 inline-asm Long Pointer and label merging (including the x86_64 noinline rule), and 0361 WM_GETMINMAXINFO plus GRAPHIC RENDER edge semantics. All six are pixel-identical at 0.0 percent with equal screenshot size and equal PNG SHA-256. Batch 5 was 42 of 50 at that release; the eight remaining items were closed in v0.2.205. Self-check: examples/batch415_test.bas.
batch 414 (v0.2.203) - Fifth Gary Beene GUI batch: 50 previously unused samples. All 50 compile with both compilers and all 50 launch. 49 of 50 are pixel-identical (0.0%, same screenshot size); sample 0398 remains at 6.7% because its ListView header text composition still differs. Fixed COMCTL notification constants, ProgressBar bar colour, Tab-page background/focus, ListView header height/font and top seam, Font New handle semantics, status-bar 1px offset, graphic quadrant and closed-interval rendering, empty ListView style slots, and removed the implicit full-row select that PBWin does not use. 0737 was excluded because PBWin10 itself fails with Error 519 and the published icons are gone; it was replaced by self-contained 0740. Three stale ListView fixtures now assert PBWin10's measured zero extended style. Self-check: examples/batch414_test.bas.
batch 413 (v0.2.202) - Closed the remaining common-dialog gaps: classic 431x319 font dialog with Script=Western, and 555x385 Open/Save via the 370x237 NEWFILEOPENV2ORD template. Batch 4: PB64 50/50 compiles, 38/40 comparable windows identical, 2 near (0.03% / 0.044%), 1 size mismatch (0771). Self-check: examples/batch413_test.bas.
batch 412 (v0.2.201) - Close the last deterministic batch-4 control gaps: LISTVIEW default extended style, modal focus fallback, bitmap native-1 render, GroupBox brush, owner-draw ListBox row height, and button WM_CTLCOLORBTN focus-rectangle color. PB64Basic compiles 50/50 samples; of 37 comparable windows 35 are pixel-identical and 2 are near-identical (0.03-0.04%). No keyword change; coverage stays at 952 rows / 918 implemented. Self-check: examples/batch412_test.bas.
batch 410 (v0.2.200) - Closed the deterministic defects from the third Gary Beene GUI batch: empty DIALOG NEW style/exstyle slots, GRAPHIC CLEAR colon boundaries, the ANSI %LVN_GETDISPINFO alias, Win64 widening of BYVAL DWORD/LONG handle parameters in header SUB wrappers, LVITEM 32-bit item indices, pointer-sized NMCUSTOMDRAW.dwItemSpec/lItemlParam, %RGB_PALETURQUOISE, WM_NOTIFY LRESULT propagation, RichEdit ES_NOHIDESEL initial-selection behaviour and LISTVIEW SET STYLEXX mask handling. Batch 3: PB64 46/50 compile, PBWin10 42/50, both 42/50, PB64-only failures 0; semantic identical 25, near 2, diff 9. Remaining diffs are control-fidelity gaps, not parser/codegen failures.
batch 409 (v0.2.199) - Fixed Discussion #8's José Roca include-file parse failures: reserved-word method names (METHOD Xor, METHOD On), nested pointer-field dereference (@p.@field, as in @pImageCodecInfo.@MimeType), and macro-name reuse in a FUNCTION MAKEFOURCC declaration. The full gbClientCapture v2.1 source now parses and builds x86_64 with the C:\PBWin10\WinAPI headers; batch409_test covers the new syntax at run time.
batch 408 (v0.2.198) - Fixed the setup-time Android blank-key bug: setup.bat now passes a normalized repository path, find_android.ps1 accepts the release-root PB64Basic.exe and searches ancestor folders for the Android checkout, and the Windows zip carries a minimal PB64Basic-Android builder so a fresh install can produce an APK. See the v0.2.198 changelog entry.
batch 407 (v0.2.197) - Gave the default x86_64 output an _x64 suffix so PB64Basic can sit beside a PBWin-built <source>.exe for side-by-side comparison, and tightened the DirData / DIR$ compatibility path. Success: now reports the final EXE path. See the v0.2.197 changelog entry.
batch 405 (v0.2.195) - Closed the APK / PB/CC / GUI residual set: GRAPHIC BOX negative-corner, omitted-corner and aspect semantics now match PBWin pixel for pixel, GRAPHIC COPY and the POLYGON/POLYLINE/XPRINT declarations were corrected, user procedures whose names start with GRAPHIC_/MENU_/XPRINT_ are no longer swallowed, the Android MSGBOX link guard was fixed, and the 20-APK suite was rebuilt and passed 20/20 emulator probes. All Windows source gates are clean.
batch 404 (v0.2.194) - Fixed the two defects behind Discussion #5 with the José Roca WINAPI headers: POINT/POINTAPI are registered before any TYPE layout (a user-declared POINT still wins), and #INCLUDE accepts a quoted path with no closing quote at EOL. Window.bas builds and shows its main dialog with both the José Roca and stock PBWin10 header sets on x86_64 and i686; 488 compilable examples, 331 headless examples, 34 negative probes and the x86_64/i686 link smoke are clean. See the v0.2.194 changelog entry.
batch 403 (v0.2.193) - Closed the six headless regressions and the runtime semantics behind them. TEXTBOX controls now keep WS_BORDER clear, matching PBWin10's real style 0x50010080 with the frame drawn by WS_EX_CLIENTEDGE; the earlier "+WS_BORDER" conclusion was disproved and its false-positive test corrected; GRAPHIC CONTROL preserves a supplied style instead of replacing it with SS_OWNERDRAW; FONT NEW handles are no longer mistaken for raw HFONTs; GRAPHIC WINDOW and GRAPHIC WINDOW TEXT report POWERGRAPH and POWERTEXT respectively; GRAPHIC BOX optional-argument parsing was corrected in the regression programs; and the x86-only QUAD declarations that truncated 32-bit WinAPI returns were narrowed to the x64 branch. Also closed the batch 403 parser, GDI-lifecycle, dialog-unit, capture, GET$ ASCIIZ, missing-DLL, ListView-width and focus-restore items. All examples compile; headless, negative, link, fmt and clippy gates are clean. See the v0.2.193 changelog entry.
batch 402 packaging follow-up (v0.2.192) - Rebuilt the 958-page CHM, fixed the full-text-search claim, added the JK-IDE Android APK menu and setup-time Android toolchain probe, and refreshed the add-on DLL. Compiler behavior is unchanged. See the v0.2.192 changelog entry.
batch 402 packaging (v0.2.191) - Added the optional Android toolchain installer and a 958-page CHM with a complete Android demo APK guide; compiler behavior is unchanged. See the v0.2.191 changelog entry.
batch 402 (v0.2.190) - Closed the GRAPHIC text-metric, font-selection, BYVAL floating-argument, WSTRING storage and XMLENCODEBASE64 Variant gaps: Page Unit printing, documented CELL/CHR/CELL-position forms, real GDI cursor movement, exact 14-cell comma zones, correct FONT NEW argument bounds and BSTR SafeArray ownership. 479 examples compile, 319 headless samples run with 0 failures, and the 20-demo Android APK suite is rebuilt at v0.2.190.
batch 401 (v0.2.189) - Closed the batch 401 array-parameter, dynamic DLL and PB/CC sample gaps: static arrays passed through BYREF now follow callee REDIM; DECLARE ... LIB uses runtime loading; #EXPORT controls the export table; 56/56 PB/CC samples build on both targets. PBWin10 sample results remain 152/159 on both targets, with the seven rejects invalid in PBWin10 itself. Android runtime and the 20-demo APK suite were rebuilt at v0.2.189.
batch 400 (v0.2.188) - Replaced four index-based codegen argument loops with iterator loops to satisfy Rust 1.100.0 clippy::needless_range_loop. Argument order and bounds are unchanged; there is no compiler behavior change.
batch 399 (v0.2.187) - WINMAIN and legacy MAIN entry points now compile only the reachable function/sub closure, matching the existing PBMAIN path; this lets standard Win32 SDK window samples build against large header sets that declare unused BYREF array helpers. ARRAY REDIM INCR/DECR now updates the live one-dimensional bound and zeros the regrown tail, so UBOUND and element access agree after grow/shrink cycles. batch399_test.bas and batch378_redim.bas pass on x86_64, and Discussion #5's Window.bas builds and displays its window with both the José Roca WINAPI_III_107 and stock PBWin10 include sets.
batch 398 (v0.2.186) - Windows sample conformance: target-aware import libraries, 32-bit stdcall callbacks and CODEPTR thunks, architecture-aware dialog callback signatures, fixed-width GLOBAL strings, synthetic WINMAIN hInstance, pointer-width conversion, GET TEXT fixed buffers and pre-body dynamic global array descriptors. 152 of 159 PBWin10 samples build on x64 and x86; the other 7 are invalid in PBWin10. 64 GUI candidates, 10 include wrappers, 7 resource scripts and 6 resource-embedding samples verified.
batch 397 (v0.2.185) - GUI conformance: grouped LOCAL/DIM types, per-dialog font/DLU mapping, DDT dialog styles and manifest embedding, ListView style/header, GRAPHIC WM_INITDIALOG dispatch, canvas/client units, COLORREF constants, default line colour, PRINT line advance, integer position APIs, runtime REDIM, PARSE lower-bound indexing and buffered control-DC presentation. 12 of 13 paired windows match PBWin10 exactly; all 13 fonts match.
batch 396 (v0.2.184) - DIALOG SHOW MODELESS and result targets: DIALOG SHOW MODELESS hDlg[,] CALL proc [TO result] now registers the callback and writes the DIALOG END result into result; DIALOG SHOW MODAL hDlg[,] CALL proc TO result writes the modal result; DIALOG SHOW STATE ... TO result and DIALOG DOEVENTS [sleep] [TO count] now consume and return their optional arguments. CB.HNDL values are passed to DIALOG statements without a second inttoptr, fixing DIALOG SET USER CB.HNDL and DIALOG POST CB.HNDL builds. GRAPHIC LINE [STEP] [(x1,y1)] - [STEP] (x2,y2) now accepts the omitted-start and STEP forms used by PBWin10 samples. The all-source audit covers 159 sample .bas files: 96 full x64 builds succeed (88 EXE and 8 DLL) and 63 fail on unrelated syntax/link gaps. batch396_test.bas passes on x86_64 and i686.
batch 395 (v0.2.183) - DDT optional separator commas: DIALOG NEW accepts ..., style, TO hDlg; DIALOG SHOW MODAL accepts hDlg, CALL proc and hDlg, TO result. PBWin10 compiles all four comma/no-comma variants; the previous parser rejected the comma before TO and silently dropped the modal callback when a comma preceded CALL. batch395_test.bas passes on x86_64 and i686, and batch395_modal_probe.bas covers both modal forms at compile time.
batch 394 (v0.2.182) - Android-only runtime patch: native blocking MSGBOX through a JNI AlertDialog with Win32 ID* return codes, BEEP through the system notification sound, PLAY SOUND through AudioTrack, and deterministic input/MSGBOX test hooks. The 20-demo APK suite is published separately as android-demos-v0.2.181 (20/20 package/ABI/zipalign/signature checks and 20/20 device probes). Windows behavior is unchanged; batch394_test.bas covers the Windows BEEP/PLAY SOUND link path and passes on x86_64 and i686. ARM64 APKs remain build/static-verified only; GUI/COM/GDI/menu/printer/serial surfaces and TCP NOTIFY dispatch remain outside the Android runtime.
batch 393 (v0.2.181) - Android runtime compatibility closure: native console input for WAITKEY$/INKEY$, console-page routing for CON.STDERR, file and directory wrappers with backslash/drive-path normalization, a cooperative thread suspend/resume layer, Winsock-compatible TCP/UDP loopback, a process-local clipboard/global-memory layer, real DATE$/TIME$/TIMER, FRE, process/thread priorities, and one file-number namespace shared by files and sockets (TCP ACCEPT now allocates through pb_freefile()). batch393_test.bas passes on x86_64 and i686. The PB/CC-specific console subset is 381 rows: 379 Implemented and 2 Established (INTERFACE / END INTERFACE (DIRECT) and INTERFACE/END INTERFACE (IDBIND)), with 0 Not implemented; there is no PB/CC compiler on this host, so those rows are verified by source/CHW review and by the Windows console regressions, not by a PB/CC differential run. Android boundaries remain explicit: GUI/COM/GDI/menus/printers/serial ports, TCP NOTIFY message dispatch, native modal MSGBOX, and audio output are not implemented, and the ARM64 APK was link-verified but not run on ARM64 hardware.
batch 392 (v0.2.180) - ported the still-applicable WinAPI structure-layout work from the old pbsrc tree onto pbsrc_b378: WSTRINGZ * %MAX_PATH inline fixed wide strings, QUAD/QWORD and NATIVE alignment, parenthesized/bitwise constant expressions, SIZEOF(TYPENAME) and FixedWString sizing, and the fork-only %PB64_TARGET_64 marker. batch392_test.bas passes on x86_64 and i686. The old setup.ps1 was already byte-identical to b378, and the old setup.bat / JK-IDE locator changes were superseded by later b378 commits, so they were not reverted.
batch 391 (v0.2.178) - closed the legacy audit: BSTR/C-string boundary in PRINT/COMM/GRAPHIC, REGREPL return type, dynamic control getters, i686 BYTE rotate, embedded-NUL round-trips, STRING/ASCIIZ file-input padding, END, TCP LINE INPUT and COM GETCOM; batch391_test and the full headless suite pass on both targets.
batch 390 (v0.2.177) - fixed the JK-IDE help installer on CRLF configuration files: Set-IniValue now finds a section header without swallowing the carriage return, so Pb64HelpFile is written and setup.bat no longer stops with section [Compilers] not found; the installer also normalises mixed line endings.
batch 389 (v0.2.176) - signed INTEGER semantics fixed for TYPE fields and i686 locals, and the 952-page language reference was rebuilt with official Purpose/Syntax/Parameters/Remarks text, complete examples, four pseudo-object pages and the refreshed CHM.
batch 388 (v0.2.175) - the JK-IDE add-on now exposes PB64Basic (64bit) and PB64Basic (32bit) as separate Compilers menu entries. Both entries call the same PB64Basic.exe; the 64-bit entry selects the x86_64 target and runtime, the 32-bit entry selects the i686 target and runtime, and the 32-bit output is named _x86.exe. The 32-bit compile and run paths are live-verified with command IDs 55028 and 55029, and the menu keeps the PBWin 10, PBXB64, Compile (default), Open PB Help, PB64BASIC.CHM and JKIDE.INI entries in their documented order.
batch 387 (v0.2.174) - target-aware pointer width in TYPE layout and array element sizing on i686.
batch 386 (v0.2.173) - dynamic LSET/RSET honours ABS and USING, string modification no longer frees non-BSTR old pointers, and string-array operations use the target pointer width; batch386_test passes on x86_64 and i686.
batch 385 (v0.2.172) - embedded-NUL string semantics aligned with PBWin10 across the string builtins, fixed-string TYPE fields, ASC with an explicit position, dynamic LSET/CSET, REPLACE/REPLACE ANY and SPLIT; COMM SET DTR/RTS/BREAK now drives EscapeCommFunction; the runtime builds clean under -Wall -Wextra on x86_64 and i686; batch385_test passes on both targets.
batch 384 (v0.2.171) - CON.STDIN.LINE dynamic buffer, Ctrl-Z EOF and CON.STDEOF state; console setter and GETSTDVID error-code closure; reproducible batch384 probes.
batch 383 (v0.2.170) - lazy reachable-body codegen for large WINAPI header sets. EXE builds compile only bodies reachable from PBMAIN, external DECLARE and import libraries are emitted on first reference, and indirect reachability covers ON CALL, CODEPTR, THREAD CREATE, DIALOG SHOW MODAL, CONTROL CALL, OOP methods/properties, EVENTS, FOR EACH, interface dispatch and THREAD OBJECT. Global array shapes are resolved before any body is compiled. Erol's ConsTest builds in 3.2 s with WINAPI_III_107 and all 453 examples compile.
batch 381 (v0.2.169) - JK-IDE help installer hardening. setup.bat keeps PbHelpFile on PB.chm until the four-file copy succeeds, skips the installer when bundled help is absent, and uses the full Windows PowerShell path; install_help.ps1 documents .chw as a companion copy; README-jkide and batch381 package smoke updated. Runtime F1/menu clicks not automated.
batch 380 (v0.2.168) - the complete PB64Basic help set is bundled in jkide and installed into JK-IDE; F1 and Open PB Help resolve to the bundled help; the original PBWin help is backed up once as .pbwin-bak; compiler code is unchanged.
batch 379 (v0.2.167) - file-I/O evidence and console probes; WIDE SEEK byte offsets, ANSI 0x1A EOF, LINE INPUT # arrays, fixed WSTRING arrays, dynamic ARRAY REDIM, LPRINT separators, and RemarksData width fixed; CON.VIEW remains host-limited.
batch 377 (v0.2.166) - the PB/CC console family was re-checked against the CHW reference. CON.PRINT / CON.STDOUT write character-by-character on the active page with the current attribute and scroll at the bottom; PAGE separates active and visible pages; CON.CURSOR.OFF/ON preserves the visible cursor size; CON.SCREEN / CON.VIRTUAL failures set Error 5 and successful size operations clear it; CON.INPUT / CON.LINE.INPUT always use the console keyboard and release their temporary BSTRs; stdio redirection is reported by CON.IN / CON.OUT; and DESKTOP GET SIZE now calls the runtime pb_desktop_get_size so i686 programs no longer hit 0xC0000005 at process exit. examples/batch377_test.bas passes on x86_64 and i686; real mouse events and exact ConPTY pixel geometry remain environment boundaries, not claimed as fully aligned.
batch 376 (v0.2.165) - the PB/CC console pseudo-object family is implemented end to end: CON / CONSOLE dotted statements and getters for print, clear, colour, cells, cursor, pages, scroll, screen/virtual/view/size/location, caption, focus, handles, input, keys, mouse and standard streams; ? lowers to CON.PRINT under #CONSOLE ON and to MSGBOX otherwise; bare SCREENATTR and CONSNAME$ are accepted. setup.bat / setup.ps1 now ship the new JK-IDE and PBxB64 locators; setup.bat finds D:\JK-IDE and writes non-empty Pbxb64Exe / Pbxb64Cwd.
batch 375 (v0.2.164) - explicit CDECL/STDCALL/SDECL/BDECL on FUNCTION and SUB survive parser and AST; i686 emits x86_stdcallcc for STDCALL/SDECL/BDECL; SLL and DLL default to stdcall when the descriptor is omitted; x64 keeps one convention. Batch 374 adds the PB/CC console screen family (LOCATE, CON.CELL, CURSORX/CURSORY, CLS, COLOR Count, TAB/SPC) and the fork-only PRINT AT.
batch 373 (v0.2.163) - parser accepts Name () zero-argument calls with a space before the empty group; codegen resolves bare zero-argument FUNCTION references, including forward references.
batch 372 (v0.2.162) - THREAD OBJECT examples now return their FAILURES count as the process exit code; both targets still print FAILURES: 0 and exit 0.
batch 371 (v0.2.161) - THREAD OBJECT member semantics match CHW: CLOSE, JOIN, LAUNCH, PRIORITY SET and STACKSIZE SET return no value, direct THREAD METHOD calls are rejected in statement and expression position, and AS MyType POINTER plus BYVAL VARPTR(...) now read fields through the pointer; batch371_test passes on x86_64 and i686.
batch 370 (v0.2.160) - THREADED array DIM bounds are evaluated at run time, so DIM tA(1 TO n) publishes the real per-thread shape, and UBOUND is -1 before that thread dimensions the array; batch370_test passes on x86_64 and i686.
batch 368 (v0.2.159) - the 12-member TXT pseudo-object and the 18-member IPowerThread model are implemented, zero-length PBR entries are accepted, and the 32-bit WNDPROC ABI is fixed; batch368_test and batch369_test pass on x86_64 and i686.
batch 367 (v0.2.158) - legacy PBR/PBRES resources are decoded and embedded; batch367_test reads its RT_STRING payload on x86_64 and i686; TXT/THREAD OBJECT, printer/serial, and #314 remain open.
batch 366 (v0.2.157) - THREADED arrays now use a per-thread runtime descriptor: threads may DIM the same array with different shapes, and indexing, LBOUND/UBOUND, ARRAYATTR, REDIM PRESERVE and bulk array operations read the calling thread's live bounds; batch366_test passes on x86_64 and i686; PBRES/PBR, TXT/THREAD OBJECT, printer/serial, and #314 remain open.
batch 365 (v0.2.156) - PRINT # comma separators now advance to the next 14-column print zone; batch365_test matches the PBWin10 reference byte-for-byte on x86_64 and i686; PBRES/PBR, TXT/THREAD OBJECT, THREADED shapes, printer/serial, and #314 remain open.
batch 364 (v0.2.155) - multi-line MACRO FUNCTION statement bodies now lower inline; batch364_test matches PBWin10 on both targets; PRINT # comma zones, PBRES/PBR, TXT/THREAD OBJECT, THREADED shapes, printer/serial, and #314 remain open.
batch 363 (v0.2.154) - sequential CHR=WIDE is implemented as a UTF-16LE text layer (PRINT #/WRITE # formatting, wide CRLF, LINE INPUT #/INPUT # lexing, FILESCAN and EOF, 0x1A marker); fixed WSTRING storage is inline [n x i16] with capacity LEN and space padding, mixed STRING/WSTRING comparisons promote to UTF-16, and EOF(#n) is accepted; batch363_test passes on both targets with fails=0 and a 140-byte output matching PBWin10 SHA256 8D4150BA9C552A618DA13AB6D45A135DE767652BAFED929F3D13F5F8B05912CE; the multi-line MACRO FUNCTION form was closed in batch 364; PRINT # comma print zones remain open.
batch 362 (v0.2.153) - REDIM PRESERVE shrink clears every dropped tail slot (PBWin10 101 202 0 0), EnumPrintersW is resolved dynamically and no longer crashes PB-linked executables, and the existing OEMTEXT/CB.NM/D4 probes are recorded; multi-line MACRO FUNCTION, sequential CHR=WIDE, PBRES/PBR, TXT/THREAD OBJECT, THREADED per-thread shapes, and other recorded gaps remain open.
batch 361 (v0.2.152) - one-line MACRO FUNCTION expands as an expression macro, multi-line MACROTEMP identifiers receive unique four-digit expansion suffixes, and EXIT MACRO jumps to a generated end label; multi-line MACRO FUNCTION lowering, sequential CHR=WIDE, PBRES/PBR, EnumPrintersW, TXT/THREAD OBJECT, and other recorded gaps remain open.
batch 360 (v0.2.151) - SESSION-struct global STRING fields reserve four FIELD-descriptor pointer slots, CHR=WIDE is accepted as a CHW no-op for BINARY/RANDOM files while sequential WIDE remains an explicit compile error; REDIM PRESERVE repeated AS type confirmed against PBWin10 to preserve prefix values, no code change; sequential UTF-16 conversion and other known gaps remain open.
batch 359 (v0.2.150) - OPEN ACCESS/LOCK/BASE implemented with runtime enforcement, OPEN failures set ERR 53/70/75, bare CLOSE and multiple-file CLOSE implemented, FIELD no longer overflows pointer-sized string slots (i686 C0000005 fixed), CHR=WIDE rejected explicitly; TCP LINE INPUT drained-line behaviour confirmed against CHW; CHR=WIDE, MACROTEMP/EXIT MACRO, PBRES/PBR, EnumPrintersW, TXT/THREAD OBJECT, REDIM PRESERVE edge semantics remain open.
batch 358 (v0.2.149) - CSET ABS/USING implemented, $$CRLF/$$DQ2/$$SQ2/$$QCQ/$$WHITESPACE wide equates with code-unit LEN, BYVAL VARIANT expression arguments via a temporary container, STR$/PRINT # single-precision literal formatting aligned with PBWin10, TCP CLOSE drains queued bytes so a reply in flight is not lost to an RST (batch205 loopback is now 10/10), UNION/TYPE bit fields covered by a regression probe; OPEN clauses, MACROTEMP/EXIT MACRO, PBRES/PBR, EnumPrintersW, TXT/THREAD OBJECT remain open.
batch 357 (v0.2.148) - i686 THREAD CREATE Error 7 gone (stdcall boot thunk), DIALOG NEW creates hidden and SHOW reveals it, thread-local CALLSTK (F4 heap corruption 9/100 -> 0/200), NOTIFY window-message probes on both targets, 32-bit Hello 155,648 B; TXT/THREAD OBJECT still open with explicit diagnostics.
batch 356: i686 WNDCLASSEX/MSG/NMHDR/TCITEMA use the 32-bit layout and pb_wndproc the 32-bit ABI; 32-bit GUI windows are created again and no longer crash.
batch 355 (v0.2.146) - new FORK EXTENSION VERSION$(): a zero-argument string function that returns the release version the running compiler was built from, baked in from the repository VERSION file at build time (the same string the banner and PB64Basic --version report). Both VERSION$() and the bare VERSION$ spelling compile; the value is copied into a real BSTR. Coverage now 948 rows with 31 fork extensions. Self-check: examples/batch355_test.bas.
batch 354 (v0.2.145) - compiler banner prints [PB64Basic] Version ... first; --version added; version is baked in from the repository VERSION file at build time; release gate versionfile blocks a stale banner.
batch 353 (v0.2.144) - TCP/UDP NOTIFY now register with WSAAsyncSelect (full CHW clause, Error 57 on failure); CHRBYTES returns 2 for wide strings; two keywords move to Implemented.
batch 352 (v0.2.143) - on x86_64 a BYVAL DWORD/LONG parameter receiving a 64-bit STRPTR/VARPTR/HANDLE keeps the full i64 width (the i686 stack-slot truncation is retained for 32-bit targets only), and a BYREF optional pointer passed literal 0 reaches the callee as NULL instead of a pointer to a zeroed temp slot; covered by examples/batch352_test.bas (FAILURES: 0).
batch 351 (v0.2.142) - the ASC assignment statement now rejects a WSTRING / UDT / numeric left-hand type with a named parser error instead of falling through an empty codegen arm and dropping the assignment silently; the STRING and STRING * N paths are unchanged, covered by examples/batch351_test.bas (FAILURES: 0) and the b351_asc_wstring negative probe.
batch 350 (v0.2.141) - TCP LINE INPUT now returns a partial line when the receive buffer drains and reports EOF TRUE (first byte still waits, timeout still Error 24; batch205 loopback re-ran clean); TCP/UDP NOTIFY compile with a warning that the event mask is stored but never delivered, and their coverage rows move to Not implemented; THREAD OBJECT/THREAD NEW and the TXT pseudo-object now name the missing model instead of a generic parse error, and i686 THREAD CREATE warns about the runtime error 7 at compile time.
batch 349 (v0.2.140) - compiler stack sizing and THREADED FLS init hardening: the front end now runs on an explicitly sized 32 MB stack thread, so the debug build no longer dies with 0xC00000FD at the parse stage and a 200-level nested expression compiles in both the debug and the release profile (self-check examples/batch349_test.bas, FAILURES 0); FLS initialisation is a CAS-guarded exactly-once block instead of a plain global read/write; the intermittent 0xC0000374 in the THREADED stress example is measured at 6-8% over 100 runs across runtime generations and recorded as a pre-existing low-frequency multi-thread issue, not fixed; a 32-bit hello built with the shipped obj is 155,648 bytes, so the reported 516,096-byte size does not reproduce. No new keyword; coverage stays at 947 rows / 915 implemented.
batch 348 (v0.2.139) - conversion-slot guards plus DIM/TLS boundaries: every numeric conversion helper now rejects a whole structure (Error 420: ... not a structure) and a whole array written with empty subscripts (Error 420: ... not an array) instead of reading the first field / silently taking element 1; DIM carries an explicit_type flag, so DIM a(...) AS LONG overrides an inherited THREADED Integer/STRING element type or a pending GLOBAL type while a bare DIM still inherits it (this also removes a C0000005 when a GLOBAL STRING array was re-DIMmed AS LONG); a THREADED array dimensioned with two different shapes is now compile error 482 instead of silently keeping the first shape; thread exit frees each THREADED block through an FLS callback (peak private memory 10.8 MB over 40 rounds x 10 threads x 400 KB, where the registration-disabled control build reaches 158.5 MB); MEMORY FILL and EXTRACT$ read the BSTR prefix length so an embedded NUL keeps the payload. CharToOemA/OemToCharA and the COM marshalling slot keep strlen by design (NUL-terminated Win32 API / interned C-string constant without a BSTR prefix). 3 negative probes, self-check examples/batch348_test.bas FAILURES 0. No new keyword; coverage stays at 947 rows / 915 implemented.
batch 347 (v0.2.138) - C-family numeric conversions (CINT, CLNG, CDWD, CLNGINT, CUINT, CULNG, CQUAD, CQUD, CDWORD, CBYTE/CBYT, CWORD/CWRD, CDBL, CEXT, CSNG, CFLT, CCUR, CCUX) reject a string/pointer operand at compile time with Error 420 (numeric operand expected) instead of silently passing the BSTR pointer bit pattern into the integer/float conversion; the dispatcher forwards the keyword name to guard_numeric_operand. CINT/CLNG/CQUD/CDBL/CSNG align with the measured PBWin10 behaviour; the fork-only extensions follow the same rule. 13 negative probes added under negative_probes/b347*; positive witness examples/batch347_test.bas, FAILURES 0. No new keyword; coverage stays at 947 rows / 915 implemented.
batch 346 (v0.2.137) - refactored 23 range loops in pbcompiler/src/codegen.rs to direct iterator form to clear the newer clippy needless_range_loop lint that the CI runner promotes to an error under -D warnings; loops that still compute a byte-stride offset keep the index via enumerate. Behavior-preserving internal change, emitted IR and executables unchanged. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check examples/batch344_test.bas; compile-all 399 ok / 0 failed, headless 257 ran / 0 failed.
batch 345 (v0.2.136) - setup.ps1 runtime build reads the object name and target triple into plain scalar variables before invoking clang; previously the hashtable property was interpolated into --target= as the type name System.Collections.Hashtable.Triple and clang rejected it with unknown target triple. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check examples/batch344_test.bas, dual-run fork vs PBWin10 FAILURES 0.
batch 344 (v0.2.135) - repeatable --include-dir switch plus PB-style /I alias (/I
and /I , case-insensitive): a bare #INCLUDE header name searches the command-line directories first (in order, de-duplicated), then the built-in PBWin install candidates, then the source parent; separator-bearing relative paths still resolve against the source parent only. Preprocessor full Win32API include set drops from about 208s to about 2.6s via single-scan HashMap equate/macro lookup, IR line-for-line identical. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check examples/batch344_test.bas, dual-run fork vs PBWin10 FAILURES 0.
batch 343 (v0.2.134) - numeric-to-string family compile-time type guard: STR$/CSTR$, HEX$, OCT$, BIN$, DEC$ reject a string/pointer operand at compile time with Error 420 (numeric operand expected) instead of silently rendering the BSTR pointer bit pattern as a garbage number; eight existing examples drop the spurious STR$ around string variables (numeric STR$ preserved), batch025 moves a REGISTER string to LOCAL. Six negative probes in _negative_probes; self-check examples/batch343_test.bas, dual-run fork vs PBWin10 FAILURES 0. No new keyword; coverage stays at 947 rows / 915 implemented.
batch 342 (v0.2.133) - ON ERROR retry loop and COM failure conformance plus embedded-NUL string length: bare RESUME retry re-enters the clear-before block so the residual error code is cleared before the statement runs again; NEWCOM/GETCOM/ANYCOM failure sets NOTHING without raising Error 99; the retry checkpoint entry block is captured before the body for IR dominance; CHRTOUTF8$/UTF8TOCHR$, BUILD$, JOIN$, CLIP$/SHRINK$/REMOVE$/RETAIN$/REMAIN$ read the BSTR prefix length. CLIPBOARD TEXT/OEMTEXT keep strlen by Win32 NUL-terminated format semantics. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch342_test.bas, batch343_test.bas.
batch 341 (v0.2.132) - Ship the i686 runtime object in the release package and lock linker size options: the zip now carries pb_runtime_x86.obj for --target i686-pc-windows-msvc; both runtime objects are rebuilt -O2 with per-function COMDAT sections; the linker passes /OPT:REF, /OPT:ICF and /DEBUG:NONE for both targets; the zip smoke links hello.bas for x86_64 and i686. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch340_test.bas.
batch 340 (v0.2.131) - NUL-safe string length: WRAP$/UNWRAP$/MCASE$/VARIANT$/VARIANT$$ read the BSTR 4-byte length prefix (pb_str_len) instead of C strlen; VARIANT$$ uses explicit-length MultiByteToWideChar twice (need -> malloc -> got). An embedded NUL no longer truncates the payload. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch340_test.bas.
batch 339 (v0.2.130) - #284 Error 51 (Internal error) and Error 99 (Object error) conformance: Added NULL check for pb_com_new() calls in codegen. When NEWCOM/GETCOM/ANYCOM fails (returns NULL), runtime now triggers Error 99 (Object error). Verified existing Error 51 trigger point in RENAME operation. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch339_test.bas.
Changes:
Added NULL check for pb_com_new() in codegen.rs (Expr::ComNew branch). When COM object creation fails (returns NULL), runtime now raises Error 99 (Object error).
Verified existing Error 51 trigger point in RENAME operation (pb_runtime.c:6578).
Verification:
cargo fmt --all: clean
cargo clippy --release -D warnings: clean
Test program: NEWCOM with invalid ProgID correctly triggers Error 99
batch 337 (v0.2.128) - CHR$ range inverted-range overflow fix: CHR$(a TO b) with a > b previously computed count = b - a + 1 (negative), malloc'd a huge buffer, and wrote bytes at negative offsets. Now clamps count to >= 0 so an inverted range yields an empty string. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch337_test.bas.
batch 336 (v0.2.127) - string negative-count overflow fix: STRING$, SPACE$, and STRING$$ previously allocated n+1 (or n2) bytes and wrote the NUL terminator at buf[n], which for n < 0 writes one or two bytes before the malloc'd buffer. Now clamps n to >= 0 with icmp+select so the loop never runs and the terminator lands at buf[0], matching CHW "negative count produces an empty string". Also extracted fb.raise_error(code) to deduplicate the 9 runtime-error trap sites. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch336_test.bas.
batch 335 (v0.2.126) - runtime Error 6 division edge-case trap: integer division (\) and modulo (MOD) now also check for the INT_MIN / -1 edge case on top of the existing division-by-zero trap, calling pb_raise_error(6) when the mathematical result cannot be represented in i32/i64. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch335_test.bas.
batch 334 (v0.2.125) - runtime Error 6 add/sub overflow trap and Error 5 math-domain trap: signed i32/i64 addition and subtraction now use @llvm.sadd.with.overflow.* / @llvm.ssub.with.overflow.* and branch to pb_raise_error(6) on overflow, and SQR of a negative number / LOG of zero or negative call pb_raise_error(5) ("Error 5: Illegal function call"). No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch334_test.bas.
batch 333 (v0.2.124) - runtime Error 6 overflow trap and Error 9 subscript trap: signed i32/i64 multiplication now uses @llvm.smul.with.overflow.* and branches on the overflow flag to call the noreturn helper pb_raise_error(6) ("Error 6: Overflow"), and every array access inserts a per-dimension bounds check that calls pb_raise_error(9) ("Error 9: Subscript/Pointer out of range") when the index falls outside the declared [lower, upper] range. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch333_test.bas.
batch 332 (v0.2.123) - runtime Error 11 division-by-zero trap and Error 482 mapping refinement: integer division (PB \) and modulo (MOD) now emit a compiler-inserted zero-divisor check that calls a new noreturn runtime helper pb_raise_error(11), printing "Error 11: Division by zero" and exiting instead of letting LLVM sdiv/srem raise an unhandled hardware exception. The parser message "END (mismatched block)" is no longer misclassified as Error 482 (data type mismatch); it now falls through to the generic syntax code 477. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch332_test.bas.
batch 331 (v0.2.122) - i686 BYVAL truncation fix and precise parse error codes: i64 builtin results inlined into narrow integer BYVAL parameters on the 32-bit target are now explicitly truncated at the call boundary (previously the full 8 bytes shifted every subsequent argument on the i686 stack), and parser expect() emits PBWin-style messages mapped to the exact CHW 411-459 expected-code range instead of the generic 477 fallback, with the first error message embedded in the summary so the process exit code carries the precise code. No new keyword; coverage stays at 947 rows / 915 implemented.
batch 330 (v0.2.121) - CLI command-line handling and PEEK/POKE data type conformance: bare positional runtime objects are now linked and a normal build links an executable by default (unrecognized/conflicting arguments exit with code 2, new --obj-only flag), numeric PEEK correctly maps INTEGER to signed 16-bit and DWORD to unsigned 32-bit (new pb_peek16s/pb_peek32u) and recognizes EXT/CUR/CUX, PEEK$ with no count is a clear error, and POKE multi-value stride and EXT/CUR/CUX writes are fixed. No new keyword; coverage stays at 947 rows / 915 implemented. Self-check: examples/batch330_test.bas.
batch 329 (v0.2.120) - hash (#) metastatement family CHW conformance: built-in compiler equates defined with real identity, #IF compile-time arithmetic with banker's rounding (Error 427 on float literals), #COMPILE EXE/DLL explicit output names (Error 496), and #RESOURCE BITMAP/RCDATA/WAVE/TYPELIB/STRING/RES support (legacy PBR reports a clear error).
batch 328 (v0.2.119) - The FORK EXTENSION keyword EXTERN is renamed OBJEXTERN and gains an embedded object syntax: OBJEXTERN ["file.obj"] [32|64] name [ALIAS "sym"] AS type. Naming a file auto-links and de-duplicates it without a separate #LINK; a bare 32/64 marker is validated against the COFF machine header and auto-skips non-matching targets, while an unmarked object is verified against the current target. The old EXTERN keyword is removed with no alias. Also fixes a pointer-to-integer conversion that hard-coded i32 and truncated 64-bit addresses, and the 32/64-bit object machine-type conflict through target-aware preprocessor macros. Coverage stays at 947 rows with 30 fork extensions. Self-check: examples/batch327_test.bas.
batch 327 (v0.2.118) - New FORK EXTENSION keyword EXTERN declares external COFF data symbols: a pointer type returns the embedded data address and a scalar type loads the external value (label_size). IR names carry no underscore (ALIAS is used verbatim; Win32 clang adds the underscore), the 32-bit link passes /SAFESEH:NO and PEEK$ accepts a pointer-typed address. bin2coff plus #LINK plus EXTERN plus PEEK$ embeds and reads binary data. Coverage now 947 rows with 30 fork extensions. Self-check: examples/batch327_test.bas.
batch 326 (v0.2.117) - U/V/W keyword family CHW conformance: UBOUND/LBOUND boundary values, binary-safe UCASE/LCASE, LOCK/UNLOCK TO ranges, USING, UNION and UDP fixes; VERIFY, the VAL function and VAL statement and 64-bit VARPTR; WINMAIN wide-pointer dereference and LEN, WORD, WRITE#, WINDOW GET/SET, WHILE/WEND and WRAP/UNWRAP. The l3 test reserved-word variable was renamed and the 32-bit runtime objects rebuilt. No keyword coverage change (946 rows, 915 implemented). Self-check: examples/batch326_test.bas.
batch 325 (v0.2.116) - THREADED arrays are now supported: declared with empty parentheses and dimensioned with DIM/REDIM (including PRESERVE), each thread gets its own zero-initialized buffer with cross-procedure visibility and an independent main-thread copy. THREADSAFE procedures take an automatic SRW-lock semaphore through the unified return layer; THREAD CREATE parses StackSize/SUSPEND and CLOSE/SUSPEND/RESUME require a TO clause (the no-TO form was restored after a parser regression). TCP LINE INPUT uses a dynamically growing buffer instead of the fixed 4096-byte limit, and TCP OPEN resolves string ports via getservbyname. The batch205 loopback test was made headless with readiness flags. No keyword coverage change (946 rows, 915 implemented). Self-check: examples/batch325_test.bas.
batch 324 (v0.2.115) - TCP CHW conformance fixes: the default TCP timeout is 60000 ms instead of an indefinite block, a timed-out operation returns Error 24 (Device timeout) via WSAGetLastError, and TCP SEND is NUL-safe because it uses the string length rather than strlen. TCP RECV returns a string sized to the actual bytes. No keyword coverage change (946 rows, 915 implemented). Self-check: examples/batch324_test.bas.
batch 323 (v0.2.114) - JK-IDE addon release: Copy File now opens the source folder automatically. After the file is copied to the clipboard as a wide CF_HDROP descriptor, the folder containing the active file is opened so the file can be pasted immediately without browsing manually. The temporary diagnostic logging was removed for a clean final build, while the permanent MDI and tab subclassing and all seven context-menu actions are retained. The same seven actions are available from both the tab context menu (right-click a document tab) and the editor context menu (right-click in the editor area). No keyword coverage change (946 rows, 915 implemented). Smoke example: examples/batch323_test.bas.
batch 322 (v0.2.113) - JK-IDE addon release: editor tab context menu. Right-clicking an editor tab now opens a menu mirroring the legacy PB_IDE tab menu, with seven actions (Copy Path, Copy File Name, Copy, Open with, Open in Explorer, Rename, Close Tab) and two separators. Copy Path and Copy File Name place the full path or only the file name on the clipboard; Copy places a wide CF_HDROP file descriptor that can be pasted into Explorer; Open with runs the system "Open with" dialog; Open in Explorer opens the file's folder; Rename renames the file on disk and updates the tab title; Close Tab closes the active document. The menu is built through the addon usercontextmenu hook without modifying the signed JK-IDE executable. No keyword coverage change (946 rows, 915 implemented). Smoke example: examples/batch322_test.bas.
batch 338 (v0.2.129) - Error 7 (Out of memory) runtime check: added malloc_or_raise helper in codegen.rs that checks for NULL after every malloc() call and raises runtime Error 7 (pb_raise_error(7)) if allocation fails. Covers all 9 malloc call sites: CHR$ range, CHR$ multi, CHR$$ multi, STR$, HEX$, num_to_string, STRING$, SPACE$, STRING$$. This completes the runtime error coverage for CHW error code 7. #284 progress: runtime errors now landed: 5 (Illegal function call), 6 (Overflow), 7 (Out of memory), 9 (Subscript/Pointer out of range), 11 (Division by zero), 24 (Device timeout). Remaining: 51 (Internal error), 99 (Object error).
batch 321 (v0.2.112) - Parser fix for a parenthesized expression as the first SUB argument. A statement such as Check (1 = 1), "label", nfail (a space before the LParen) was misread as a parenthesized call Check(1=1), so only one argument was parsed and the end-of-line recovery silently discarded the rest, leaving the callee with garbage pointers and an access violation (0xC0000005). A new column-based adjacency check (lparen_is_adjacent) routes only an adjacent LParen (SubName(args)) to the parenthesized-call path; a space-separated LParen now goes through the no-paren call path that parses every argument. The minimal probes and the new self-check examples/batch321_test.bas run with exit 0; the full regression is green and adjacent calls/array indexes are unchanged.
batch 320 (v0.2.111) - DECLARE hardening follow-up: an unrecognized identifier in the DECLARE calling-convention position now produces a clear parse error naming the bad token, instead of being silently swallowed so the DECLARE degenerated to a parameterless default stdcall and later failed at link with a misleading _NAME@0. This covers a misspelled convention such as cdelc (the correct spelling is CDECL). Non-identifier tokens (ALIAS, LIB, parameter list, end of line) still flow through as before. The valid conventions remain CDECL, SDECL (STDCALL) and BDECL; the correct CDECL external-object path and the internal FASTPROC block are unaffected. Smoke example: examples/batch320_test.bas.
batch 319 (v0.2.110) - DECLARE calling-convention hardening (forum report): the DECLARE statement now rejects FASTPROC with a clear parse error instead of silently swallowing the token and later failing at link with a misleading undefined symbol. Per the CHW, FASTPROC is a procedure block (FASTPROC...END FASTPROC), not an external calling convention; the valid DECLARE conventions are CDECL, SDECL (STDCALL) and BDECL. A live i686 CDECL external-object probe links and runs correctly (caller cleans the stack, symbol _sum), and the legitimate internal FASTPROC block is unaffected. Smoke example: examples/batch319_test.bas.
batch 318 (v0.2.109) - R/S-family CHW audit (77 units): 35 real defects fixed with zero carried over. RESET now zero-initializes; REGEXPR/REGREPL fix group capture; REPLACE ANY and REMAIN honor a negative start; RANDOMIZE uses a per-thread PB-style PRNG with TIMER seconds since midnight; READ$ uses per-procedure DATA scope; REGISTER plus Error 491; REDIM AT overlay and PRESERVE; RESOURCE$ distinguishes numeric/string ids; ROTATE/SHIFT are width-aware; ROUND uses llvm.roundeven (ties-to-even); SHELL is synchronous CreateProcess; SWITCH uses a real CFG for short-circuit; SPLIT WORD; STR$ 1-18 digits; SWAP Error 482. The mandatory end-of-family double-run is byte-identical to PowerBASIC 10 and all gates G1-G5 pass.
batch 317 (v0.2.108) - N/O-family CHW audit (22 units): NAME now maps to Win32 MoveFileEx/GetFileAttributes (missing source=53, destination exists=58, access denied=51); NOT and AND/OR/XOR/Eqv/Imp on floats round half-to-even before the bitwise op (matching measured PBWin, not a type error); NEWCOM ProgID accepts a string expression; OPEN accepts an omitted FOR (default RANDOM) and tolerates ACCESS/LOCK/BASE/CHR clauses; OEMTOCHR$ supports the GRAPHIC/WIDE form with control-code pass-through; OBJRESULT$ added as the descriptive hResult string (FormatMessage system text, bare form equals OBJRESULT$(OBJRESULT)); OBJECT LET/SET/RAISEEVENT no longer hard-error; OBJPTR narrows to DWORD. ON CALL reclassified as a fork extension (PBWin rejects it with Error 477). The consolidated double-run is byte-identical to PowerBASIC 10.
batch 316 (v0.2.107) - M-family CHW audit (51 keywords): fixed fixed-length MID$ statement, MEMORY FILL byte count, MID$ function range/boundary rules, variadic MIN/MAX, MENU argument/state handling and MOUSEPTR; plus explicit DECLARE calling conventions and the i686 Varptr width fix.
batch 314 (v0.2.106) - Fixed the packaged runtime object missing function-sections. The shipped pbcompiler/runtime/pb_runtime_x64.obj was a stale build without -ffunction-sections, merging its code into one 220 KB non-COMDAT .text so /OPT:REF could not drop unused runtime routines (a minimal EXE was 509,952 B instead of 163,840 B). It is rebuilt with the canonical setup.ps1 flags (-ffunction-sections -fdata-sections, no -O2): 988 .text, 3,329 total, 3,324 COMDAT, 639,999 B. build-release-v2.ps1 now rebuilds the runtime with those flags before packaging, verify_release_zip.py requires at least 1,000 COMDAT sections in the packaged object, and the CI workflow builds both runtime objects with the same flags. No keyword coverage change (945 rows, 0 unimplemented).
batch 313 (v0.2.105) - Three 32-bit codegen fixes. Object compilation now uses -ffunction-sections -fdata-sections so the linker keeps a single main/PBMAIN body instead of two; no-LIB external DECLARE on i686 now emits the default stdcall convention and the decorated symbol (for example _sum@8), with a new llvm_ident helper quoting special-character aliases into valid IR; and DECLARE ... LIB now treats every non-stubbed user DLL as stdcall on i686, fixing the exit crash when calling a PowerBASIC stdcall DLL (the matching import library uses llvm-dlltool -k). The dual-side probes are byte-identical to PowerBASIC 10. No keyword coverage change (945 rows, 0 unimplemented).
batch 312 (v0.2.104) - L-family completion and floating-point literal precision. The lexer now applies the PowerBASIC literal rules: up to six written digits round to Single and widen to Double, 7-16 digits use Double, and the !/#/## suffixes force the precision; this makes the LPRINT double probe byte-identical (365 bytes). The LPRINT, LET, LISTBOX and LISTVIEW families were completed against the CHW (real LPRINT$ device function, OPEN_EXISTING/Error 68, numeric spacing, FORMFEED, compound assignment, EMPTY, variant-preserving assignment, and the full control action sets). All 83 L keywords were dual-run verified; full regression is green (compile-all, headless, 32-bit link, fmt, clippy, 35 coverage checks). No keyword coverage change (945 rows, 0 unimplemented).
batch 311 (v0.2.103) - L-family numeric fidelity and JK-IDE help. LOG, LOG2 and LOG10 now render exactly like PowerBASIC 10: the runtime number renderer was reworked as a portable x87-style formatter (correct 15-digit decimal rounding and half-even last digit), so the LOG/LOG2/LOG10 dual-run is byte-identical, including LOG(10)=2.30258509299404. LOWRD gained a clean dual-run probe (the earlier bare-PRINT probe failed on the PBWin side with Error 477; the new ConPrint probe is identical). The JK-IDE add-on now integrates PowerBASIC Help and can compile with either PB64Basic or PBXB64.exe. No keyword coverage change (945 rows, 0 unimplemented).
batch 310 (v0.2.102) - Console subsystem and runtime dead-code fixes. #CONSOLE ON now links /SUBSYSTEM:CONSOLE so PRINT reaches the console (a new --console CLI flag forces it and overrides #CONSOLE OFF); the default and #CONSOLE OFF keep the GUI subsystem. The runtime is built with -ffunction-sections -fdata-sections, so lld-link /OPT:REF discards unreferenced functions; a minimal EXE shrinks from 502,272 B to 163,840 B (about 67%). No keyword coverage change (945 rows, 0 unimplemented).
batch 310 (v0.2.101) - Fixed a 32-bit (i686) codegen pointer-width bug. STRPTR and VARPTR were hard-coded to materialise the pointer via ptrtoint i64; on 32-bit, a BYVAL STRPTR/VARPTR in a stdcall frame pushed 8 bytes instead of 4, shifting every later argument and the callee stack cleanup and causing a deterministic access violation (C0000005). ptrtoint now uses the native pointer width (i32 on 32-bit, i64 on 64-bit). No keyword coverage change (945 rows, 940 implemented).
batch 309 (v0.2.100) - JK-IDE addon release: inline error annotation (a one-line red band printed directly under the error line, no hover/timer/dwell), save-before-compile, error-line jump, unified red standard output across all six addon entries, and the RUN-path fatal-error fix. No keyword coverage change (945 rows, 938 implemented).
batch 308 (v0.2.099) - F/G/H/I family CHW audit; fixed GOSUB return-point loop, HIWRD/HIBYT/LOWRD/LOBYT masks, bare ISFALSE, INPUT# space delimiting; dual-run probes byte-identical, compile-all 358/358.
batch 307 (v0.2.098) - legacy backlog cleared to zero: 10 headless run FAIL fixed, TYPE multi-dim read side aligned, DECLARE-#IF closed, CLIPBOARD/COMM/#BLOAT/OBJECT dispositioned (environment limits documented), FASTPROC and batch029 confirmed closed.
batch 301 (v0.2.097) - E-project audit and fixes: %EnumName.Member constant references now lex correctly; ENUM BITS auto-values follow 0,1,2,4,8; the two-argument EXTRACT$(MainStr, MatchStr) form is disambiguated from the start-index form. All verified dual-compile vs PBWin 10, output identical.
batch 300 (v0.2.096) - A/B/C re-audit closes real gaps: BIT CALC reset no-op, ISNULL/ISNOTNULL/ISNOTHING, FASTPROC (END FASTPROC = expr), six # meta-directives accepted; CSV +13 rows (945, 938 implemented); verify 35/35; compile-all 340/340.
Re-audit of the historical A/B/C batches (ARRAY ASSIGN, BIT family, CHOOSE and
the other keyword pages shipped before the D batch) is complete. Using the
corrected enumeration (underscore normalization) over all 1275 CHW pages, every
page was re-checked against the CSV and the codegen. Real gaps found and fixed
in this batch: BIT CALC reset (was a no-op), ISNULL/ISNOTNULL/ISNOTHING
(newly implemented; ISOBJECT null-type bug fixed in the same sweep), FASTPROC
(full parse + END FASTPROC = expr return), and the six # meta-directives
#ALIGN/#BLOAT/#COM/#EXPORT/#PAGE/#UNIQUE VAR (now accepted without error).
ISINTERFACE and ISMISSING are recorded as Not implemented (they need
optional-parameter and interface-query machinery the fork does not have yet).
Every fix is probe-verified on both PBWin 10 and this fork (BIT CALC 8/24/8,
ISNULL -1, FASTPROC 7); note that PBWin command-line builds reject bare
PRINT/WAITKEY$ (errors 477/415) so the PBWin probes use the Win32 console
pattern (AllocConsole/WriteFile) exactly like the batch 234 examples.
Audit method for batch 299-302: enumerate the CHW keyword pages (534 keyword .htm files under pbwin_chm/html) and diff the base names against the coverage CSV. The earlier hhk-index audit missed the pseudo-variable pages (ME_pseudo-variable.htm, MYBASE_pseudo-variable.htm), the numbered-suffix page (VARIANT_function1.htm) and the LET variants, so this batch adds the pseudo-variable / numbered / LET families to the enumeration regex. 13 real gaps were found and closed: ARRAYATTR (already implemented in codegen, CSV row added), GUID$/GUIDTXT$, ME/MYBASE, VARIANT$/VARIANT$$, #INCLUDE (already implemented), and the #MESSAGES/#OPTIMIZE/#STACK/#TOOLS/#UTILITY/#DEBUG meta-statements.
Batch 293-298 (v0.2.094): B-class D-audit completion - FOR EACH/NEXT, CB. family, OBJACTIVE/OBJEQUAL, VARIANT#/VARIANTVT, PROGID$, PBLIBMAIN/WINMAIN, PROPERTY GET/SET/END PROPERTY; boolean TRUE now prints -1 like PBWin.
Audit note (batch 291): D-batch A-class rows added and verified - DO/LOOP, WHILE/WEND, DATE$, TIME$, LBOUND, UBOUND, INPUTBOX$, OBJRESULT, OBJPTR, ISOBJECT, PBMAIN (CHW signatures + codegen hits + dual-run probes; the datetime/inputbox probe is compile-verified only, run-forbidden as it mutates the system clock and opens an input dialog). VERSION$ classified as a false hit (LIB "VERSION", not a function) and removed from the audit list.
batch 288 (v0.2.092) - JK-IDE addon: compiler paths are read from JKIDE.ini at runtime (no hardcoded paths, setup.bat writes local paths on any machine); new "JKIDE.INI" item in the Compilers menu opens the config inside the JK-IDE editor via the WM_COPYDATA %IDE_Open protocol.
batch 287 (v0.2.091) - JK-IDE Compilers menu error UX: PBWin10 now runs JK-IDE's own compile command (editor highlight + red gutter dot + caret jump, same as F9), PB64Basic/PBXB64 stream the log to the Output Window (error lines auto-red) and fake the jump via the editor's Scintilla control (SCI_GOTOLINE + red roundrect marker); setup.bat overwrites the addon files on every Y run, so re-running it updates an existing JK-IDE install to the latest addon.
batch 286 (v0.2.090) - JK-IDE Compilers menu integration shipped in the release (userdll addon + JKIDE.ini paths + optional zip-root setup.bat install step).
batch 285 (v0.2.089) - inline-asm hardening (clobber scan, hex/oct/bin immediates, WORD unsigned reads) + three asm examples with dual-side behavioral verification (cpuid byte-identical, math 10/10 both sides, simd 4/0 both sides - PBWin10 upgraded from stub to real MMX/x87/SSE).
batch 284 (v0.2.088) - NEWCOM/GETCOM/ANYCOM with CLSID + LIB registry-free COM creation; PRINT# byte-exact separator/number semantics matched to PBWin.
batch 283 (v0.2.087) - MK*$ pack family: 11/11 upgraded to Implemented after PBWin dual-run probes (MKCUR$/MKCUX$ fixed-point pack + CVCUR$/CVCUX$ read-back fixed, PRINT negative leading space fixed, MKE$ 10-byte 80-bit extended + CVE$ read-back + ASC BSTR-length NUL fix).
batch 282 (v0.2.087) - Established pool audit: 113 keywords promoted Established -> Implemented (codegen/parser/runtime + dual-run evidence); 13 kept Established - INTERFACE x2 (CLASS interface object model, next feature) and MK*$ x11 (not implemented).
batch 280 (v0.2.086) - SLL toolchain (#COMPILE SLL official forms + #LINK host + implicit extern BYREF), nested TYPE/UNION structures with LEN(UDT) crash fix, $/$$ string equates, reserved-word TYPE members, NEWCOM method calls (OBJECT CALL/GET + VARIANT marshalling, Unicode string args), OBJECT compound member chains via per-level IDispatch, WSTRING true UTF-16 type end-to-end (BSTR layout, COM type code 12). OBJECT upgraded to Implemented.
batch 276 (v0.2.085) - DLL toolchain batch: in-source #COMPILE DLL/SLL detection, LIBMAIN/DLLMAIN entry points, DECLARE ... LIB import-library linking with named-missing-file error, official DLL samples (batch276_MyDLL.bas / batch276_testDLL.bas) + build_mydll.bat, top-level UNION/ENUM, DEFtype family, READ$ / DATA case preservation, DEC$ banker rounding, CHR$ range form, BSTR NUL-safe string functions, CLASS NEWCOM instantiation, ERR 54 file/COMM distinction, PRINT# CRLF output.
batch 266 (v0.2.084) - CB.NM* behavioural verification: 13 common %WM_* equates (%WM_NOTIFY, %WM_INITDIALOG, %WM_ERASEBKGND, %WM_NCCALCSIZE, %WM_SYSCOMMAND, %WM_PARENTNOTIFY, %WM_GETMINMAXINFO, %WM_HELP, %WM_MOVE, %WM_SETFOCUS, %WM_KILLFOCUS, %WM_SETREDRAW, %WM_USER) were missing from the built-in equate table and silently resolved to 0; added per WinUser.inc. New self-triggering GUI example batch266_cbnm_click.bas verified CB.NMCODE/NMID/NMHWND/NMHDR/NMHDR$ against PBWin10 under real WM_NOTIFY (LVN_ITEMCHANGED). Zero regression (MATCH 153 / DIFF 0).
batch 265 (v0.2.083) - C-batch completion: CLASS interface object model (INTERFACE official shape) + ERR 54 / ON ERROR triple fix / ERR variable split + COMM RECV ERR 5 + batch213 CLASS fix (ONLY-FORK 3->2) + COMM function CSV row added.
statement-level alignment complete: CB.NM* five-piece set + CALLBACK FUNCTION/SUB top-level declarations, COMM error-code table fully aligned against PBWin measurements, CLIPBOARD GET OEMTEXT/UNICODE fallback, METHOD = expr.
batch 260 (v0.2.080) - #LINK metastatement links external MS COFF object modules (.obj/.lib) into EXE/DLL hosts (extension over .SLL/.PBLIB; PBWin 10 rejects .obj with Error 630); DECLARE without LIB now generates a real external symbol (ALIAS keeps case, else upper-case ProcName per CHW) - undefined external calls fail at link instead of silently returning 0; #LINK relative paths resolve against cwd then the source file's folder. New examples batch260_make_obj.txt (how to build an object module with clang), sum.c/sum.obj/build_sum_obj.bat, batch260_link_test.bas (prints 50). Dual-run baseline headless 134 / MATCH 131 / DIFF 0 / EMPTY 1 / ONLY-FORK 2 (batch029 Inline ASM extension + batch260 #LINK .obj).
batch 254 (v0.2.079) - MSGBOX full syntax (statement/function/? shorthand, default title "PB64Basic"); CONTROL by-id verbs per CHW; CONTROL ADD SCROLLBAR/TAB txt$ slot; TAB()/TAB$() function forms; batch174 DIALOG GET CLIENT height after MENU ATTACH; batch205 TCP OPEN SERVER ADDR bind + CRLF line endings. Dual-run baseline MATCH 115 / DIFF 7 (env/resource) / EMPTY 1 / ONLY-FORK 1 (batch029 Inline ASM extension).
batch 249 (v0.2.078) - all 12 CONTROL ADD controls aligned to the CHW official 11-argument syntax (style&/exstyle&/CALL callback passthrough; CONTROL ADD has no TO clause - CONTROL HANDLE fetches the handle; CALLBACK FUNCTION ... AS LONG with FUNCTION=0 bodies); TEXTBOX DLU height -1 fixed (batch177 DIFF->MATCH); the WS_BORDER part of that fix was disproved in v0.2.193, because PBWin10's real default style is 0x50010080 and the frame comes from WS_EX_CLIENTEDGE; LABEL 11-arg layout clippy fix; dual-run baseline MATCH 115 / DIFF 2 (batch174 env, batch205 tcp) / EMPTY 0 / ONLY-FORK 1.
batch 238 (v0.2.077) - DIALOG SHOW MODAL hDlg TO Result official syntax (HelloDDT x64); DIALOG END optional result; 421/519 error-code alignment with PBWin10 (#DIM ALL/OPTION EXPLICIT); numeric IP network-order unified &H0100007F (UDP SEND/TCP OPEN raw, UDP RECV network order); repository detached+renamed hanlokesu/PB64Basic, compiler binary PB64Basic.exe, full rebrand of examples/docs/demo/IDE; Apache-2.0 4(b) notices; dual-run baseline MATCH 116 / DIFF 1 / EMPTY 0 / ONLY-FORK 1.
batch 237 (v0.2.076) - 27 dual-run DIFFs closed to MATCH (XPRINT env 7 / handle-value 10 / GUI controls 7 / misc 4; only batch205 stays a documented environment DIFF); XPRINT GET->STRING 0xC0000005 crash fixed in pb_runtime.c (char** BSTR write); batch190/191 CONTROL ADD / LISTVIEW-TREEVIEW-SCROLLBAR MATCH; batch236 TCP ACCEPT fix included; full baseline MATCH 114 / DIFF 1 / EMPTY 1 / ONLY-FORK 2.
batch 235 (v0.2.075) - batch224 WriteFile/ReadFile BYVAL fix; pb_runtime.c measured fixes (ERROR$ table, OPEN binary modes, LOC per mode, CLIPBOARD TRUE/FALSE, ARRAY DELETE collapse); codegen REDIM-zero / GLOBALMEM LOCK width / HEX$ sign-extend / PARSE$ comma default; full dual-run baseline MATCH 72 / DIFF 40.
batch 234 (v0.2.074) - REMOVE$/RETAIN$/REMAIN$ ANY sentinel fix, CHOOSE out-of-range type default (0/0.0/""), TREEVIEW INSERT ITEM x64 (PB_TVI_LAST=-2, i64->i32 store width); dual-run MATCH 62 / DIFF 49.
batch 232 (v0.2.073) - 2026-10-09: dual-compile verification (239/239 PBWin10 + fork) and 3 compiler bug fixes (STR$/PRINT number formatting, ERROR$ text parity, FixedString NUL safety)
batch 230 (v0.2.072) - examples PBWin10 dual-compile parity complete: 239/239 compile under both PBWin10 and fork (163 -> 0). PBWin10 syntax rulings: #OPTION EXPLICIT unsupported (use #DIM ALL); #DEBUG/#BREAK/#UNIQUE/#BLOAT/#COM/#EXPORT/#MESSAGES meta commented; GRAPHIC ATTACH 2-arg; BITMAP NEW TO target LONG; STR$ balanced parens (ISFILE/LEN); LOCAL waitk decls; END IF closures; & STR$(q) QUAD concat. fork compile-all 239/0, headless 117/0.
batch 226 (v0.2.071) - fix string & numeric concat type mismatch: "x" & LEN(...) / & n / & q& now convert the numeric operand to text instead of passing an i32 Val as a pointer to pb_str_concat (previously corrupted or dropped the whole output; behind the hello.bas 0xC0000005 family and the lost ISFILE/CURDIR$ values). Same conversion applied to numeric operands in string comparisons. New example batch226_test.bas, dual-compiler (fork + PBWin10). compile-all 239/0, headless 115/0.
batch 225 (v0.2.070) - PBWin10 example compatibility: STR$ string Error 420 cleared (41 files), nested STR$(STR$(x)) balanced-bracket fix (12 files), INPUT FLUSH removed, %MY_PBVER compile-time discriminator added to all 237 examples
batch 224 (v0.2.069) - dual-compatible example conversion (PRINT/WAITKEY$/#CONSOLE -> ConPrint/ConWaitKey Win32 wrappers, one side implements both-compilable) + x64 i32->ptr inttoptr fix (WriteFile/ReadFile slot-5 high-bits garbage crash); 236 examples CRLF/BOM/meta normalization; TRACE/GRAPHIC/XPRINT PRINT collateral fixes (10); single-line IF-ELSE expander colon-split-inside-quotes fix (batch029); IMAGELIST/GLOBALMEM 64-bit handle QUAD fixes (batch173/199c crashes, batch201 FAILURES cleared); fork compile-all 237/0, headless 112/0
batch 222 (v0.2.068) - OOP event bus: EVENT SOURCE / EVENTS FROM / EVENTS END / RAISEEVENT real implementations; INSTANCE marked Implemented; dotted method calls now resolve SUB-style (void) methods too. Counts: 713 implemented / 148 established / 861 available / 0 not implemented.
batch 221 (v0.2.067) - WAITKEY$ on 60 console examples; ARRAY SELECT/ARRAY_SELECT_OP argument-shift crash fixed; 23 GUI examples revert WAITKEY$; batch021 process-exit hang fixed. Counts unchanged: 709 implemented / 148 established / 857 available / 4 not implemented.
batch 220 (v0.2.066) - make the last 125 short-argument codegen arms loud (sweep 143 -> 0): every malformed short spelling now stops the build with a line number and the official syntax; harden GET#/PUT# record arms (non-lvalue and dynamic-string targets report, pointing to GET$ / PUT$); fix the PUT$ runtime write bug (pb_put_string's early return was unconditional, so PUT$ never wrote); add batch220_test.bas witness (MEMORY FILL / NAME / PUT$ / GET$ / SEEK / DIR / DESKTOP GET family, FAILURES: 0).
batch 219 (v0.2.065): 50 argument-count guards are loud. A short LISTVIEW / TREEVIEW / COMBOBOX / SCROLLBAR / PROGRESSBAR / DIALOG / FILECOPY / SETATTR / SEEK statement now fails the build with the official syntax and a line number instead of compiling into a no-op (FILECOPY requires its arguments: FILECOPY sourcefile , destfile). Only arms whose guard equals the official minimum were touched (50 = silent AND official==guard); the 140 whose guard is looser are left for a batch that implements the short form. The first attempt patched GRAPHIC ATTACH too and broke 13 examples - the example corpus caught it, and the set now excludes the three arms that already report. sweep_arm_arg_guards.py learned the if call.args.len() < N { return Err(...) } shape, so the silent count moved 198 -> 143. Witnesses: _b219_probes/*.bas exit 1, batch170/batch183/batch184/batch201/new batch219_test run with FAILURES: 0, corpus 233 compiled / 0 failed.
batch 218 (v0.2.064) - a malformed GLOBALMEM statement is loud now. The batch-217 reachability suspects (GLOBALMEM / DISPLAY / CLIPBOARD) were an artefact of my own reconnaissance regex - the names are built with format! or are dedicated AST statements, so a literal-name scan reports zero; all three are wired end to end and GLOBALMEM already had witnesses (batch201 / batch017). What was real: every GLOBALMEM arm is if call.args.len() >= 2 { work } with nothing before the guard, so GLOBALMEM FREE h (the official syntax carries TO vHndl) compiled cleanly and did nothing - the block leaked silently. All five arms now report GLOBALMEM FREE requires its destination: ... with the line number. Witnesses: examples/batch201_globalmem_trace_test.bas runs clean (=== FAILURES: 0), _b218_probes/globalmem_no_target.bas fails loudly (rc=1). Counts unchanged.
batch 217 (v0.2.063) - the dotted method call o.M(args) is real: the parser used to build o.GetIt as a plain field access, so the call never reached codegen (Runtime error: Unknown field: C.GETIT, then lld-link: error: undefined symbol: PBMAIN); the receiver is now kept in the AST and codegen lowers it to the qualified procedure <Class>_<Method>(o, args) - expression position, statement position (result discarded) and a real argument list after the dot. An unknown method and a receiver that is not a TYPE instance stop the build instead of yielding a value (3/3 negative witnesses loud). batch 216 rides along: a METHOD body reaches the instance fields through the implicit BYREF receiver this. Counts unchanged: 709 implemented / 148 established / 857 available / 4 not implemented.
batch 214 (v0.2.062) - CLASS/METHOD part 2: METHOD blocks are real bodies. END METHOD terminates a method inside CLASS, the method leaves the parser as (an ordinary function, so codegen needed nothing new), a top-level METHOD keeps its AS-type return value (batch 159 dropped it, so calls silently yielded 0), a method without a terminator is reported instead of swallowing the file, and the top-level driver no longer eats the next declaration's first token. Counts unchanged: 709 implemented / 148 established / 857 available / 4 not implemented.
batch 211 (v0.2.061) - ACCEL ATTACH gets a real runtime: the table is sized from the array's declared element count, created with CreateAcceleratorTableA, and consulted by both message pumps through TranslateAcceleratorA; the optional TO clause keeps the handle. INSTANCE / EVENTS / EVENT SOURCE / RAISEEVENT stay parked and reported, because they need a CLASS/INTERFACE/METHOD object model codegen does not have.
batch 210 (v0.2.060) - coverage correction: ACCEL ATTACH / EVENT SOURCE / EVENTS / INSTANCE / RAISEEVENT were listed as Implemented although codegen emits no code for them (parked OOP/DDT arm). Status corrected to Not implemented, so the tables match the compiler; the sample corpus names exactly these five in its .unimplemented.log files.
batch 209 (v0.2.060) - the 5 parked OOP/DDT drops (ACCEL_ATTACH/EVENT_SOURCE/EVENTS/RAISEEVENT/INSTANCE) are reported now: the arm pushes to compiler.warnings, producing the WARNING line and an <output>.unimplemented.log with statement + line. sweep_noop_arms no-op 2 -> 1.
Batch 197 audit: the family-early-return warning from v0.2.047 was a false alarm (IMAGELIST* and other covered families are implemented) and it inflated the silently-dropped inventory. The push was removed; only the genuinely empty arm still reports. Witness: examples/batch197_witness.bas prints the image-list handle it receives.
Batch 196 audit: fixed the duplicate "accepted but emits no code" warning that v0.2.047 introduced (both the empty arm and the family early return pushed it). Verification is the sample log line count: examples/batch196_test.bas uses 4 statements and the log must contain exactly 4 statement lines.
Batch 195 audit: codegen-side no-op groups (INSTANCE / EVENTS / EVENT SOURCE / RAISEEVENT / ACCEL_ATTACH) now emit a compiler warning instead of dropping the statement in silence. Turning them into hard errors was measured and rejected: it broke 2 and 41 shipped examples respectively. Baseline re-measured: all 203 examples compile with 0 failures.
Batch 192 (v0.2.046): 23 statement forms that used to be compiled as silent no-ops now report an error, including the top-level catch-all for unrecognised statements.
batch 191 (v0.2.045): DDT unknown sub-commands now hard-fail (LISTVIEW / TREEVIEW / SCROLLBAR); no coverage change.
batch 190 (v0.2.044) - +3 official keywords: CONTROL ADD MONTHCAL / ANIMATE / RICHEDIT (parser + codegen + runtime, class names SysMonthCal32, SysAnimate32, RICHEDIT50W with msftedit.dll loaded). examples/batch190_test.bas = 12 checks, FAILURES:0.
batch 189 (v0.2.043) - CONTROL ADD TRACKBAR / UPDOWN / HOTKEY / IPADDRESS: parser + codegen + runtime for four more common-control types, witnessed by class name, GWL_STYLE and a SendMessageA round trip in examples/batch189_test.bas.
batch 187 (v0.2.042) - PRINT's trailing ; / , suppresses the newline (PrintStmt::trailing carried through the parser; l14 regression test, both targets)
batch 186 (v0.2.041) - fix, no coverage change: a PRINT program now links for the 32-bit target (legacy_stdio_definitions.lib is passed to the linker for i686, in both the EXE and the DLL link step). Guarded by pbcompiler/tests/l13_print_link.bas through scripts/link_smoke_32.py.
batch 185 (v0.2.040) - the last seven Tier-3 statements implemented, which empties the Tier-3 list: GRAPHIC INSTAT, GRAPHIC INPUT, GRAPHIC INPUT FLUSH, GRAPHIC LINE INPUT, GRAPHIC INKEY$, GRAPHIC WAITKEY$ and GRAPHIC SPLIT (with its WORD variant). The graphic window's WM_CHAR / WM_KEYDOWN handlers now collect keys into a byte queue that reproduces the documented INKEY$ contract exactly - an empty string when nothing is pending, one ASCII byte for a normal key, and a leading NUL plus the scan code for an extended key - and every read statement pumps this thread's message queue first, because the graphic window in these programs has no message loop of its own to do it. GRAPHIC SPLIT was the one statement whose parser arm already existed while codegen emitted nothing at all, so it silently did nothing; it now measures the text with GetTextExtentPoint32A against the current font and keeps Part1Len in page units as the official page specifies rather than counting characters, and the WORD form backs up to the last space instead of cutting a word. Two limits are recorded rather than left to be discovered: the official syntax is ambiguous for the one spelling "GRAPHIC INPUT name$, age" (prompt is defined as a string, so a leading string operand followed by a comma is read as the prompt), and GRAPHIC INPUT / GRAPHIC LINE INPUT block until ENTER, so the sample compiles both but runs neither. 0 Tier-3 DDT keywords remain.
batch 182 (v0.2.039) - the six GRAPHIC image/capture statements implemented (GRAPHIC IMAGELIST / RENDER / SET SCROLLTEXT / GET SCROLLTEXT / STRETCH, including its PAGE form, plus GRAPHIC BITMAP CAPTURE, which the official help does not document and which the coverage table therefore records as a fork extension); four defects were found and fixed while verifying, and the sample is what found two of them - the STRETCH parser consumed only two of the four coordinate pairs so the target rectangle was dropped and the stretch silently drew nothing, none of the seven new runtime functions had a declare_function entry so the IR used an undefined value, handle operands were narrowed to i32 in IMAGELIST / STRETCH / STRETCH PAGE, and STRETCH / STRETCH PAGE passed the caller's HBITMAP where StretchBlt wants a DC so they painted nothing while the compiler and the linker both reported success. GRAPHIC SPLIT deliberately stays Tier-3: its parser branch is in place but codegen emits nothing for it. One defect is recorded rather than fixed - a graphic window still alive at process exit terminates the process with 0xC0000005, reproduced by a six-line window+box program that uses no batch-182 statement. 7 Tier-3 DDT keywords remain.
batch 181 (v0.2.038) - the six GRAPHIC viewport statements implemented (GRAPHIC REDRAW / SET FOCUS / SET LOC / SET CLIENT / SET OVERLAP / GET OVERLAP), the last of the GRAPHIC group to leave Tier-3; one defect found and fixed while verifying - GRAPHIC GET LOC had answered 0,0 unconditionally while the CSV called the row Implemented, and the help page reserves 0,0 for the "no Graphic Window selected" case, so it now reports the real screen position through GetWindowRect. Two limits are recorded in the source and the release notes rather than left to be discovered: the overlap flag is one runtime-wide switch because the runtime keeps a single current DC, and SET CLIENT treats its operands as pixels because the dialog-unit path of a DDT graphic control is not modelled. 13 Tier-3 DDT keywords remain.
batch 180 (v0.2.037) - the eight GRAPHIC WINDOW statements implemented (NEW / TEXT / CLICK / END / HIDE / MINIMIZE / NORMALIZE / STABILIZE / NONSTABLE), each window an independent top-level PBGRAPHIC_CLASS window that paints from its own memory DC and becomes the current GRAPHIC target on creation; one defect found and fixed while verifying - a drawing statement wrote into that buffer but nothing invalidated the window, so UpdateWindow found an empty update region, sent no WM_PAINT and the window kept showing the buffer as it was when it was created; the GDI drawing statements now mark the window dirty through pb_gw_touch(). This release also repairs three documentation defects: statement-coverage.md's summary table had accumulated duplicate rows, its "All keywords (N rows)" heading was stale at 738, and the v0.2.036 counts line said 830 available where 680 + 148 = 828 - the duplication was caused by sync_coverage_docs.py appending to the table instead of rebuilding it, which is fixed in the same change. 19 Tier-3 DDT keywords remain.
batch 179 (v0.2.036) - the last three Tier-3 CONTROL statements implemented (CONTROL ADD GRAPHIC / ADD HEADER / SET COLOR), which empties the CONTROL group of the Tier-3 list; the two-operand GRAPHIC ATTACH hDlg, id& form now really targets the control instead of attaching to nothing; four defects found and fixed while verifying - CONTROL SET COLOR treated every negative pair as "reset" so the documented -2 released the entry, GRAPHIC CLEAR built an empty RECT so it painted nothing on a DC target, a supplied style dropped the mandatory %WS_CHILD/%WS_VISIBLE bits so the control was never created, and the shared TREEVIEW/TOOLBAR/STATUSBAR/GRAPHIC operand loop read the TO clause before style/exstyle while the documented order is the other way round, so "..., style& TO hCtl&" silently did nothing. 27 Tier-3 DDT keywords remain.
batch 178 (v0.2.035) - the eight resource-image CONTROL statements implemented (CONTROL ADD IMAGE / ADD IMAGEX / ADD IMGBUTTON / ADD IMGBUTTONX and CONTROL SET IMAGE / SET IMAGEX / SET IMGBUTTON / SET IMGBUTTONX); the format argument is optional and the runtime discovers it (icon first, bitmap second) and ORs %SS_ICON/%SS_BITMAP or %BS_ICON/%BS_BITMAP into the style, the X forms add %SS_REALSIZECONTROL or scale through LoadImageA, the SET forms reuse the format already on the control and release the image they replace; the sample also caught a real defect - an image button never received its documented default %WS_TABSTOP because the check tested st == 0 after the format discovery had already set %BS_ICON/%BS_BITMAP. 30 Tier-3 DDT keywords remain.
batch 177 (v0.2.034) - the six "plain and static" CONTROL statements implemented (CONTROL ADD OPTION / ADD CHECK3STATE / ADD FRAME / ADD TEXTBOX / ADD LINE, plus CONTROL SET OPTION); the work also exposed a dead-branch defect: the pre-existing EDITBOX guard still listed TEXTBOX as an alias and sits earlier in the parser, so every CONTROL ADD TEXTBOX had been compiling as an EDITBOX and the new implementation was unreachable (the tell was that pb_control_add_textbox never appeared in the linker's undefined-symbol list); the EDIT class additionally clears WS_BORDER when no WS_EX_CLIENTEDGE is passed, so both EDIT helpers now pass it, verified against a plain ctypes CreateWindowExA probe. 38 Tier-3 DDT keywords remain.
batch 176 (v0.2.033) - the ten CONTROL message/state statements (HANDLE / SEND / POST / REDRAW / SET FOCUS / SET FONT / SHOW STATE / NORMALIZE / SET USER / GET USER), plus the 64-bit wParam truncation in the runtime's SendMessageA/PostMessageA declarations that they exposed. 44 Tier-3 DDT keywords remain.
batch 175 (v0.2.032) - the six CONTROL geometry statements implemented (CONTROL GET/SET CLIENT, GET/SET LOC, GET/SET SIZE); they now share the 7x14 dialog-unit base that CONTROL ADD lays controls out with (measured: routing them through GetDialogBaseUnits made a button added at 10,10 read back 8,8 and a 60x20 button read back 52x17) and CONTROL SET LOC no longer adds the parent client origin that SetWindowPos already implies for a child window (the same bug put "SET LOC 20,30" at 64,75); the probe that found those also found and fixed DIALOG SET SIZE passing SWP_SHOWWINDOW with no SWP_NOMOVE, which moved the dialog to 0,0 on every resize
batch 174 (v0.2.031) - the three remaining MENU statements implemented (MENU ATTACH / MENU CONTEXT / MENU DRAW BAR); MENU ATTACH reuses the existing dialog-menu path and is proven by reading the attached handle back with GetMenu plus the client-area shrink-and-restore; the same work found and fixed a real defect in the established CALL DWORD statement, which had been calling its target with no arguments at all because the parser swallowed the USING argument list
batch 173 (v0.2.030) - IMAGELIST image-loading family implemented (ADD BITMAP/ADD ICON/ADD MASKED/NEW ICON/SET OVERLAY); adding an icon needs ImageList_ReplaceIcon because the legacy ImageList_AddIcon macro returns -1, and the #id resource form now passes GetModuleHandleA(0) so an icon embedded in the EXE is found
batch 172 (v0.2.029) - TREEVIEW family completed: 18 statements implemented (GET BOLD/CHECK/CHILD/EXPANDED/NEXT/PARENT/PREVIOUS/ROOT/SELECT/USER, SELECT, UNSELECT, SET BOLD/CHECK/EXPANDED/IMAGELIST/TEXT/USER), and CONTROL ADD TREEVIEW now accepts the documented optional style&/exstyle& so %TVS_CHECKBOXES can reach the control; NEXT and SELECT are keyword tokens, not identifiers
batch 171 (v0.2.028) - the three missing samples for batches 167/168/169 written and passing (19 + 39 + 14 statements); CHR$() on a BYTE-typed argument no longer emits illegal IR (to_i32 had no IrType::I8 arm); HEADER GET ITEM / SET ITEM corrected to the documented one-based Index&
batch 166 (v0.2.023) - CONTROL ADD classname$ implemented and proven at runtime; CONTROL ADDSTRING removed (not an official statement); a 64-bit handle stored into a 4-byte LOCAL LONG fixed across nine DIALOG/CONTROL arms
batch 165 (v0.2.022) - DIALOG family: 23 DDT statements implemented, and two verb-only parser guards fixed (DIALOG SET TEXT / DIALOG SHOW MODAL) that had been silently killing whole statement families - including DIALOG SHOW STATE, which the table had listed as Implemented while the parser could never reach it; three non-official rows (DIALOG TRAXOMATIC, DIALOG XLAT, CONTROL TRAXOMATIC) removed and DIALOG CENTER reclassified as a fork extension
batch 164 (v0.2.021) - TOOLBAR + STATUSBAR: 9 DDT statements implemented (7 TOOLBAR + 2 STATUSBAR) plus the two CONTROL ADD forms; three real comctl32 defects fixed (TB_GETSTATE needs a command id, not an index; TB_ADDSTRINGA id; TB_BUTTONSTRUCTSIZE re-sent per insertion)
(2026-09-24: +2 official keyword(s) from batch 163 — DIALOG GET SIZE / DIALOG SET SIZE (Tier-3 DDT), both expressed in dialog units through the same GetDialogBaseUnits conversion DIALOG NEW already uses, so DIALOG NEW ... w,h followed by DIALOG GET SIZE round-trips exactly; two unreachable PROGRESSBAR / HEADER_CTRL runtime stubs were deleted in the same batch. 737 rows / 488 implemented / 148 established / 100 Tier-3 / 1 fork extension / 636 available.)
(2026-09-24: docs accuracy pass from batch 162 — corrected a stale summary line in statement-coverage.md that still claimed 2 unimplemented keywords (METRICS, UCODE$); both were implemented in batch 160. No keyword status changed: 738 rows / 487 implemented / 148 established / 102 Tier-3 / 1 fork extension / 635 available.)
(2026-09-23: +3 official keyword(s) from batch 160 — METRICS (GetSystemMetrics, all 20 official metric names), UCODE$ / ACODE$ (real UTF-16LE conversion via MultiByteToWideChar / WideCharToMultiByte).)
All 920 official keywords currently available for use (alphabetical):
Keyword
Keyword
Keyword
Keyword
Keyword
ABS
CULNG
GRAPHIC INPUT FLUSH
LTRIM$
TAB GET IMAGE
ACCEL ATTACH
CURDIR
GRAPHIC INSTAT
MACRO/END MACRO
TAB GET PAGE
ACODE
CURDIR$
GRAPHIC LINE
MAK
TAB GET SELECT
ACODE$
CURSORX
GRAPHIC LINE INPUT
MAT
TAB GET TEXT
AND
CURSORY
GRAPHIC PAINT
MAX
TAB INSERT PAGE
ANYCOM
CVBYT
GRAPHIC PIE
MCASE
TAB RESET
ARRAY ADD
CVCUR
GRAPHIC POLYGON
MCASE$
TAB SELECT
ARRAY ARRAYIX
CVCUX
GRAPHIC POLYLINE
ME
TAB SET IMAGE
ARRAY ASSIGN
CVD
GRAPHIC PRINT
MEMORY
TAB SET IMAGELIST
ARRAY COPY
CVDWD
GRAPHIC REDRAW
MEMORY FILL
TAB SET TEXT
ARRAY DELETE
CVE
GRAPHIC RENDER
MEMORY FILLS
TAB$
ARRAY INSERT
CVI
GRAPHIC SAVE
MENU ADD POPUP
TALLY
ARRAY REDIM DECR
CVL
GRAPHIC SCALE
MENU ADD STRING
TAN
ARRAY REDIM INCR
CVQ
GRAPHIC SCALE PIXELS
MENU ATTACH
TCP ACCEPT
ARRAY REVERSE
CVS
GRAPHIC SET AUTOSIZE
MENU CONTEXT
TCP CLOSE
ARRAY SCAN
CVW
GRAPHIC SET BITS
MENU DELETE
TCP LINE INPUT
ARRAY SHUFFLE
CVWRD
GRAPHIC SET CAPTION
MENU DRAW BAR
TCP NOTIFY
ARRAY SORT
CWORD
GRAPHIC SET CLIENT
MENU GET STATE
TCP OPEN
ARRAY SWAP
CWRD
GRAPHIC SET CLIP
MENU GET TEXT
TCP PRINT
ARRAY TAGARRAY
DATA
GRAPHIC SET FIXED
MENU NEW BAR
TCP RECV
ARRAY TAGARRAY ERASE
DATACOUNT
GRAPHIC SET FOCUS
MENU NEW POPUP
TCP SEND
ARRAY UNIQUE
DATE
GRAPHIC SET FONT
MENU SET STATE
THREAD CLOSE
ARRAYATTR
DAYNAME
GRAPHIC SET LOC
MENU SET TEXT
THREAD CREATE
ASC
DAYNAME$
GRAPHIC SET MIX
METHOD / END METHOD
THREAD GET PRIORITY
ASM
DEC
GRAPHIC SET OVERLAP
METRICS
THREAD RESUME
ASMDATA / END ASMDATA
DEC$
GRAPHIC SET PIXEL
MID
THREAD SET PRIORITY
ATN
DECLARE
GRAPHIC SET POS
MID$
THREAD STATUS
BEEP
DECR
GRAPHIC SET SCROLLTEXT
MIN
THREAD SUSPEND
BGR
DEF
GRAPHIC SET SIZE
MKBYT
THREADCOUNT
BIN
DEFBYT
GRAPHIC SET STRETCHMODE
MKBYT$
THREADED
BIN$
DEFCUR
GRAPHIC SET TEXTALIGN
MKCUR$
THREADID
BIT
DEFCUX
GRAPHIC SET VIEW
MKCUX
TIME
BIT CALC
DEFDBL
GRAPHIC SET VIRTUAL
MKCUX$
TIMER
BITS
DEFDWD
GRAPHIC SET WORDWRAP
MKD$
TIX
BITS$
DEFEXT
GRAPHIC SET WRAP
MKDIR
TOOLBAR ADD BUTTON
BITSE
DEFINT
GRAPHIC SPLIT
MKDWD
TOOLBAR ADD SEPARATOR
BUILD
DEFLNG
GRAPHIC STRETCH
MKDWD$
TOOLBAR DELETE BUTTON
BUILD$
DEFQUD
GRAPHIC STYLE
MKE
TOOLBAR GET COUNT
BYTE
DEFSNG
GRAPHIC TEXT SIZE
MKE$
TOOLBAR GET STATE
CALL
DEFSTR
GRAPHIC WAITKEY$
MKI$
TOOLBAR SET IMAGELIST
CALL DWORD
DEFWRD
GRAPHIC WIDTH
MKL$
TOOLBAR SET STATE
CALLSTK
DESKTOP GET CLIENT
GRAPHIC WINDOW
MKQ$
TRACE
CALLSTK$
DESKTOP GET LOC
GRAPHIC WINDOW CLICK
MKS
TREEVIEW DELETE
CALLSTKCOUNT
DESKTOP GET PPI
GRAPHIC WINDOW END
MKS$
TREEVIEW GET BOLD
CB.CTL
DESKTOP GET SIZE
GRAPHIC WINDOW HIDE
MKWRD
TREEVIEW GET CHECK
CB.CTLMSG
DIALOG DEFAULT FONT
GRAPHIC WINDOW MINIMIZE
MKWRD$
TREEVIEW GET CHILD
CB.HNDL
DIALOG DISABLE
GRAPHIC WINDOW NONSTABLE
MOD
TREEVIEW GET COUNT
CB.LPARAM
DIALOG DOEVENTS
GRAPHIC WINDOW NORMALIZE
MONTHNAME
TREEVIEW GET EXPANDED
CB.MSG
DIALOG ENABLE
GRAPHIC WINDOW STABILIZE
MONTHNAME$
TREEVIEW GET NEXT
CB.NMCODE
DIALOG END
GUID
MOUSEPTR
TREEVIEW GET PARENT
CB.NMHDR
DIALOG GET CLIENT
GUIDTXT
MSGBOX
TREEVIEW GET PREVIOUS
CB.NMHDR$
DIALOG GET LOC
HEADER GET COUNT
MYBASE
TREEVIEW GET ROOT
CB.NMHWND
DIALOG GET SIZE
HEADER GET ITEM
NAME
TREEVIEW GET SELECT
CB.NMID
DIALOG GET TEXT
HEADER SEND
NEWCOM
TREEVIEW GET TEXT
CB.WPARAM
DIALOG GET USER
HEADER SET ITEM
NOT
TREEVIEW GET USER
CBOOL
DIALOG HIDE
HEX
NUL$
TREEVIEW INSERT ITEM
CBYT
DIALOG MAXIMIZE
HEX$
OBJACTIVE
TREEVIEW RESET
CBYTE
DIALOG MINIMIZE
HI
OBJECT
TREEVIEW SELECT
CCUR
DIALOG NEW
HIWRD
OBJEQUAL
TREEVIEW SET BOLD
CCUX
DIALOG NONSTABLE
HOST ADDR
OBJPTR
TREEVIEW SET CHECK
CDBL
DIALOG NORMALIZE
HOST NAME
OBJRESULT
TREEVIEW SET EXPANDED
CDWD
DIALOG PIXELS
IF
OBJRESULT$
TREEVIEW SET IMAGELIST
CDWORD
DIALOG POST
IF/END IF
OCT
TREEVIEW SET TEXT
CEIL
DIALOG REDRAW
IIF
OCT$
TREEVIEW SET USER
CEXT
DIALOG SEND
IMAGELIST ADD BITMAP
OEMTOCHR
TREEVIEW UNSELECT
CFLT
DIALOG SET CLIENT
IMAGELIST ADD ICON
OEMTOCHR$
TRIM
CHDIR
DIALOG SET COLOR
IMAGELIST ADD MASKED
ON CALL
TRIM$
CHDRIVE
DIALOG SET ICON
IMAGELIST COUNT
ON ERROR
TRY/END TRY
CHOOSE
DIALOG SET LOC
IMAGELIST GET COUNT
ON GOSUB
TYPE SET
CHR
DIALOG SET SIZE
IMAGELIST KILL
ON GOTO
TYPE/END TYPE
CHR$
DIALOG SET TEXT
IMAGELIST NEW
OPEN
UBOUND
CHRBYTES
DIALOG SET USER
IMAGELIST NEW BITMAP
OPTION EXPLICIT
UCASE
CHRTOOEM
DIALOG SHOW MODAL
IMAGELIST NEW ICON
OR
UCASE$
CHRTOOEM$
DIALOG SHOW MODELESS
IMAGELIST SET OVERLAY
PARSE
UCODE$
CHRTOUTF8
DIALOG SHOW STATE
IMP
PARSE$
UCODEPAGE
CHRTOUTF8$
DIALOG STABILIZE
IMPORT
PARSECOUNT
UDP CLOSE
CINT
DIALOG UNITS
INCR
PATHNAME
UDP NOTIFY
CLASS/END CLASS
DIM
INPUT FLUSH
PATHNAME$
UDP OPEN
CLIP
DIR
INPUT#
PATHSCAN
UDP RECV
CLIP$
DIR CLOSE
INPUTBOX$
PATHSCAN$
UDP SEND
CLIPBOARD
DIR$
INSTANCE
PBLIBMAIN
UNION
CLNG
DISKFREE
INSTR
PBMAIN
UNLOCK
CLOSE
DISKSIZE
INT
PEEK
UNWRAP
CLS
DISPLAY BROWSE
INTEGER
PLAY
UNWRAP$
CLSID
DISPLAY COLOR
INTERFACE / END INTERFACE (DIRECT)
PLAY SOUND
USING
CODEPTR
DISPLAY FONT
INTERFACE/END INTERFACE (IDBIND)
PLAY WAVE
USING$
COLOR
DISPLAY OPENFILE
ISFALSE
POKE
UTF8TOCHR
COMBOBOX ADD
DISPLAY SAVEFILE
ISFILE
PREFIX
UTF8TOCHR$
COMBOBOX DELETE
DLLMAIN
ISFOLDER
PRINT#
VAL
COMBOBOX FIND
DO LOOP
ISINFINITE
PRINTER$
VARIANT#
COMBOBOX FIND EXACT
DOUBLE
ISINTERFACE
PRINTERCOUNT
VARIANT$
COMBOBOX GET COUNT
END
ISMISSING
PROCESS GET PRIORITY
VARIANT$$
COMBOBOX GET SELCOUNT
ENUM
ISNORMAL
PROCESS SET PRIORITY
VARIANTVT
COMBOBOX GET SELECT
ENVIRON
ISNOTHING
PROFILE
VARPTR
COMBOBOX GET STATE
ENVIRON$
ISNOTNULL
PROGID$
VERIFY
COMBOBOX GET TEXT
EOF
ISNULL
PROGRESSBAR GET POS
WAITKEY
COMBOBOX GET USER
EQV
ISOBJECT
PROGRESSBAR GET RANGE
WAITKEY$
COMBOBOX INSERT
ERASE
ISTRUE
PROGRESSBAR SET POS
WHILE WEND
COMBOBOX RESET
ERL
ISWIN
PROGRESSBAR SET RANGE
WINDOW GET
COMBOBOX SELECT
ERL$
ITERATE
PROGRESSBAR SET STEP
WINDOW SET
COMBOBOX SET TEXT
ERR
JOIN$
PROGRESSBAR STEP
WINMAIN
COMBOBOX SET USER
ERRCLEAR
KILL
PROPERTY GET / SET / END PROPERTY
WORD
COMBOBOX UNSELECT
ERROR
LBOUND
PUT
WRAP
COMM
ERROR$
LCASE
PUT STR
WRAP$
COMM CLOSE
EVENT SOURCE
LCASE$
PUT WSTR
WRITE
COMM LINE
EVENTS
LEFT
PUT$
WRITE#
COMM LINE INPUT
EXE
LEFT$
PUT$$
XOR
COMM OPEN
EXIST
LEN
QUAD
XPRINT ARC
COMM PRINT
EXIT
LET
RAISEEVENT
XPRINT ATTACH
COMM RECV
EXP
LET (WITH OBJECTS)
RANDOMIZE
XPRINT BOX
COMM RESET
EXP10
LET (WITH TYPES)
READ
XPRINT CANCEL
COMM SEND
EXP2
LET (WITH VARIANTS)
READ$
XPRINT CELL
COMM SET
EXPORT
LIBMAIN
REDIM
XPRINT CELL SIZE
COMM TIMEOUT
EXTRACT
LINE INPUT#
REGEXPR
XPRINT CHR SIZE
COMMAND
EXTRACT$
LISTBOX ADD
REGISTER
XPRINT CLOSE
COMMAND$
FASTPROC
LISTBOX DELETE
REGREPL
XPRINT COLOR
CONTROL ADD
FIELD
LISTBOX FIND
REM
XPRINT COPY
CONTROL ADD ANIMATE
FILEATTR
LISTBOX FIND EXACT
REMAIN
XPRINT ELLIPSE
CONTROL ADD BUTTON
FILECOPY
LISTBOX GET COUNT
REMAIN$
XPRINT FORMFEED
CONTROL ADD CHECK3STATE
FILENAME
LISTBOX GET SELCOUNT
REMOVE
XPRINT GET ATTACH
CONTROL ADD CHECKBOX
FILENAME$
LISTBOX GET SELECT
REMOVE$
XPRINT GET CANVAS
CONTROL ADD COMBOBOX
FILESCAN
LISTBOX GET STATE
REPEAT
XPRINT GET CLIENT
CONTROL ADD FRAME
FIX
LISTBOX GET TEXT
REPEAT$
XPRINT GET CLIP
CONTROL ADD GRAPHIC
FLUSH
LISTBOX GET USER
REPLACE
XPRINT GET COLLATE
CONTROL ADD HEADER
FONT END
LISTBOX INSERT
RESET
XPRINT GET COLOR
CONTROL ADD HOTKEY
FONT NEW
LISTBOX RESET
RESOURCE$
XPRINT GET COLORMODE
CONTROL ADD IMAGE
FOR / NEXT
LISTBOX SELECT
RESUME
XPRINT GET COPIES
CONTROL ADD IMAGEX
FOR EACH / NEXT
LISTBOX SET TEXT
RETAIN
XPRINT GET DC
CONTROL ADD IMGBUTTON
FORMAT
LISTBOX SET USER
RETAIN$
XPRINT GET DUPLEX
CONTROL ADD IMGBUTTONX
FORMAT$
LISTBOX UNSELECT
RETURN
XPRINT GET LINES
CONTROL ADD IPADDRESS
FRAC
LISTVIEW DELETE COLUMN
RGB
XPRINT GET MARGIN
CONTROL ADD LABEL
FRE
LISTVIEW DELETE ITEM
RIGHT
XPRINT GET MIX
CONTROL ADD LINE
FREEFILE
LISTVIEW FIND
RIGHT$
XPRINT GET ORIENTATION
CONTROL ADD LISTBOX
FUNCNAME
LISTVIEW FIND EXACT
RMDIR
XPRINT GET OVERLAP
CONTROL ADD LISTVIEW
FUNCNAME$
LISTVIEW FIT CONTENT
RND
XPRINT GET PAGES
CONTROL ADD MONTHCAL
FUNCTION / END FUNCTION
LISTVIEW FIT HEADER
ROTATE
XPRINT GET PAPER
CONTROL ADD OPTION
GET
LISTVIEW GET COLUMN
ROUND
XPRINT GET PAPERS
CONTROL ADD PROGRESSBAR
GET STR
LISTVIEW GET COUNT
RSET
XPRINT GET PIXEL
CONTROL ADD RICHEDIT
GET WSTR
LISTVIEW GET HEADER
RSET$
XPRINT GET POS
CONTROL ADD SCROLLBAR
GET$
LISTVIEW GET HEADERID
RTRIM
XPRINT GET PPI
CONTROL ADD STATUSBAR
GET$$
LISTVIEW GET MODE
RTRIM$
XPRINT GET QUALITY
CONTROL ADD TAB
GETATTR
LISTVIEW GET SELCOUNT
SCROLLBAR GET PAGESIZE
XPRINT GET SCALE
CONTROL ADD TEXTBOX
GETCOM
LISTVIEW GET SELECT
SCROLLBAR GET POS
XPRINT GET SELECTION
CONTROL ADD TOOLBAR
GLOBAL
LISTVIEW GET STATE
SCROLLBAR GET RANGE
XPRINT GET SIZE
CONTROL ADD TRACKBAR
GLOBALMEM
LISTVIEW GET STYLEXX
SCROLLBAR GET TRACKPOS
XPRINT GET STRETCHMODE
CONTROL ADD TREEVIEW
GRAPHIC ARC
LISTVIEW GET TEXT
SCROLLBAR SET PAGESIZE
XPRINT GET TEXTALIGN
CONTROL ADD UPDOWN
GRAPHIC ATTACH
LISTVIEW GET USER
SCROLLBAR SET POS
XPRINT GET TRAY
CONTROL DISABLE
GRAPHIC BITMAP END
LISTVIEW INSERT COLUMN
SCROLLBAR SET RANGE
XPRINT GET TRAYS
CONTROL ENABLE
GRAPHIC BITMAP LOAD
LISTVIEW INSERT ITEM
SEEK
XPRINT GET WORDWRAP
CONTROL GET CHECK
GRAPHIC BITMAP NEW
LISTVIEW RESET
SELECT CASE/END SELECT
XPRINT GET WRAP
CONTROL GET CLIENT
GRAPHIC BOX
LISTVIEW SELECT
SETATTR
XPRINT IMAGELIST
CONTROL GET LOC
GRAPHIC CELL
LISTVIEW SET COLUMN
SETEOF
XPRINT LINE
CONTROL GET SIZE
GRAPHIC CELL SIZE
LISTVIEW SET HEADER
SGN
XPRINT PIE
CONTROL GET TEXT
GRAPHIC CHR SIZE
LISTVIEW SET IMAGE
SHELL
XPRINT POLYGON
CONTROL GET USER
GRAPHIC CIRCLE
LISTVIEW SET IMAGE2
SHIFT
XPRINT POLYLINE
CONTROL HANDLE
GRAPHIC CLEAR
LISTVIEW SET IMAGELIST
SHRINK
XPRINT PREVIEW
CONTROL HIDE
GRAPHIC COLOR
LISTVIEW SET MODE
SHRINK$
XPRINT PRINT
CONTROL KILL
GRAPHIC COPY
LISTVIEW SET OVERLAY
SIN
XPRINT RENDER
CONTROL NORMALIZE
GRAPHIC DETACH
LISTVIEW SET STYLEXX
SINGLE
XPRINT SCALE
CONTROL POST
GRAPHIC ELLIPSE
LISTVIEW SET TEXT
SIZEOF
XPRINT SET CLIP
CONTROL REDRAW
GRAPHIC GET BITS
LISTVIEW SET USER
SLEEP
XPRINT SET COLLATE
CONTROL SEND
GRAPHIC GET CANVAS
LISTVIEW SORT
SPACE
XPRINT SET COLOR
CONTROL SET CHECK
GRAPHIC GET CAPTION
LISTVIEW UNSELECT
SPACE$
XPRINT SET COLORMODE
CONTROL SET CLIENT
GRAPHIC GET CLIENT
LISTVIEW VISIBLE
SPLIT
XPRINT SET COPIES
CONTROL SET COLOR
GRAPHIC GET CLIP
LO
SQR
XPRINT SET DUPLEX
CONTROL SET FOCUS
GRAPHIC GET DC
LOC
STATIC
XPRINT SET FONT
CONTROL SET FONT
GRAPHIC GET LINES
LOCAL
STATUSBAR SET PARTS
XPRINT SET MIX
CONTROL SET IMAGE
GRAPHIC GET LOC
LOCATE
STATUSBAR SET TEXT
XPRINT SET ORIENTATION
CONTROL SET IMAGEX
GRAPHIC GET MIX
LOCK
STR
XPRINT SET OVERLAP
CONTROL SET IMGBUTTON
GRAPHIC GET OVERLAP
LOF
STR$
XPRINT SET PAGES
CONTROL SET IMGBUTTONX
GRAPHIC GET PIXEL
LOG
STRDELETE
XPRINT SET PAPER
CONTROL SET LOC
GRAPHIC GET POS
LOG10
STRDELETE$
XPRINT SET PIXEL
CONTROL SET OPTION
GRAPHIC GET PPI
LOG2
STRING
XPRINT SET POS
CONTROL SET SIZE
GRAPHIC GET SCALE
LONG
STRINSERT
XPRINT SET QUALITY
CONTROL SET TEXT
GRAPHIC GET SCROLLTEXT
LOWRD
STRINSERT$
XPRINT SET STRETCHMODE
CONTROL SET USER
GRAPHIC GET SIZE
LPRINT
STRPTR
XPRINT SET TEXTALIGN
CONTROL SHOW STATE
GRAPHIC GET STRETCHMODE
LPRINT ATTACH
STRREVERSE
XPRINT SET TRAY
COS
GRAPHIC GET TEXTALIGN
LPRINT CLOSE
STRREVERSE$
XPRINT SET WORDWRAP
CQUAD
GRAPHIC GET VIEW
LPRINT FLUSH
SWAP
XPRINT SET WRAP
CQUD
GRAPHIC GET WORDWRAP
LPRINT FORMFEED
SWITCH
XPRINT SPLIT
CSET
GRAPHIC GET WRAP
LPRINT$
SWITCH$
XPRINT STRETCH
CSET$
GRAPHIC IMAGELIST
LSET
TAB DELETE
XPRINT STYLE
CSNG
GRAPHIC INKEY$
LSET$
TAB GET COUNT
XPRINT TEXT SIZE
CSTR
GRAPHIC INPUT
LTRIM
TAB GET DIALOG
XPRINT WIDTH
Newly implemented by this project
918 official keywords implemented by this project (every official keyword this project added or completed). Verified via live compilation and testing. Listed alphabetically below.
The keywords implemented by this project (alphabetical):
Keyword
Keyword
Keyword
Keyword
ABS
DIALOG DISABLE
ISNOTNULL
RTRIM$
ACCEL ATTACH
DIALOG DOEVENTS
ISNULL
SCROLLBAR GET PAGESIZE
ACODE
DIALOG ENABLE
ISOBJECT
SCROLLBAR GET POS
ACODE$
DIALOG END
ISTRUE
SCROLLBAR GET RANGE
AND
DIALOG GET CLIENT
ISWIN
SCROLLBAR GET TRACKPOS
ANYCOM
DIALOG GET LOC
ITERATE
SCROLLBAR SET PAGESIZE
ARRAY ADD
DIALOG GET SIZE
JOIN$
SCROLLBAR SET POS
ARRAY ARRAYIX
DIALOG GET TEXT
KILL
SCROLLBAR SET RANGE
ARRAY ASSIGN
DIALOG GET USER
LBOUND
SEEK
ARRAY COPY
DIALOG HIDE
LCASE
SELECT CASE/END SELECT
ARRAY DELETE
DIALOG MAXIMIZE
LCASE$
SETATTR
ARRAY INSERT
DIALOG MINIMIZE
LEFT
SETEOF
ARRAY REDIM DECR
DIALOG NEW
LEFT$
SGN
ARRAY REDIM INCR
DIALOG NONSTABLE
LEN
SHELL
ARRAY REVERSE
DIALOG NORMALIZE
LET
SHIFT
ARRAY SCAN
DIALOG PIXELS
LET (WITH OBJECTS)
SHRINK
ARRAY SHUFFLE
DIALOG POST
LET (WITH TYPES)
SHRINK$
ARRAY SORT
DIALOG REDRAW
LET (WITH VARIANTS)
SIN
ARRAY SWAP
DIALOG SEND
LIBMAIN
SINGLE
ARRAY TAGARRAY
DIALOG SET CLIENT
LINE INPUT#
SIZEOF
ARRAY TAGARRAY ERASE
DIALOG SET COLOR
LISTBOX ADD
SLEEP
ARRAY UNIQUE
DIALOG SET ICON
LISTBOX DELETE
SPACE
ARRAYATTR
DIALOG SET LOC
LISTBOX FIND
SPACE$
ASC
DIALOG SET SIZE
LISTBOX FIND EXACT
SPLIT
ASM
DIALOG SET TEXT
LISTBOX GET COUNT
SQR
ASMDATA / END ASMDATA
DIALOG SET USER
LISTBOX GET SELCOUNT
STATIC
ATN
DIALOG SHOW MODAL
LISTBOX GET SELECT
STATUSBAR SET PARTS
BEEP
DIALOG SHOW MODELESS
LISTBOX GET STATE
STATUSBAR SET TEXT
BGR
DIALOG SHOW STATE
LISTBOX GET TEXT
STR
BIN
DIALOG STABILIZE
LISTBOX GET USER
STR$
BIN$
DIALOG UNITS
LISTBOX INSERT
STRDELETE
BIT
DIM
LISTBOX RESET
STRDELETE$
BIT CALC
DIR
LISTBOX SELECT
STRING
BITS
DIR CLOSE
LISTBOX SET TEXT
STRINSERT
BITS$
DIR$
LISTBOX SET USER
STRINSERT$
BITSE
DISKFREE
LISTBOX UNSELECT
STRPTR
BUILD
DISKSIZE
LISTVIEW DELETE COLUMN
STRREVERSE
BUILD$
DISPLAY BROWSE
LISTVIEW DELETE ITEM
STRREVERSE$
BYTE
DISPLAY COLOR
LISTVIEW FIND
SWAP
CALL
DISPLAY FONT
LISTVIEW FIND EXACT
SWITCH
CALL DWORD
DISPLAY OPENFILE
LISTVIEW FIT CONTENT
SWITCH$
CALLSTK
DISPLAY SAVEFILE
LISTVIEW FIT HEADER
TAB DELETE
CALLSTK$
DLLMAIN
LISTVIEW GET COLUMN
TAB GET COUNT
CALLSTKCOUNT
DO LOOP
LISTVIEW GET COUNT
TAB GET DIALOG
CB.CTL
DOUBLE
LISTVIEW GET HEADER
TAB GET IMAGE
CB.CTLMSG
END
LISTVIEW GET HEADERID
TAB GET PAGE
CB.HNDL
ENUM
LISTVIEW GET MODE
TAB GET SELECT
CB.LPARAM
ENVIRON
LISTVIEW GET SELCOUNT
TAB GET TEXT
CB.MSG
ENVIRON$
LISTVIEW GET SELECT
TAB INSERT PAGE
CB.NMCODE
EOF
LISTVIEW GET STATE
TAB RESET
CB.NMHDR
EQV
LISTVIEW GET STYLEXX
TAB SELECT
CB.NMHDR$
ERASE
LISTVIEW GET TEXT
TAB SET IMAGE
CB.NMHWND
ERL
LISTVIEW GET USER
TAB SET IMAGELIST
CB.NMID
ERL$
LISTVIEW INSERT COLUMN
TAB SET TEXT
CB.WPARAM
ERR
LISTVIEW INSERT ITEM
TAB$
CBOOL
ERRCLEAR
LISTVIEW RESET
TALLY
CBYT
ERROR
LISTVIEW SELECT
TAN
CBYTE
ERROR$
LISTVIEW SET COLUMN
TCP ACCEPT
CCUR
EVENT SOURCE
LISTVIEW SET HEADER
TCP CLOSE
CCUX
EVENTS
LISTVIEW SET IMAGE
TCP LINE INPUT
CDBL
EXE
LISTVIEW SET IMAGE2
TCP NOTIFY
CDWD
EXIST
LISTVIEW SET IMAGELIST
TCP OPEN
CDWORD
EXIT
LISTVIEW SET MODE
TCP PRINT
CEIL
EXP
LISTVIEW SET OVERLAY
TCP RECV
CEXT
EXP10
LISTVIEW SET STYLEXX
TCP SEND
CFLT
EXP2
LISTVIEW SET TEXT
THREAD CLOSE
CHDIR
EXPORT
LISTVIEW SET USER
THREAD CREATE
CHDRIVE
EXTRACT
LISTVIEW SORT
THREAD GET PRIORITY
CHOOSE
EXTRACT$
LISTVIEW UNSELECT
THREAD RESUME
CHR
FASTPROC
LISTVIEW VISIBLE
THREAD SET PRIORITY
CHR$
FIELD
LO
THREAD STATUS
CHRBYTES
FILEATTR
LOC
THREAD SUSPEND
CHRTOOEM
FILECOPY
LOCAL
THREADCOUNT
CHRTOOEM$
FILENAME
LOCATE
THREADED
CHRTOUTF8
FILENAME$
LOCK
THREADID
CHRTOUTF8$
FILESCAN
LOF
TIME
CINT
FIX
LOG
TIMER
CLASS/END CLASS
FLUSH
LOG10
TIX
CLIP
FONT END
LOG2
TOOLBAR ADD BUTTON
CLIP$
FONT NEW
LONG
TOOLBAR ADD SEPARATOR
CLIPBOARD
FOR / NEXT
LOWRD
TOOLBAR DELETE BUTTON
CLNG
FOR EACH / NEXT
LPRINT
TOOLBAR GET COUNT
CLOSE
FORMAT
LPRINT ATTACH
TOOLBAR GET STATE
CLS
FORMAT$
LPRINT CLOSE
TOOLBAR SET IMAGELIST
CLSID
FRAC
LPRINT FLUSH
TOOLBAR SET STATE
CODEPTR
FRE
LPRINT FORMFEED
TRACE
COLOR
FREEFILE
LPRINT$
TREEVIEW DELETE
COMBOBOX ADD
FUNCNAME
LSET
TREEVIEW GET BOLD
COMBOBOX DELETE
FUNCNAME$
LSET$
TREEVIEW GET CHECK
COMBOBOX FIND
FUNCTION / END FUNCTION
LTRIM
TREEVIEW GET CHILD
COMBOBOX FIND EXACT
GET
LTRIM$
TREEVIEW GET COUNT
COMBOBOX GET COUNT
GET STR
MACRO/END MACRO
TREEVIEW GET EXPANDED
COMBOBOX GET SELCOUNT
GET WSTR
MAK
TREEVIEW GET NEXT
COMBOBOX GET SELECT
GET$
MAT
TREEVIEW GET PARENT
COMBOBOX GET STATE
GET$$
MAX
TREEVIEW GET PREVIOUS
COMBOBOX GET TEXT
GETATTR
MCASE
TREEVIEW GET ROOT
COMBOBOX GET USER
GETCOM
MCASE$
TREEVIEW GET SELECT
COMBOBOX INSERT
GLOBAL
ME
TREEVIEW GET TEXT
COMBOBOX RESET
GLOBALMEM
MEMORY
TREEVIEW GET USER
COMBOBOX SELECT
GRAPHIC ARC
MEMORY FILL
TREEVIEW INSERT ITEM
COMBOBOX SET TEXT
GRAPHIC ATTACH
MEMORY FILLS
TREEVIEW RESET
COMBOBOX SET USER
GRAPHIC BITMAP END
MENU ADD POPUP
TREEVIEW SELECT
COMBOBOX UNSELECT
GRAPHIC BITMAP LOAD
MENU ADD STRING
TREEVIEW SET BOLD
COMM
GRAPHIC BITMAP NEW
MENU ATTACH
TREEVIEW SET CHECK
COMM CLOSE
GRAPHIC BOX
MENU CONTEXT
TREEVIEW SET EXPANDED
COMM LINE
GRAPHIC CELL
MENU DELETE
TREEVIEW SET IMAGELIST
COMM LINE INPUT
GRAPHIC CELL SIZE
MENU DRAW BAR
TREEVIEW SET TEXT
COMM OPEN
GRAPHIC CHR SIZE
MENU GET STATE
TREEVIEW SET USER
COMM PRINT
GRAPHIC CIRCLE
MENU GET TEXT
TREEVIEW UNSELECT
COMM RECV
GRAPHIC CLEAR
MENU NEW BAR
TRIM
COMM RESET
GRAPHIC COLOR
MENU NEW POPUP
TRIM$
COMM SEND
GRAPHIC COPY
MENU SET STATE
TRY/END TRY
COMM SET
GRAPHIC DETACH
MENU SET TEXT
TYPE SET
COMM TIMEOUT
GRAPHIC ELLIPSE
METHOD / END METHOD
TYPE/END TYPE
COMMAND
GRAPHIC GET BITS
METRICS
UBOUND
COMMAND$
GRAPHIC GET CANVAS
MID
UCASE
CONTROL ADD
GRAPHIC GET CAPTION
MID$
UCASE$
CONTROL ADD ANIMATE
GRAPHIC GET CLIENT
MIN
UCODE$
CONTROL ADD BUTTON
GRAPHIC GET CLIP
MKBYT
UCODEPAGE
CONTROL ADD CHECK3STATE
GRAPHIC GET DC
MKBYT$
UDP CLOSE
CONTROL ADD CHECKBOX
GRAPHIC GET LINES
MKCUR$
UDP NOTIFY
CONTROL ADD COMBOBOX
GRAPHIC GET LOC
MKCUX
UDP OPEN
CONTROL ADD FRAME
GRAPHIC GET MIX
MKCUX$
UDP RECV
CONTROL ADD GRAPHIC
GRAPHIC GET OVERLAP
MKD$
UDP SEND
CONTROL ADD HEADER
GRAPHIC GET PIXEL
MKDIR
UNION
CONTROL ADD HOTKEY
GRAPHIC GET POS
MKDWD
UNLOCK
CONTROL ADD IMAGE
GRAPHIC GET PPI
MKDWD$
UNWRAP
CONTROL ADD IMAGEX
GRAPHIC GET SCALE
MKE
UNWRAP$
CONTROL ADD IMGBUTTON
GRAPHIC GET SCROLLTEXT
MKE$
USING
CONTROL ADD IMGBUTTONX
GRAPHIC GET SIZE
MKI$
USING$
CONTROL ADD IPADDRESS
GRAPHIC GET STRETCHMODE
MKL$
UTF8TOCHR
CONTROL ADD LABEL
GRAPHIC GET TEXTALIGN
MKQ$
UTF8TOCHR$
CONTROL ADD LINE
GRAPHIC GET VIEW
MKS
VAL
CONTROL ADD LISTBOX
GRAPHIC GET WORDWRAP
MKS$
VARIANT#
CONTROL ADD LISTVIEW
GRAPHIC GET WRAP
MKWRD
VARIANT$
CONTROL ADD MONTHCAL
GRAPHIC IMAGELIST
MKWRD$
VARIANT$$
CONTROL ADD OPTION
GRAPHIC INKEY$
MOD
VARIANTVT
CONTROL ADD PROGRESSBAR
GRAPHIC INPUT
MONTHNAME
VARPTR
CONTROL ADD RICHEDIT
GRAPHIC INPUT FLUSH
MONTHNAME$
VERIFY
CONTROL ADD SCROLLBAR
GRAPHIC INSTAT
MOUSEPTR
WAITKEY
CONTROL ADD STATUSBAR
GRAPHIC LINE
MSGBOX
WAITKEY$
CONTROL ADD TAB
GRAPHIC LINE INPUT
MYBASE
WHILE WEND
CONTROL ADD TEXTBOX
GRAPHIC PAINT
NAME
WINDOW GET
CONTROL ADD TOOLBAR
GRAPHIC PIE
NEWCOM
WINDOW SET
CONTROL ADD TRACKBAR
GRAPHIC POLYGON
NOT
WINMAIN
CONTROL ADD TREEVIEW
GRAPHIC POLYLINE
NUL$
WORD
CONTROL ADD UPDOWN
GRAPHIC PRINT
OBJACTIVE
WRAP
CONTROL DISABLE
GRAPHIC REDRAW
OBJECT
WRAP$
CONTROL ENABLE
GRAPHIC RENDER
OBJEQUAL
WRITE
CONTROL GET CHECK
GRAPHIC SAVE
OBJPTR
WRITE#
CONTROL GET CLIENT
GRAPHIC SCALE
OBJRESULT
XOR
CONTROL GET LOC
GRAPHIC SCALE PIXELS
OBJRESULT$
XPRINT ARC
CONTROL GET SIZE
GRAPHIC SET AUTOSIZE
OCT
XPRINT ATTACH
CONTROL GET TEXT
GRAPHIC SET BITS
OCT$
XPRINT BOX
CONTROL GET USER
GRAPHIC SET CAPTION
OEMTOCHR
XPRINT CANCEL
CONTROL HANDLE
GRAPHIC SET CLIENT
OEMTOCHR$
XPRINT CELL
CONTROL HIDE
GRAPHIC SET CLIP
ON CALL
XPRINT CELL SIZE
CONTROL KILL
GRAPHIC SET FIXED
ON ERROR
XPRINT CHR SIZE
CONTROL NORMALIZE
GRAPHIC SET FOCUS
ON GOSUB
XPRINT CLOSE
CONTROL POST
GRAPHIC SET FONT
ON GOTO
XPRINT COLOR
CONTROL REDRAW
GRAPHIC SET LOC
OPEN
XPRINT COPY
CONTROL SEND
GRAPHIC SET MIX
OPTION EXPLICIT
XPRINT ELLIPSE
CONTROL SET CHECK
GRAPHIC SET OVERLAP
OR
XPRINT FORMFEED
CONTROL SET CLIENT
GRAPHIC SET PIXEL
PARSE
XPRINT GET ATTACH
CONTROL SET COLOR
GRAPHIC SET POS
PARSE$
XPRINT GET CANVAS
CONTROL SET FOCUS
GRAPHIC SET SCROLLTEXT
PARSECOUNT
XPRINT GET CLIENT
CONTROL SET FONT
GRAPHIC SET SIZE
PATHNAME
XPRINT GET CLIP
CONTROL SET IMAGE
GRAPHIC SET STRETCHMODE
PATHNAME$
XPRINT GET COLLATE
CONTROL SET IMAGEX
GRAPHIC SET TEXTALIGN
PATHSCAN
XPRINT GET COLOR
CONTROL SET IMGBUTTON
GRAPHIC SET VIEW
PATHSCAN$
XPRINT GET COLORMODE
CONTROL SET IMGBUTTONX
GRAPHIC SET VIRTUAL
PBLIBMAIN
XPRINT GET COPIES
CONTROL SET LOC
GRAPHIC SET WORDWRAP
PBMAIN
XPRINT GET DC
CONTROL SET OPTION
GRAPHIC SET WRAP
PEEK
XPRINT GET DUPLEX
CONTROL SET SIZE
GRAPHIC SPLIT
PLAY
XPRINT GET LINES
CONTROL SET TEXT
GRAPHIC STRETCH
PLAY SOUND
XPRINT GET MARGIN
CONTROL SET USER
GRAPHIC STYLE
PLAY WAVE
XPRINT GET MIX
CONTROL SHOW STATE
GRAPHIC TEXT SIZE
POKE
XPRINT GET ORIENTATION
COS
GRAPHIC WAITKEY$
PREFIX
XPRINT GET OVERLAP
CQUAD
GRAPHIC WIDTH
PRINT#
XPRINT GET PAGES
CQUD
GRAPHIC WINDOW
PRINTER$
XPRINT GET PAPER
CSET
GRAPHIC WINDOW CLICK
PRINTERCOUNT
XPRINT GET PAPERS
CSET$
GRAPHIC WINDOW END
PROCESS GET PRIORITY
XPRINT GET PIXEL
CSNG
GRAPHIC WINDOW HIDE
PROCESS SET PRIORITY
XPRINT GET POS
CSTR
GRAPHIC WINDOW MINIMIZE
PROFILE
XPRINT GET PPI
CULNG
GRAPHIC WINDOW NONSTABLE
PROGID$
XPRINT GET QUALITY
CURDIR
GRAPHIC WINDOW NORMALIZE
PROGRESSBAR GET POS
XPRINT GET SCALE
CURDIR$
GRAPHIC WINDOW STABILIZE
PROGRESSBAR GET RANGE
XPRINT GET SELECTION
CURSORX
GUID
PROGRESSBAR SET POS
XPRINT GET SIZE
CURSORY
GUIDTXT
PROGRESSBAR SET RANGE
XPRINT GET STRETCHMODE
CVBYT
HEADER GET COUNT
PROGRESSBAR SET STEP
XPRINT GET TEXTALIGN
CVCUR
HEADER GET ITEM
PROGRESSBAR STEP
XPRINT GET TRAY
CVCUX
HEADER SEND
PROPERTY GET / SET / END PROPERTY
XPRINT GET TRAYS
CVD
HEADER SET ITEM
PUT
XPRINT GET WORDWRAP
CVDWD
HEX
PUT STR
XPRINT GET WRAP
CVE
HEX$
PUT WSTR
XPRINT IMAGELIST
CVI
HI
PUT$
XPRINT LINE
CVL
HIWRD
PUT$$
XPRINT PIE
CVQ
HOST ADDR
QUAD
XPRINT POLYGON
CVS
HOST NAME
RAISEEVENT
XPRINT POLYLINE
CVW
IF
RANDOMIZE
XPRINT PREVIEW
CVWRD
IF/END IF
READ
XPRINT PRINT
CWORD
IIF
READ$
XPRINT RENDER
CWRD
IMAGELIST ADD BITMAP
REDIM
XPRINT SCALE
DATA
IMAGELIST ADD ICON
REGEXPR
XPRINT SET CLIP
DATACOUNT
IMAGELIST ADD MASKED
REGISTER
XPRINT SET COLLATE
DATE
IMAGELIST COUNT
REGREPL
XPRINT SET COLOR
DAYNAME
IMAGELIST GET COUNT
REM
XPRINT SET COLORMODE
DAYNAME$
IMAGELIST KILL
REMAIN
XPRINT SET COPIES
DEC
IMAGELIST NEW
REMAIN$
XPRINT SET DUPLEX
DEC$
IMAGELIST NEW BITMAP
REMOVE
XPRINT SET FONT
DECLARE
IMAGELIST NEW ICON
REMOVE$
XPRINT SET MIX
DECR
IMAGELIST SET OVERLAY
REPEAT
XPRINT SET ORIENTATION
DEF
IMP
REPEAT$
XPRINT SET OVERLAP
DEFBYT
IMPORT
REPLACE
XPRINT SET PAGES
DEFCUR
INCR
RESET
XPRINT SET PAPER
DEFCUX
INPUT FLUSH
RESOURCE$
XPRINT SET PIXEL
DEFDBL
INPUT#
RESUME
XPRINT SET POS
DEFDWD
INPUTBOX$
RETAIN
XPRINT SET QUALITY
DEFEXT
INSTANCE
RETAIN$
XPRINT SET STRETCHMODE
DEFINT
INSTR
RETURN
XPRINT SET TEXTALIGN
DEFLNG
INT
RGB
XPRINT SET TRAY
DEFQUD
INTEGER
RIGHT
XPRINT SET WORDWRAP
DEFSNG
ISFALSE
RIGHT$
XPRINT SET WRAP
DEFSTR
ISFILE
RMDIR
XPRINT SPLIT
DEFWRD
ISFOLDER
RND
XPRINT STRETCH
DESKTOP GET CLIENT
ISINFINITE
ROTATE
XPRINT STYLE
DESKTOP GET LOC
ISINTERFACE
ROUND
XPRINT TEXT SIZE
DESKTOP GET PPI
ISMISSING
RSET
XPRINT WIDTH
DESKTOP GET SIZE
ISNORMAL
RSET$
DIALOG DEFAULT FONT
ISNOTHING
RTRIM
Established keywords (mature in the official PB docs)
These are the 148 keywords the coverage CSV labels Established — mature in the official PB documentation. That label is not a claim that upstream benstopics/powerbasilisk implemented them, and this project does not publish a count of upstream's own keyword set. The next section lists the 8 keywords whose implementation this project completed or corrected.
Keyword
Keyword
Keyword
Keyword
Keyword
INTERFACE / END INTERFACE (DIRECT)
INTERFACE/END INTERFACE (IDBIND)
Upstream keywords improved by this project (8)
These 8 keywords came from upstream, but this project fixed or completed their implementation to match real PowerBASIC behavior. They are counted in the upstream table above; the fix itself is this project's contribution.
Keyword
What this project improved
CINT / CLNG
Banker's rounding (ties-to-even) via llvm.nearbyint.f64, matching PB semantics; fixed l5 test expectation.
CVD / CVS
Read bytes as binary doubles/singles instead of VAL() text semantics (was wrong for packed strings).
LEN
Honor the 4-byte BSTR length prefix so binary strings (e.g. MKD$) report correct byte length.
OPEN
OPEN FOR BINARY no longer truncates an existing file (open r+b first, fall back to w+b).
INPUT#
Strip CSV double-quotes per PB semantics when reading files written by WRITE#.
CHR$
Multi-argument form CHR$(a,b,c) concatenates one byte per argument (CHR$(13,10)=CR+LF).
RND
Bare form RND (no parentheses) works like RND(); seeded random double in [0,1).
PRINT
Console output flushed immediately after each line (visible under redirection / on abort).
Known Limitations and Platform Boundaries
The statement catalogue in docs/statement-coverage.csv is the current source of
truth: 952 rows. Of the 920 official PB/Win keywords, 918 are Implemented
and 2 are Established (documented PB behaviour that has no separate runtime
path); the remaining 32 rows are fork extensions. No official PB/Win statement
or function-class keyword listed in that catalogue is still deferred, and no row
is Not implemented. In particular, ON ERROR GOTO, the DDT GUI
family (DIALOG/CONTROL/MENU/TOOLBAR/STATUSBAR/COMBOBOX/LISTBOX/
TREEVIEW/LISTVIEW/XPRINT), LBOUND/UBOUND, FRAC, NUL$, TAB$,
COMMAND$, ENVIRON$, THREADID, MCASE$, FORMAT$, USING$, CALLSTK$,
FUNCNAME$, INPUTBOX$, GUID$/GUIDTXT$, CLSID$/PROGID$, ARRAYATTR,
ENUM, UNION, FASTPROC, PROPERTY, FOR EACH, and the OBJ* family are
implemented and covered by examples or batch probes.
Remaining boundaries are platform / environment constraints, not missing
statements:
Android ARM64 execution: both arm64-v8a and x86_64 APKs are built and
statically verified, but this machine has only an x86_64 Android 15 emulator.
ARM64 APKs have not been run on a real ARM64 device or image. Android also
has no GUI/COM/GDI/menu/printer/serial implementation, no 32-bit
(armeabi-v7a/x86) runtime baseline, and TCP NOTIFY has no window message
pump on Android.
PB/CC differential testing: the 381-row PB/CC subset is 379 Implemented +
2 Established, and the Windows console matrix passes on both x64 and i686.
No PB/CC compiler is installed on this machine, so PB/CC results are validated
against the CHW documentation and this project's own console regression,
not by a live PB/CC side-by-side run.
GUI pixel comparison: the 98-sample PBWin10 dual-compile matrix is used for
visual regression. Remaining differences are limited to DWM/theme rendering
(title bars, button theming, edit-control borders); statement-level behaviour,
layout, graphics, and menu structure are compared separately. Pixel identity
is not claimed for OS-themed non-client areas.
Runtime string ownership: dynamic-string assignment follows PB pointer
semantics. Rewrite helpers that assign a fresh BSTR (GET$/GET$$,
LSET/RSET, CSET, and the other dynamic-assignment paths) intentionally
do not free a previous destination that may point at a codegen string
constant or a malloc-backed buffer. Pathological loops that repeatedly
overwrite the same destination can therefore retain memory. This is a
deliberate safety trade-off (freeing a constant or foreign allocation would
corrupt the heap); it is not a data-corruption path.
Debug APKs: the Android demo suite is debug-signed for local testing.
Distribution requires a release keystore.
This enhanced branch is maintained by Hanlo, with AI assistance from
Doubao. The enhancements are additive and do not remove any upstream
copyright notice.
Licensed under the Apache License 2.0. See the LICENSE file (from
upstream) for the full license text.
Disclaimer
This is a community enhancement of an open-source project. PowerBASIC is a
trademark of its respective owner; this project is not affiliated with or
endorsed by the PowerBASIC company.
Changelog
v0.2.224 (2026-12-06)
batch 443 close-out (v0.2.224) - the three batch-10 near pairs are now identical; no sample was replaced. 0867: PB/Win 10 clears the low 4 style bits of a BUTTON carrying WS_BORDER, turning 0x50800001 into 0x50800000; PB64Basic now performs the same normalisation. 1108: PB/Win 10 loads the 100x100 COWGIRL bitmap natively and resizes it through a 16bpp 565 DIB with BLACKONWHITE; PB64Basic now uses that same path, and the harness captures both sides at timer tick 30. 1221: the raw 34-pixel difference was a DWM-corner capture artefact; both windows are now positioned and activated, animation is phase-aligned by starting both and taking 60 frame pairs, and the OS notification rectangle plus the DWM corner are masked on both sides. 0670: the Scintilla caret is hidden with SCI_SETCARETSTYLE(2); WM_KILLFOCUS had produced a false blank identical.
Full batch-10 rerun: 50/50 compiled by both compilers, 47/50 windows launched, 41 identical / 0 near / 6 diff / 3 run_skipped. The 6 known differences remain: 1012 62.957%, 1104 20.533%, 0435 4.608%, 0668 1.128%, 1215 5.590%, 1238 66.786%. 1221 is identical only under the stated phase and notification/DWM-mask capture; the raw sequential capture still differs (6.617%), and the report records that boundary. The 3 skips are 1128 Set Wallpaper, 0889 Wipe Drive and 1171 Write Directly to Desktop (safety). No replacement sample was used to obtain these results. Self-check: examples/batch443_test.bas (COLOR assignment, QUAD size, fails=0).
Release assets: the x64 zip plus pb64basic-vs-pbwin10-batch10.mp4 (61.0 s, 1920x1080, 915 frames, H.264). The video shows 0867, 1108, 1221, 1051, 0566, 0386 and the remaining 1104 difference, with the 1128 safety skip stated explicitly.
The current release is listed here. The complete history (315 releases) is in CHANGELOG.md.
About
Open-source PowerBASIC to LLVM compiler for native x64/x86 Windows, written in Rust with no external crates. Existing PowerBASIC source compiles unchanged. 920 official keywords: 918 implemented, 0 documented gaps. Prebuilt binaries, JK-IDE integration, Android target.