aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-16ccwl: Raise undefined ccwl command error as exception.Arun Isaac
* ccwl/ccwl.scm (collect-steps): Raise undefined ccwl command error as a &ccwl-violation condition.
2022-01-16ccwl: Raise exceptions on command syntax errors.Arun Isaac
* ccwl/ccwl.scm (command): Raise &ccwl-violation conditions on syntax errors. * tests/ccwl.scm ("command, when passed positional arguments, must raise a &ccwl-violation condition", "command, when passed an unrecognized keyword, must raise a &ccwl-violation condition", "command, when passed multiple arguments to a unary keyword, must raise a &ccwl-violation condition"): New tests.
2022-01-16ccwl: Raise exceptions on output syntax errors.Arun Isaac
* ccwl/ccwl.scm (output): Raise &ccwl-violation conditions on syntax errors. * tests/ccwl.scm (output): New function. ("output, when passed more than one positional argument, must raise a &ccwl-violation condition", "output, when passed an unrecognized keyword, must raise a &ccwl-violation condition", "output, when passed multiple arguments to a unary keyword, must raise a &ccwl-violation condition"): New tests.
2022-01-16ccwl: Raise exceptions on input syntax errors.Arun Isaac
* ccwl/ccwl.scm: Import (rnrs conditions), (rnrs exceptions) and (ccwl conditions). (input, input-spec-id): Raise &ccwl-violation conditions on syntax errors. * tests/ccwl.scm: Import (rnrs exceptions) and (ccwl conditions). (input): New function. ("input, when passed more than one positional argument, must raise a &ccwl-violation condition", "input, when passed an unrecognized keyword, must raise a &ccwl-violation condition", "input, when passed multiple arguments to a unary keyword, must raise a &ccwl-violation condition"): New tests.
2022-01-16ccwl: Delete plist->alist.Arun Isaac
plist->alist is not used anywhere. pairify is quite sufficient to take on its functionality. * ccwl/utils.scm (plist->alist): Delete function. * tests/utils.scm ("plist->alist"): Delete test.
2022-01-16ccwl: Document default default value of syntax-lambda**.Arun Isaac
* ccwl/utils.scm (syntax-lambda**): Document default default value. * tests/utils.scm ("default default value of syntax-lambda** unary argument should be #f", "default default value of syntax-lambda** n-ary argument should be the empty list"): New tests.
2022-01-16ccwl: Clarify default default value of lambda**.Arun Isaac
* ccwl/utils.scm (lambda**): Change "default value" to "default default value" in docstring. * tests/utils.scm ("default value of lambda** unary argument should be #f", "default value of lambda** n-ary argument should be the empty list"): Change "default value" to "default default value".
2022-01-16ccwl: Do not expand to syntax values.Arun Isaac
Macros should not normally expand to syntax values as constant literals. We now do more work at the macro-expansion phase so that this is not necessary. * ccwl/ccwl.scm (collect-steps): In the returned <step> objects, put syntax to reference function object instead of the function object itself. (key->output): Return syntax to construct an <output> object instead of the <output> object itself. (workflow): Do not expand to syntax values as constant literals.
2022-01-16ccwl: Remove out field from <step> type.Arun Isaac
The out field of a <step> object can be derived from its run field. There is no need to store it. Therefore, we remove the out field and implement the accessor step-out as a separate function so that we don't break existing code. We also move around some code so that all variables are defined before they are used. * ccwl/ccwl.scm (function-objects): Move to just after <command> and <cwl-workflow> type definitions. (<step>): Remove out field. Move to after function-objects. (step-out): New function. (collect-steps): Do not set out field of <step> object.
2022-01-16scripts: Decide to not compile files ever.Arun Isaac
* scripts/ccwl (main): Remove FIXME note about compiling ccwl files.
2022-01-16scripts: Report ccwl syntax violations.Arun Isaac
* ccwl/ui.scm: New file. * scripts/ccwl: Import (rnrs exceptions), (srfi srfi-28), (ccwl conditions) and (ccwl ui). (main): Handle ccwl syntax violations by reporting them and exiting.
2022-01-16scripts: Read using read-syntax.Arun Isaac
read-syntax gives us get better source properties. * scripts/ccwl (main): Read using read-syntax.
2022-01-16ccwl: Add &formatted-message condition.Arun Isaac
* ccwl/conditions.scm (&formatted-message): New condition. (formatted-message): New function.
2022-01-16tests: Move plist-ref ahead of test-begin.Arun Isaac
This is a purely cosmetic change just to keep definitions outside the test cases. * tests/utils.scm (plist-ref): Move ahead of test-begin.
2022-01-16ccwl: Raise lambda** and syntax-lambda** errors as exceptions.Arun Isaac
* ccwl/conditions.scm (&unrecognized-keyword-assertion, &invalid-keyword-arity-assertion, &invalid-positional-arguments-arity-assertion): New conditions. * ccwl/utils.scm: Import (rnrs conditions), (rnrs exceptions) and (ccwl conditions). (group-keyword-arguments): Raise &invalid-keyword-arity-assertion on error. (lambda**, syntax-lambda**): Raise &unrecognized-keyword-assertion, &invalid-keyword-arity-assertion and &invalid-positional-arguments-arity-assertion on error. * tests/utils.scm: Import (rnrs conditions), (rnrs exceptions), (srfi srfi-1) and (ccwl conditions). ("lambda** should raise an &unrecognized-keyword-assertion on unrecognized keywords in arguments with syntax objects as irritants"): Check for &unrecognized-keyword-assertion. ("Unrecognized keyword argument passed to lambda** should raise an &unrecognized-keyword-assertion condition", "Unary lambda** keyword argument passed multiple arguments should raise an &invalid-keyword-arity-assertion condition", "Wrong number of positional arguments to lambda** should raise an &invalid-positional-arguments-arity-assertion condition", "syntax-lambda** should raise an &unrecognized-keyword-assertion on unrecognized keywords in arguments", "Unrecognized keyword argument passed to syntax-lambda** should raise an &unrecognized-keyword-assertion condition with syntax objects as irritants", "Unary syntax-lambda** keyword argument passed multiple arguments should raise an &invalid-keyword-arity-assertion condition", "Wrong number of positional arguments to syntax-lambda** should raise an &invalid-positional-arguments-arity-assertion condition"): New tests.
2022-01-16ccwl: Add conditions.Arun Isaac
We introduce the &ccwl-violation condition. In later commits, it will be used to indicate ccwl syntax violations and to print out useful compiler errors. * ccwl/conditions.scm: New file.
2022-01-16tests: Use @@ instead of module-ref and resolve-module.Arun Isaac
@@ is shorter and looks neater with fewer quotes. * tests/ccwl.scm ("stdin input should not have inputBinding"), tests/utils.scm ("unsyntax-keywords"): Use @@ instead of module-ref and resolve-module.
2022-01-16ccwl: Indent lambda** docstring examples correctly.Arun Isaac
* ccwl/utils.scm (lambda**): Indent docstring examples correctly.
2022-01-10dir-locals: Allows tabs in Makefiles.Arun Isaac
* .dir-locals.el (makefile-gmake-mode): Set indent-tabs-mode to t.
2022-01-10Migrate to hand-written Makefiles.Arun Isaac
The autotools are really overkill for a simple Guile project like ccwl. * .gitignore: Delete autotool generated files. Add Makefile.include. * Makefile.am, Makefile, build-aux/distcheck.scm, configure, configure.ac, configure.scm: New files. * NEWS: Rename to NEWS.org. Remove Emacs file-local variable to use org mode. * bootstrap.sh: Delete file. * build-aux/generate-cwl-output.sh.in: Rename to ... * build-aux/generate-cwl-output.sh: ... this. Replace autoconf variables for cwltool and sed. * build-aux/test-driver.scm.in: Rename to ... * build-aux/test-driver.scm: ... this. Do not import (ice-9 getopt-long). (%options): Delete variable. (my-gnu-runner): Do not write to log or trs ports. Accept test files as command-line arguments. Update invocation of my-gnu-runner. Print summary of results. * guix.scm (ccwl)[native-inputs]: Remove autoconf and automake. * pre-inst-env.in: Rename to ... * pre-inst-env: ... this. Replace autoconf variables for guile, abs_top_builddir and abs_top_srcdir. * scripts/ccwl.in: Rename to ... * scripts/ccwl: ... this. Replace autoconf variable for guile.
2021-12-17Create specialized type for graphviz edge.Arun Isaac
* ccwl/graphviz.scm (<graph-edge>): New type. (graph-edge): New function. (graph->dot): Support specification of edges using the <graph-edge> type.
2021-12-17Abstract out serialization of graphviz properties.Arun Isaac
* ccwl/graphviz.scm (serialize-properties): New function. (graph->dot): Use serialize-properties.
2021-12-13ccwl: Support graphviz node ports.Arun Isaac
* ccwl/graphviz.scm (<graph-port>): New type. (serialize): Support <graph-port> objects. * tests/graphviz.scm (graph-port): New function. ("serialize ports correctly"): New test case.
2021-12-13ccwl: Organize serialize into a generic function.Arun Isaac
* ccwl/graphviz.scm (serialize): Organize into a generic function that dispatches on input type.
2021-12-13ccwl: Escape only the double quote character in graphviz output.Arun Isaac
* ccwl/graphviz.scm: Import (ice-9 string-fun). (serialize): When quoting strings, escape only the double quote character. * tests/graphviz.scm ("do not escape backslashes"): New test case.
2021-12-13ccwl: Support graphviz HTML strings.Arun Isaac
* ccwl/graphviz.scm (<html-string>): New type. (escape-id): Delete function. (serialize): New function. (graph->dot): Use serialize instead of escape-id. * tests/graphviz.scm: New file. ("serialize HTML strings correctly"): New test case. * Makefile.am (SCM_TESTS): Register it.
2021-12-10guix.scm: Base ccwl package off upstream Guix package.Arun Isaac
* guix.scm: Do not import (gnu packages graphviz), (gnu packages guile), (gnu packages guile-xyz), (gnu packages pkg-config), (gnu packages skribilo), (gnu packages texinfo), (guix build-system gnu), (guix licenses) and (guix utils). Import (gnu packages bioinformatics) with the guix: prefix. (ccwl): Base off upstream Guix package.
2021-12-10README: Recommend Guix to set up a development environment.Arun Isaac
* README.org (Contributing): Recommend Guix to set up a development environment.
2021-12-10README: Recommend upstream Guix package for installation.Arun Isaac
* README.org (Installation)[Using Guix]: Recommend upstream Guix package.
2021-12-09contrib: Add pggb workflow.Arun Isaac
* contrib/pggb.scm: New file.
2021-11-29README: Emphasize that manual installation is from source.Arun Isaac
* README.org (Installation)[Manually]: Rename to "Manually from source".
2021-11-29README: Add instructions for installation using software bundles.Arun Isaac
* README.org (Installation)[Using binary software bundles]: New subsection.
2021-11-29Makefile: Build software bundles.Arun Isaac
* Makefile.am (docker, pack): New targets.
2021-11-29guix.scm: Add a wrap phase.Arun Isaac
* guix.scm (ccwl)[arguments]: Import target-guile-effective-version from (guix build guile-build-system). Add a wrap phase.
2021-11-25guix.scm: Bump version.Arun Isaac
* guix.scm (ccwl)[version]: Set to 0.2.0.
2021-11-25guix.scm: Use the upstream Guix guile-libyaml package.Arun Isaac
* guix.scm: Do not prefix import of (gnu packages guile-xyz) with guix: (guile-libyaml): Delete variable.
2021-11-19README: Add installation instructions.Arun Isaac
* README.org (Installation): New section.
2021-11-19guix.scm: Replace guix environment with guix shell.Arun Isaac
guix environment has been superseded by guix shell. * guix.scm: Replace guix environment with guix shell.
2021-11-06Release version 0.2.0.v0.2.0Arun Isaac
* configure.ac: Bump version. * NEWS: Update news. * website/releases/ccwl-0.2.0.tar.lz, website/releases/ccwl-0.2.0.tar.lz.asc: New files.
2021-11-05doc: Search source-path in scheme-source-form.Arun Isaac
* doc/skribilo.scm (scheme-source-form): Search source-path.
2021-11-05build-aux: Extract dependencies from scheme-source-form.Arun Isaac
* build-aux/find-dependencies.scm (find-dependencies): Extract dependencies from scheme-source-form.
2021-11-05build-aux: Delete duplicates in dependencies.Arun Isaac
* build-aux/find-dependencies.scm: Delete duplicates before printing out dependencies.
2021-11-05gitignore: Ignore dot files.Arun Isaac
* .gitignore: Add doc/*.dot.
2021-11-05doc: Add spell check workflow to tutorial.Arun Isaac
* doc/ccwl.skb (Tutorial)[Let's write a spell check workflow]: New section. * Makefile.am (doc/spell-check.out): New target. (EXTRA_DIST): Add doc/spell-check-text.txt and doc/dictionary. * doc/dictionary, doc/spell-check-text.txt, doc/spell-check-workflow-1.scm, doc/spell-check-workflow-2.scm, doc/spell-check.scm: New files.
2021-11-05doc: Support extracting specific forms from a scheme file.Arun Isaac
* doc/skribilo.scm (scheme-source-form): New public function.
2021-11-05build-aux: Hide doc/cwl-output in the manual output snippets.Arun Isaac
* build-aux/generate-cwl-output.sh.in: In the sed invocation, replace doc/cwl-output too.
2021-11-05website: Do not specify line-height on h1, h2 and h3.Arun Isaac
* website/style.css (h1, h2, h3): Delete line-height CSS property.
2021-11-05Makefile: Copy images without recursion.Arun Isaac
* Makefile.am (doc/ccwl.html): Copy images without recursion.
2021-11-05Makefile: Delete target if recipe fails.Arun Isaac
Without this, when recipes involving output redirection fail, their targets are not deleted. * Makefile.am (.DELETE_ON_ERROR): New target.
2021-11-05Makefile: Create doc directory before populating it.Arun Isaac
* Makefile.am (doc/.dirstamp): New target. ($(DOC_IMAGES:.png=.dot), $(DOC_OUT)): Depend on doc/.dirstamp. (CLEAN_DIRECTORIES): Add doc/.dirstamp.