Commit fda65e93 authored by erwan's avatar erwan

Docs: update the Lutin tuto

parent 452e17d5
Pipeline #21917 passed with stages
in 8 minutes and 34 seconds
......@@ -16,7 +16,7 @@
###############################
# typical workflow:
# uv -> cia -> amend* -> push ->
# uv -> [cia -> amend*]+ -> push ->
# wait for gitlab release job -> pull (to get the release tag)
# and then; optionnaly, to release an opam version:
# opam-rel
......
......@@ -52,6 +52,8 @@ re :
x:
xpdf -fullscreen $(MAIN)-pdf.pdf
y:
xpdf $(MAIN)-pdf.pdf
fig:$(OBJDIR)
make $(FIGPDF)
......
node incr(x:int) returns (y:int) =
loop y = x+1
loop y = x+2
node decr(y:int) returns (x:int) =
x = 42 fby loop x = y-1
......@@ -38,7 +38,7 @@
'((emacs-lisp . t)
(ocaml . t)
(lutin . t)
(rif . t)
; (rif . t)
(sh . t)
)
)
......
......@@ -345,21 +345,21 @@ can use two tools that are part of the ~lutin~ distribution:
#+INCLUDE: "./decr.lut" src lutin
#+begin_src sh :tangle sh/lurette-demo.sh :exports none :noweb yes
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" &&\
cat rdbg.rif | sim2chrogtk -ecran > /dev/null
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif &&\
sim2chrogtk -ecran -in res.rif> /dev/null
#+end_src
{{{run(./sh/lurette-demo.sh,
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr"
<prompt> cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}}
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr -o res.rif")}}}
{{{run(./sh/lurette-demo.sh,
sim2chrogtk -ecran -in res.rif > /dev/null)}}}
{{{htmlonly([[./png/lurette-sim2chro.png]])}}}
# \vspace{-4cm}
{{{pdfhtml(
\includegraphics[width=8.5cm]{jpg/geluck-echec.jpg},
......
......@@ -218,21 +218,21 @@ It is possible to store the lutin RIF output into a file using the
#+INCLUDE: "./decr.lut" src lutin
#+begin_src sh :tangle sh/lurette-demo.sh :exports none :noweb yes
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" &&\
cat rdbg.rif | sim2chrogtk -ecran > /dev/null
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif &&\
sim2chrogtk -ecran -in res.rif> /dev/null
#+end_src
{{{run(./sh/lurette-demo.sh,
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr"
<prompt> cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}}
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr -o res.rif")}}}
{{{run(./sh/lurette-demo.sh,
sim2chrogtk -ecran -in res.rif > /dev/null)}}}
{{{htmlonly([[./png/lurette-sim2chro.png]])}}}
\pause
# \vspace{-4cm}
{{{pdfhtml(
\includegraphics[width=8.5cm]{jpg/geluck-echec.jpg},
......
......@@ -301,21 +301,21 @@ html.
#+INCLUDE: "./decr.lut" src lutin
#+begin_src sh :tangle sh/lurette-demo.sh :exports none :noweb yes
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" &&\
cat rdbg.rif | sim2chrogtk -ecran > /dev/null
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif &&\
sim2chrogtk -ecran -in res.rif> /dev/null
#+end_src
{{{run(./sh/lurette-demo.sh,
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr"
<prompt> cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}}
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif)}}}
{{{run(./sh/lurette-demo.sh,
sim2chrogtk -ecran -in res.rif > /dev/null)}}}
{{{htmlonly([[./png/lurette-sim2chro.png]])}}}
\pause
# \vspace{-4cm}
{{{pdfhtml(
\includegraphics[width=8.5cm]{jpg/geluck-echec.jpg},
......
(* Time-stamp: <modified the 05/07/2018 (at 14:20) by Erwan Jahier> *)
(* Time-stamp: <modified the 29/03/2019 (at 08:36) by Erwan Jahier> *)
(**********************************************************************************)
type vars = (string * Data.t) list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment