Skip to content

Releases

FBCS v1.0.1

Choose a tag to compare

@ntnglz ntnglz released this 12 Nov 18:39

Corrections to the ECMA-116 claims. The interpreter is unchanged: FullBASIC v4 1.0.

The eight ECMA-116 claims that reported a "known deviation" were wrong. Every example concerned is accepted in the form the standard intends:

  • Examples that are bodies of statements. NUMERIC*5.2 A, B, ... (15.1.3) is the numeric-type of a DECLARE statement. WINDOW ..., VIEWPORT ..., CLIP ..., LINE STYLE ... and TEXT COLOR ... (13.1.3, 13.2.3) are set-objects of a SET statement.
  • Transcription losses. READ X, , Z (10.1.3) is READ X, Y, Z. In RECSIZE RS$ NUMCHARS (11.1.3), NUMCHARS is the numeric variable of RECSIZE.
  • Fixed-point sizes on parameters and functions (15.2.3). They are accepted when the program-unit specifies ARITHMETIC FIXED, as 15.2.2 requires. The old tests did not specify it.
  • SET #N and MAT REWRITE. SET #N with a channel expression works. MAT REWRITE of several arrays works when each array has its own template-element (ECMA-0249).

Changes to the suite:

  • The claims are rewritten.
  • ECMA-0071 and ECMA-0102 to ECMA-0104 now test the full forms.
  • ECMA-0072 uses SET #N.
  • ECMA-0249 is new.

Results: 2085 pass, 0 fail, 0 unsupported. The only remaining difference from ECMA-116 is its erratum in 11.3.2 (claim A-ECMA-errata-01).

FBCS v1.0

Choose a tag to compare

@ntnglz ntnglz released this 12 Nov 18:26

First public release of FBCS, the Full BASIC Conformance Suite: an interpreter-independent suite for ANSI X3.113-1987 Full BASIC (FIPS PUB 68-2) and ECMA-116, in the style of the NBS Minimal BASIC test programs.

What is included

  • 2084 test programs under programs/, with their oracles (.OUT, .IN, .DRAW).
  • The claims they decide, in claims/, and the agreed readings of the standard, in interpretations.yaml.
  • The tools, in plain Python 3 with no packages to install: run_suite.py runs the programs against any interpreter, check_claims.py checks that claims, programs and results agree, and gen_compliance.py writes the conformance documents.
  • The results of FullBASIC v4 1.0: 2084 pass, 0 fail, 0 unsupported. They yield 1270 ANSI claims (COMPLIANCE_ANSI.md) and 787 ECMA-116 claims (COMPLIANCE_ECMA.md).

Scope of the FullBASIC v4 results

  • Claimed: the Core, Enhanced Files, Graphics and Fixed Decimal modules of ANSI X3.113-1987, and ECMA-116 BASIC-2 with the Graphics module.
  • Not claimed: section 14 (Real Time) and section 16 (Editing).

Running it against your interpreter

See README.md. A command line that runs a program is enough. Reporting errors and graphic primitives is needed only for the optional test types.

Released under the MIT License.