Commit fda65e93 authored by erwan's avatar erwan
Browse files

Docs: update the Lutin tuto

parent 452e17d5
Pipeline #21917 passed with stages
in 8 minutes and 34 seconds
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
############################### ###############################
# typical workflow: # typical workflow:
# uv -> cia -> amend* -> push -> # uv -> [cia -> amend*]+ -> push ->
# wait for gitlab release job -> pull (to get the release tag) # wait for gitlab release job -> pull (to get the release tag)
# and then; optionnaly, to release an opam version: # and then; optionnaly, to release an opam version:
# opam-rel # opam-rel
......
...@@ -52,6 +52,8 @@ re : ...@@ -52,6 +52,8 @@ re :
x: x:
xpdf -fullscreen $(MAIN)-pdf.pdf xpdf -fullscreen $(MAIN)-pdf.pdf
y:
xpdf $(MAIN)-pdf.pdf
fig:$(OBJDIR) fig:$(OBJDIR)
make $(FIGPDF) make $(FIGPDF)
......
node incr(x:int) returns (y:int) = node incr(x:int) returns (y:int) =
loop y = x+1 loop y = x+2
node decr(y:int) returns (x:int) = node decr(y:int) returns (x:int) =
x = 42 fby loop x = y-1 x = 42 fby loop x = y-1
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
'((emacs-lisp . t) '((emacs-lisp . t)
(ocaml . t) (ocaml . t)
(lutin . t) (lutin . t)
(rif . t) ; (rif . t)
(sh . t) (sh . t)
) )
) )
......
...@@ -345,21 +345,21 @@ can use two tools that are part of the ~lutin~ distribution: ...@@ -345,21 +345,21 @@ can use two tools that are part of the ~lutin~ distribution:
#+INCLUDE: "./decr.lut" src lutin #+INCLUDE: "./decr.lut" src lutin
#+begin_src sh :tangle sh/lurette-demo.sh :exports none :noweb yes #+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" &&\ lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif &&\
cat rdbg.rif | sim2chrogtk -ecran > /dev/null sim2chrogtk -ecran -in res.rif> /dev/null
#+end_src #+end_src
{{{run(./sh/lurette-demo.sh, {{{run(./sh/lurette-demo.sh,
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr -o res.rif")}}}
<prompt> cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}} {{{run(./sh/lurette-demo.sh,
sim2chrogtk -ecran -in res.rif > /dev/null)}}}
{{{htmlonly([[./png/lurette-sim2chro.png]])}}} {{{htmlonly([[./png/lurette-sim2chro.png]])}}}
# \vspace{-4cm} # \vspace{-4cm}
{{{pdfhtml( {{{pdfhtml(
\includegraphics[width=8.5cm]{jpg/geluck-echec.jpg}, \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 ...@@ -218,21 +218,21 @@ It is possible to store the lutin RIF output into a file using the
#+INCLUDE: "./decr.lut" src lutin #+INCLUDE: "./decr.lut" src lutin
#+begin_src sh :tangle sh/lurette-demo.sh :exports none :noweb yes #+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" &&\ lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif &&\
cat rdbg.rif | sim2chrogtk -ecran > /dev/null sim2chrogtk -ecran -in res.rif> /dev/null
#+end_src #+end_src
{{{run(./sh/lurette-demo.sh, {{{run(./sh/lurette-demo.sh,
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr -o res.rif")}}}
<prompt> cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}} {{{run(./sh/lurette-demo.sh,
sim2chrogtk -ecran -in res.rif > /dev/null)}}}
{{{htmlonly([[./png/lurette-sim2chro.png]])}}} {{{htmlonly([[./png/lurette-sim2chro.png]])}}}
\pause \pause
# \vspace{-4cm} # \vspace{-4cm}
{{{pdfhtml( {{{pdfhtml(
\includegraphics[width=8.5cm]{jpg/geluck-echec.jpg}, \includegraphics[width=8.5cm]{jpg/geluck-echec.jpg},
......
...@@ -301,21 +301,21 @@ html. ...@@ -301,21 +301,21 @@ html.
#+INCLUDE: "./decr.lut" src lutin #+INCLUDE: "./decr.lut" src lutin
#+begin_src sh :tangle sh/lurette-demo.sh :exports none :noweb yes #+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" &&\ lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif &&\
cat rdbg.rif | sim2chrogtk -ecran > /dev/null sim2chrogtk -ecran -in res.rif> /dev/null
#+end_src #+end_src
{{{run(./sh/lurette-demo.sh, {{{run(./sh/lurette-demo.sh,
lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" lurette -sut "lutin decr.lut -n incr" -env "lutin decr.lut -n decr" -o res.rif)}}}
<prompt> cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}} {{{run(./sh/lurette-demo.sh,
sim2chrogtk -ecran -in res.rif > /dev/null)}}}
{{{htmlonly([[./png/lurette-sim2chro.png]])}}} {{{htmlonly([[./png/lurette-sim2chro.png]])}}}
\pause \pause
# \vspace{-4cm} # \vspace{-4cm}
{{{pdfhtml( {{{pdfhtml(
\includegraphics[width=8.5cm]{jpg/geluck-echec.jpg}, \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 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