Last change
on this file since 5f4d9c3 was
93afab8,
checked in by tom <tom@…>, 13 years ago
|
dodany komponent compdic - kompilator slownikow dla lem, cor, kor, gue
(compdic zastepuje compiledic)
|
-
Property mode set to
100755
|
File size:
243 bytes
|
Rev | Line | |
---|
[93afab8] | 1 | #!/usr/bin/env perl |
---|
| 2 | |
---|
| 3 | use locale; |
---|
| 4 | |
---|
| 5 | $s=1; |
---|
| 6 | |
---|
| 7 | $f=1; |
---|
| 8 | while(<>) |
---|
| 9 | { |
---|
| 10 | chomp; |
---|
| 11 | @cs = split(''); |
---|
| 12 | ++$s; |
---|
| 13 | print "0 $s <eps>\n"; |
---|
| 14 | while($c = shift @cs) |
---|
| 15 | { |
---|
| 16 | print $s . ' ' . ++$s . " $c\n"; |
---|
| 17 | } |
---|
| 18 | print "$s $f <eps>\n"; |
---|
| 19 | } |
---|
| 20 | print "$f\n"; |
---|
Note: See
TracBrowser
for help on using the repository browser.