Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
verimag
synchrone
lutin
Commits
7fc81ddc
Commit
7fc81ddc
authored
Mar 24, 2017
by
erwan
Browse files
Enhance the utils/read-rif.sh script
Rework the lutin tutorial.
parent
43f8d5bc
Changes
8
Show whitespace changes
Inline
Side-by-side
_oasis
View file @
7fc81ddc
OASISFormat: 0.4
Name: Lutin
Version: 2.2
1
Version: 2.2
2
Authors: Erwan Jahier
Maintainers: erwan.jahier@imag.fr
License: PROP
...
...
doc/lutin-tuto/lutin-tuto-html.html
View file @
7fc81ddc
...
...
@@ -7,7 +7,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=iso-8859-1"
/>
<meta
name=
"title"
content=
"A Lutin Tutorial"
/>
<meta
name=
"generator"
content=
"Org-mode"
/>
<meta
name=
"generated"
content=
"2017-03-2
1
14:
36
:4
8
CET"
/>
<meta
name=
"generated"
content=
"2017-03-2
2
14:
17
:4
9
CET"
/>
<meta
name=
"author"
content=
"Erwan Jahier"
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"keywords"
content=
""
/>
...
...
@@ -809,8 +809,8 @@ can use two tools that are part of the <code>lutin</code> distribution:
<pre
class=
"src src-sh"
>
<
prompt
>
lurette -sut
<span
style=
"color: #CC9393;"
>
"lutin decr.lut -n incr"
</span>
-env
<span
style=
"color: #CC9393;"
>
"lutin decr.lut -n decr"
</span>
;
<span
style=
"color: #CC9393;"
>
\\
</span>
cat rdbg.rif | sim2chrogtk -ecran
>
/dev/null
<pre
class=
"src src-sh"
>
<
prompt
>
lurette -sut
<span
style=
"color: #CC9393;"
>
"lutin decr.lut -n incr"
</span>
-env
<span
style=
"color: #CC9393;"
>
"lutin decr.lut -n decr"
</span>
<
prompt
>
cat rdbg.rif | sim2chrogtk -ecran
>
/dev/null
</pre>
...
...
doc/lutin-tuto/lutin-tuto-html.org
View file @
7fc81ddc
...
...
@@ -349,8 +349,8 @@ can use two tools that are part of the ~lutin~ distribution:
#+end_src
{{{run(./sh/lurette-demo.sh,
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"
<prompt>
cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}}
...
...
doc/lutin-tuto/lutin-tuto-pdf.org
View file @
7fc81ddc
...
...
@@ -219,8 +219,8 @@ It is possible to store the lutin RIF output into a file using the
#+end_src
{{{run(./sh/lurette-demo.sh,
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"
<prompt>
cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}}
...
...
doc/lutin-tuto/main.org
View file @
7fc81ddc
...
...
@@ -302,8 +302,8 @@ html.
#+end_src
{{{run(./sh/lurette-demo.sh,
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"
<prompt>
cat rdbg.rif | sim2chrogtk -ecran > /dev/null
)}}}
...
...
examples/lutin/xlurette/call-luciole/Makefile
View file @
7fc81ddc
...
...
@@ -15,7 +15,8 @@ test.rif:
export
GCC
=
"/usr/bin/gcc -fPIC"
$(LURETTE)
--test-length
2
--output
test.rif0
&&
\
grep
-v
"lurette chronogram"
test.rif0 |
\
grep
-v
"This is lurette Version"
test.rif0 |
grep
-v
"#seed "
|
\
grep
-v
"Rdbg Version"
|
\
grep
-v
"This is lurette Version"
|
grep
-v
"#seed "
|
\
grep
-v
"The execution lasted"
|
sed
-e
"s/^M//"
>
test.rif
test
:
test.rif $(EXPDIR)
...
...
lutin/src/version.ml
View file @
7fc81ddc
let
str
=
"2.2
1
"
let
sha
=
"
c7a6f55
"
let
str
=
"2.2
2
"
let
sha
=
"
43f8d5b
"
utils/read-rif.sh
View file @
7fc81ddc
...
...
@@ -7,6 +7,8 @@ riffile=$1
cat
$riffile
|
\
grep
-e
'#outs'
-e
'#step'
|
\
sed
-e
's/True[ \t$]/1 /g'
-e
's/true[ \t$]/1 /g'
-e
's/t[ \t$]/1 /g'
-e
's/T[ \t$]/1 /g'
|
\
sed
-e
's/[ \t]True/1 /g'
-e
's/[ \t]true/1 /g'
-e
's/[ \t]t/1 /g'
-e
's/[ \t]T/1 /g'
|
\
sed
-e
's/False[ \t$]/0 /g'
-e
's/false[ \t$]/0 /g'
-e
's/f[ \t$]/0 /g'
-e
's/F[ \t$]/0 /g'
|
\
sed
-e
's/[ \t]False/0 /g'
-e
's/[ \t]false/0 /g'
-e
's/[ \t]f/0 /g'
-e
's/[ \t]F/0 /g'
|
\
sed
-e
'N; s/#step \([0-9]*\)\([^0-9]*\)\(.*\)#outs\(.*\)/\1 \3 \4/g'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment