Skip to content

pc roundup #247

@samiam95124

Description

@samiam95124

pc roundup

Remaining items need doing on pc. Some of these are already tickets.

  1. Return an error code (pc does not exit with error status #245). [done]
  2. If the .pas file contains no code, then don't compile it (its just a header). [done]
  3. If  the .pas file is not a  program (does not have "program" in the header, then don't compile it to an executable. Just compile it as a module. [done]
  4. Finish all passthough options. [done]
  5. Expand all passthough options to long form. This helps output files to be self documenting. [done]
  6. Deconflict the pc options with pcom options. Since all single letter options are in use in pcom, this means expanding pc options beyond single letters. [done]
  7. Add support for -pint, -pmach and -package. These will prepare the files but not run them.
  8. Add -run option. This will do a straight run on whatever is produced, including executables or intermediates. Note that intermediates need to have their dependent modules collected, so this is not trivial.
  9. Add -test option. This is also a -run option, but automatically inputs from *.inp, outputs to .out, and compares the output to .outcmp, and puts the difference into .outdif, and announces the result of the difference in pass/fail terms. The output of the compiler is put into .lst, and that is compared to .cmp, with the difference going to .diff.
  10. Fix pc dependency fail #244 dependency fail.
  11. Output lines and line numbers for scanner errors in source. [already does this]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions