Last change
on this file since e7de6cc was
e7de6cc,
checked in by Tomasz Obrebski <to@…>, 13 years ago
|
new version of dgp
added dgc, tre and compdic components
compiledic renamed to compdic_utf8
./configure updated
|
-
Property mode set to
100755
|
File size:
260 bytes
|
Line | |
---|
1 | #!/usr/bin/env perl |
---|
2 | |
---|
3 | use locale; |
---|
4 | |
---|
5 | $s=1; |
---|
6 | |
---|
7 | $f=1; |
---|
8 | while(<>) |
---|
9 | { |
---|
10 | chomp; |
---|
11 | next if / /; |
---|
12 | @cs = split(''); |
---|
13 | ++$s; |
---|
14 | print "0 $s <eps>\n"; |
---|
15 | while($c = shift @cs) |
---|
16 | { |
---|
17 | print $s . ' ' . ++$s . " $c\n"; |
---|
18 | } |
---|
19 | print "$s $f <eps>\n"; |
---|
20 | } |
---|
21 | print "$f\n"; |
---|
Note: See
TracBrowser
for help on using the repository browser.