シェルスクリプト言語xyzshのソースコード。
修订版 | 0621f00349bb5c23900d4cfc3617d268eafb6aca (tree) |
---|---|
时间 | 2012-08-16 14:05:11 |
作者 | ab25cq <ab25cq@gmai...> |
Commiter | ab25cq |
README.md
@@ -1,4 +1,58 @@ | ||
1 | -xyzsh | |
1 | +xyzsh shell script language | |
2 | 2 | ===== |
3 | 3 | |
4 | -xyzsh features perl like text processing and object oriented programing for shell script language. You can this as interactive shell with customizable completion. | |
\ No newline at end of file | ||
4 | +xyzsh features perl like text processing and object oriented programing for shell script language. You can this as interactive shell with customizable completion. | |
5 | + | |
6 | +# News and Downloads | |
7 | + | |
8 | +xyzsh-0.9.9e release http://code.google.com/p/xyzsh/downloads/detail?name=xyzsh-0.9.9e.tgz&can=2&q= | |
9 | + | |
10 | +# Documentation | |
11 | +See USAGE or USAGE.ja | |
12 | + | |
13 | +# USAGE http://code.google.com/p/xyzsh/source/browse/USAGE USAGE.ja http://code.google.com/p/xyzsh/source/browse/USAGE.ja | |
14 | + | |
15 | +# Installing | |
16 | +See README | |
17 | + | |
18 | +README https://code.google.com/p/xyzsh/source/browse/README | |
19 | + | |
20 | +# Contact Info | |
21 | +send email to yamanaka.gorou@gmail.com | |
22 | + | |
23 | +# Sample Code | |
24 | + | |
25 | + > ls -F | |
26 | + docs/ samples/ main.c sub.c | |
27 | + | |
28 | + > ls | each ( | chomp | -d && | print ) | |
29 | + docs | |
30 | + samples | |
31 | + | |
32 | + > cat data | |
33 | + Gorou Yamanaka | |
34 | + Rei Tanaka | |
35 | + Yumiko Shiratori | |
36 | + | |
37 | + > cat data | each ( | split | lines 1 (|print) 0 (|print) ) | join ) | |
38 | + Yamanaka Gorou | |
39 | + Tanaka Rei | |
40 | + Shiratori Yumiko | |
41 | + | |
42 | + > vim student.xyzsh | |
43 | + class Student ( | |
44 | + | var first_name second_name age country | |
45 | + | |
46 | + def show ( | |
47 | + var first_name second_name age country | printf "name: %s %s"¥n"age: %s"¥n"country: %s"¥n | |
48 | + ) | |
49 | + ) | |
50 | + | |
51 | + object student | |
52 | + student->run ( print "Yamanaka Gorou 23 Japan" | split | Student ) | |
53 | + | |
54 | + > load student.xyzsh | |
55 | + > student->show | |
56 | + name: Yamanaka Gorou | |
57 | + age: 23 | |
58 | + country: Japan |