Friday, July 28, 2023

πŸ†• "enum" and "version_comment" meta-programming macros

enum


Description:

The enum macro is used to generate an enumeration of CONST statements with auto-generated and unique values starting at 1 and incremented by 1 for each constant name specified in a comma-separated list.

Syntax


  • identifier list
    • a comma-separated list of constant names
    • the list is a string that only needs to be wrapped in double-quotes if it has any spaces
  • **SPC**
    • is a space character must separate the list of identifiers from the enum keyword.

version_comment


Description:

The version_comment macro is used to generate a comment line that will be similar to:

' This program exported from BASIC Anywhere Machine (Version [5.2.3].[2023.07.25.02.54]) on 2023.07.27 at 00:15 (Coordinated Universal Time)

The text generated by the macro comes from the "Program Version Comment" program in BASIC Anywhere Machine. View that program in BASIC Anywhere Machine (customize it to suit your needs if you like!)

Syntax



No comments:

Post a Comment

πŸ–₯ Flower Tesselation: Testing DRAW and recursive SUB's

This BAM program inspired by Richard Russell's "Flower-like tesselation" BBC BASIC program posted on Facebook . Created in ord...