DL4004 - Multiple ENTRYPOINT instructions

Description

Listing more than one ENTRYPOINT instruction in a single stage means only the last takes effect. Remove redundant ENTRYPOINT directives to avoid confusion.

Goals

Specification

  1. Track whether an ENTRYPOINT has been seen in the current stage.
  2. Reset the tracker whenever a FROM instruction appears.
  3. On encountering an ENTRYPOINT:
  4. If one has already been seen, emit DL4004 for that line.
  5. Otherwise record that an ENTRYPOINT exists.
  6. Use the message Multiple ENTRYPOINT instructions found. If you list more than one ENTRYPOINT then only the last ENTRYPOINT will take effect.

(c) 2025 Asymmetric Effort, LLC. scaldwell@asymmetric-effort.com Asymmetric Effort logo