• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revisionc0e8d9715ce81967b2fec63145a78428c6976e15 (tree)
Time2014-10-30 11:25:10
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: Basic tutorial for PIONE
new file: SampleCode/PIONE/Basic1/HelloWorld.pione
new file: SampleCode/PIONE/Basic2/Multiplying.pione
new file: SampleCode/PIONE/Basic2/Multiplying2.pione
new file: SampleCode/PIONE/Basic2/MultiplyingInput/test.in
new file: SampleCode/PIONE/Basic3/MultiplyingFiles1.pione
new file: SampleCode/PIONE/Basic3/MultiplyingFiles2.pione
new file: SampleCode/PIONE/Basic3/MultiplyingFiles3.pione
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test1.in
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test2.in
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test3.in
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test4.in
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test5.in
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test6.in
new file: SampleCode/PIONE/Basic3/MultiplyingFilesInput/test7.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesEach.pione
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test1.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test2.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test3.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test4.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test5.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test6.in
new file: SampleCode/PIONE/Basic4/MultiplyingFilesInput/test7.in
new file: SampleCode/PIONE/Basic5/Serial2.pione
new file: SampleCode/PIONE/Basic5/SerialInput/test1.in
new file: SampleCode/PIONE/Basic5/SerialInput/test2.in
new file: SampleCode/PIONE/Basic5/SerialInput/test3.in
new file: SampleCode/PIONE/Basic5/SerialInput/test4.in
new file: SampleCode/PIONE/Basic5/SerialInput/test5.in

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE/Basic1/HelloWorld.pione
@@ -0,0 +1,6 @@
1+Rule Main
2+ output 'message.txt'
3+
4+Action
5+ echo "Hello PIONE world !" > message.txt
6+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic2/Multiplying.pione
@@ -0,0 +1,7 @@
1+ Rule Main
2+ input 'test.in'
3+ output 'test.out'
4+
5+ Action
6+ awk '{ print $1*2 }' {$I[1]} > {$O[1]}
7+ End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic2/Multiplying2.pione
@@ -0,0 +1,7 @@
1+Rule Main
2+ input 'test.in'
3+ output '{$I[1]}.out'
4+
5+Action
6+ awk '{ print $1*2 }' {$I[1]} > {$O[1]}
7+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic2/MultiplyingInput/test.in
@@ -0,0 +1,2 @@
1+3
2+5
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFiles1.pione
@@ -0,0 +1,10 @@
1+Rule Main
2+ input 'test1.in'
3+ input 'test2.in'
4+ output 'test1.out'
5+ output 'test2.out'
6+
7+Action
8+ awk '{print $1*2}' {$I[1]} > {$O[1]}
9+ awk '{print $1*2}' {$I[2]} > {$O[2]}
10+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFiles2.pione
@@ -0,0 +1,11 @@
1+Rule Main
2+ input 'test1.in'
3+ input 'test2.in'
4+ output 'test1.out'
5+ output 'test2.out'
6+
7+Action
8+ for i in `ls *.in`; do
9+ awk '{ print $1*2 }' $i > `basename $i .in`.out
10+ done
11+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFiles3.pione
@@ -0,0 +1,9 @@
1+Rule Main
2+ input '*.in'.all
3+ output '*.out'.all
4+
5+Action
6+ for i in `ls *.in`; do
7+ awk '{ print $1*2 }' $i > `basename $i .in`.out
8+ done
9+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test1.in
@@ -0,0 +1,2 @@
1+3
2+5
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test2.in
@@ -0,0 +1,2 @@
1+2
2+4
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test3.in
@@ -0,0 +1,2 @@
1+7
2+1
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test4.in
@@ -0,0 +1,3 @@
1+8
2+9
3+6
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test5.in
@@ -0,0 +1,9 @@
1+1
2+2
3+3
4+4
5+5
6+6
7+7
8+8
9+9
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test6.in
@@ -0,0 +1,9 @@
1+9
2+8
3+7
4+6
5+5
6+4
7+3
8+2
9+1
--- /dev/null
+++ b/SampleCode/PIONE/Basic3/MultiplyingFilesInput/test7.in
@@ -0,0 +1,10 @@
1+1
2+12
3+123
4+1234
5+2
6+23
7+234
8+3
9+34
10+4
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesEach.pione
@@ -0,0 +1,6 @@
1+Rule Main
2+ input '*.in'
3+ output '{$I[1][1]}.out'
4+Action
5+ awk '{ print $1*2 }' {$I[1]} > {$O[1]}
6+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test1.in
@@ -0,0 +1,2 @@
1+3
2+5
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test2.in
@@ -0,0 +1,2 @@
1+2
2+4
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test3.in
@@ -0,0 +1,2 @@
1+7
2+1
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test4.in
@@ -0,0 +1,3 @@
1+8
2+9
3+6
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test5.in
@@ -0,0 +1,9 @@
1+1
2+2
3+3
4+4
5+5
6+6
7+7
8+8
9+9
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test6.in
@@ -0,0 +1,9 @@
1+9
2+8
3+7
4+6
5+5
6+4
7+3
8+2
9+1
--- /dev/null
+++ b/SampleCode/PIONE/Basic4/MultiplyingFilesInput/test7.in
@@ -0,0 +1,10 @@
1+1
2+12
3+123
4+1234
5+2
6+23
7+234
8+3
9+34
10+4
--- /dev/null
+++ b/SampleCode/PIONE/Basic5/Serial2.pione
@@ -0,0 +1,21 @@
1+Rule Main
2+ input '*.in'.all
3+ output '*.out'.all
4+Flow
5+ rule First
6+ rule Second
7+End
8+
9+Rule First
10+ input '*.in'
11+ output '{$I[1][1]}.route'
12+Action
13+ awk '{ print $1*2 }' {$I[1]} > {$O[1]}
14+End
15+
16+Rule Second
17+ input '*.route'
18+ output '{$I[1][1]}.out'
19+Action
20+ awk '{ print $1+1 }' {$I[1]} > {$O[1]}
21+End
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic5/SerialInput/test1.in
@@ -0,0 +1,2 @@
1+3
2+5
--- /dev/null
+++ b/SampleCode/PIONE/Basic5/SerialInput/test2.in
@@ -0,0 +1,2 @@
1+2
2+4
--- /dev/null
+++ b/SampleCode/PIONE/Basic5/SerialInput/test3.in
@@ -0,0 +1,2 @@
1+7
2+1
--- /dev/null
+++ b/SampleCode/PIONE/Basic5/SerialInput/test4.in
@@ -0,0 +1,3 @@
1+8
2+9
3+6
--- /dev/null
+++ b/SampleCode/PIONE/Basic5/SerialInput/test5.in
@@ -0,0 +1,9 @@
1+1
2+2
3+3
4+4
5+5
6+6
7+7
8+8
9+9
Show on old repository browser