From e1222c7919fac2f6c21228123c5aaf239fc828be Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 23 Jun 2019 09:57:08 +0300 Subject: Change: tutorial to use new command line syntax for tools --- tutorial.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tutorial.md b/tutorial.md index c146c5e..3a10ab0 100644 --- a/tutorial.md +++ b/tutorial.md @@ -182,14 +182,16 @@ To produce a PDF document of the echo requirements, for you to review, the following commands are needed: ```sh -./ftt-docgen echo.yaml echo.md > tmp.md -./pandoc.sh tmp.md -o tmp.pdf -./pandoc.sh tmp.md -o tmp.html +./ftt-docgen echo.md > tmp.md +./ftt-pandoc tmp.md -o tmp.pdf +./ftt-pandoc tmp.md -o tmp.html ``` -`echo.yaml` is the bindings. `echo.md` is the markdown. `tmp.pdf` and -`tmp.html` are the formatted documents. The source files are included -in the `fable-poc` git repository. +`echo.md` is the markdown input file, `tmp.md` is the temporary +markdown output file. `echo.yaml` is the bindings, and its name is +inferred by `ftt-docgen`. `tmp.pdf` and `tmp.html` are the formatted +documents. The input files are included in the `fable-poc` git +repository. Running the tests ============================================================================= @@ -198,7 +200,7 @@ To generate the test program, and running it to produce the test report, the following commands are needed: ```sh -./ftt-codegen echo.yaml echo-prelude.py echo.md > tmp.py +./ftt-codegen echo.md > tmp.py python3 tmp.py ``` @@ -209,9 +211,10 @@ OK: No arguments OK: Hello, world ``` -`echo.yaml` and `echo.md` are again the binding and markdown files. -`echo-prelude.py` is needed for code generation. Also, `echo.py` has -the Python functions, needed at runtime, though not referenced above. +`echo.yaml` and `echo.md` are again the bindings and markdown files. +Also, `echo.py` has the Python functions, needed at runtime, though +not referenced above. The names of `echo.py` and `echo.yaml` are +inferred by `ftt-codegen`. Exercise ============================================================================= @@ -235,4 +238,3 @@ Fable and this tutorial. * Did you have any problems following the tutorial? * Did you get through the tutorial successfully? * Did you do the exercise? - -- cgit v1.2.1