source:
src/compdic/lst2fstext
@
243d027
Last change on this file since 243d027 was b242df2, checked in by Tomasz Obrebski <to@…>, 13 years ago | |
---|---|
|
|
File size: 251 bytes |
Rev | Line | |
---|---|---|
[e7de6cc] | 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"; | |
[b242df2] | 15 | for $c (@cs) |
[e7de6cc] | 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.