Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 3, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 10 Jan 2013 at 7:17

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant