diff options
| author | Arun Isaac | 2021-08-03 16:31:46 +0530 |
|---|---|---|
| committer | Arun Isaac | 2021-08-16 17:15:40 +0530 |
| commit | 36ebdebb6bc0064c904f069b77e66fce98d704c5 (patch) | |
| tree | e82fa7cb5f1e4ffff2f81721fb3489f30574edc1 /doc/decompress-compile-run.scm | |
| parent | c9c12e0e396475533ef987e3969b2ec847a8af9f (diff) | |
| download | ccwl-36ebdebb6bc0064c904f069b77e66fce98d704c5.tar.gz | |
ccwl: Define input objects using a macro instead of a function.
This allows us to do sophisticated syntax checking at an early stage, very close to the user interface. That way error messages from ccwl will make a lot more sense. * ccwl/ccwl.scm (input): Re-implement as macro. (<input>): Add new functional setters set-input-position and set-input-prefix. (input-spec-id, run-arg-position, run-arg-prefix): New functions. (command, workflow): Use the new macro interface. * doc/capture-output-file-with-parameter-reference.scm, doc/capture-output-file.scm, doc/capture-stdout.scm, doc/checksum.scm, doc/decompress-compile-run.scm, doc/hello-world.scm, doc/pass-stdin.scm: Use new quoting syntax for input types.
Diffstat (limited to 'doc/decompress-compile-run.scm')
| -rw-r--r-- | doc/decompress-compile-run.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/decompress-compile-run.scm b/doc/decompress-compile-run.scm index a2c58bb..4e916b2 100644 --- a/doc/decompress-compile-run.scm +++ b/doc/decompress-compile-run.scm @@ -1,10 +1,10 @@ (define decompress - (command #:inputs (compressed #:type 'File) + (command #:inputs (compressed #:type File) #:run "gzip" "--stdout" "--decompress" compressed #:outputs (decompressed #:type 'stdout))) (define compile - (command #:inputs (source #:type 'File) + (command #:inputs (source #:type File) #:run "gcc" "-x" "c" source #:outputs (executable #:type 'File |
