gwitwer / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

"read lexc" gives "defined but not used" warnings #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Let me start with expressing my gratitude for making this neat tool available.

What steps will reproduce the problem?
1. execute "foma"
2. foma[0]: "read lexc xhosa-utf8.lex" (attached)

What is the expected output? What do you see instead?
=> foma outputs: "152 bytes. 1 states, 0 arcs, 0 paths" (along with "defined 
but not used" warnings)
=> xfst reads the same file and outputs: "38.2 Kb. 382 states, 824 arcs, 
4070784 paths"
=> While definitions in this file are not used in the same file, they are used 
in other scripts read afterwards. 

What version of the product are you using? On what operating system?
=> 0.9.15alpha for linux x86_64

Please provide any additional information below.
=> A small nuisance I experienced porting an xfst script on foma: definitions 
like "define Syll[Combos Vowels];" give an error cuz it expects a space after 
"Syll". But this is not a big deal.

Thanks,
waleed

Original issue reported on code.google.com by waleed.a...@gmail.com on 14 Nov 2011 at 10:14

Attachments:

GoogleCodeExporter commented 8 years ago
- file had CRLF line feeds which weren't supported by lexc (added support)
- file had regex entries like:

<0:0> VRoot ;

which weren't parsed right. Fixed.

The reported file can also be modified to run with pre-fix versions by:

(1) changing all CRLF to LF
(2) simply removing <0:0> (redundant), i.e.

<0:0> VRoot;

lines could be changed to

VRoot; (attached changes)

Original comment by mans.hul...@gmail.com on 15 Nov 2011 at 9:19

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you!

Original comment by waleed.a...@gmail.com on 15 Nov 2011 at 1:38