cherepanovic / foma

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

For compilation such quiet mode would be good, that printed only errors #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. A make file does: foma -l  blabla.foma <savestackblabla.sh
2. savestackblabla is a file, contents: save stack blabla.fst
and repeats the above several times.

At running there are numerous lines reporting:
....
defined Lexiconnum2: 16.3 kB. 572 states, 901 arcs, Cyclic.
defined Grammarnum2: 21.5 kB. 379 states, 1151 arcs, Cyclic.
">>> read in enhunum3 <<<"                    
Root...7, NumPref2...58, NumPref3...30, NumPref12...6, NumPref13...5, 
NumPref14...2, Num...22, Num1...2, Fel...1, AddNum...3, Poss...18, Plur...2, 
Fam...2, Gen...3, Case...20, Szor...3, Sub...4
Building lexicon...
Determinizing...
Minimizing...
Done!
16.4 kB. 576 states, 906 arcs, Cyclic.
defined Lexiconnum3: 16.4 kB. 576 states, 906 arcs, Cyclic.
defined Grammarnum3: 14.8 kB. 263 states, 720 arcs, Cyclic.
...
and so on

-q flag does not change this, it just suppresses prompt display.

It would be good a --silence flag, that would cause to suppress all the above 
information, and display only messages, that indicate error or warning 
due to problems in user created  .foma and .lexc script itself. User included
echo-s (in .foma scripts)  should be also displayed then, maybe they could 
be also suppressable with an additional flag.

At present, if user edits, and recompiles, he gets thousands of lines,
he has to save and then search in the saved information for lines indicating
errors or warnings. That burden could be easily saved with a --silence flag.

I attached the Makefile, and also attached the list of .lexc files for 
Hungarian, about 110 files, (plus 6 .foma files) and the make output, which 
contains 1846 lines

Original issue reported on code.google.com by eleonor...@gmx.net on 10 Jan 2013 at 7:17

Attachments: