]> Kevux Git Server - fll/commit
Feature: The featureless make program now supports the "write" operation.
authorKevin Day <thekevinday@gmail.com>
Sun, 10 Jul 2022 22:10:52 +0000 (17:10 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 10 Jul 2022 22:17:18 +0000 (17:17 -0500)
commita6dd9c0685c1590bd6e47c5ca1c3eaff5c69f21e
tree81ad1eeac1bb98e640a07af48f8a0ea2f377d99f
parent4fe8cc35260bce475bb240a24cda14a072e0034d
Feature: The featureless make program now supports the "write" operation.

This is an oversight on my part.
There should be an operation to write to a file.

There are two forms of this new "write" operation.
1) Truncate a file (deletes all data within a file).
2) Append to a file.

A file is created if it does not already exist in both cases.

The "write" operation supports some standard escape sequences as well as some non-standard ones.

Standard Escape Sequences:
- "\f": Form Feed.
- "\n": New Line.
- "\r": Carriage Return.
- "\t": Tab.
- "\v": Vertical Tab.
- "\\": Backslash Character (may require additional slashes in certain circumstances.)
- "\0": NULL Character.

Non-Standard Escape Sequences:
- "\U+": Unicode Sequence (followed by a valid Unicode sequence with a minimum 4 hexidecimal digits and a maximum of 6 hexidecimal digits).
- "\U-": Terminate a Unicode Sequence, allowing for "\U+000A\U-5" to be equivalent to "\n5".
12 files changed:
level_3/fake/c/private-common.c
level_3/fake/c/private-common.h
level_3/fake/c/private-make-operate.c
level_3/fake/c/private-make-operate_process.c
level_3/fake/c/private-make-operate_process.h
level_3/fake/c/private-make-operate_process_type.c
level_3/fake/c/private-make-operate_process_type.h
level_3/fake/c/private-make-operate_validate.c
level_3/fake/c/private-print.c
level_3/fake/c/private-print.h
level_3/fake/documents/fakefile.txt
level_3/fake/specifications/fakefile.txt