Skip to content
stav edited this page Jun 5, 2011 · 3 revisions

Here are some tips for running the application. The -s statistics switch is what i just beefed up yesterday and today to show some nice information about the Router and the parsing results. The default level for the stats switch is one (1) but you can use level two (2) to see the output in pretty format as well as the tokens that the parser found.

Take a look in the output folder for the output of these commands:

https://github.com/stav/choice-parser/tree/master/output

Sample application commands:

$ ./choice_app -i input/motorcycle
$ ./choice_app -i input/motorcycle -q
$ ./choice_app -i input/motorcycle -s
$ ./choice_app -i input/motorcycle -s -o
$ ./choice_app -i input/motorcycle -s2 -o
$ ./choice_app -i input/choices -m SplitstemMogrifyer,BooleanoptionMogrifyer -f WhitespaceFilter

Note these helpful tips:

  • -s == -s1
  • -s2 prints pretty statistics
  • -s5 prints everything including the tokens and the questions
  • -o output writes the output to the relative " output " folder
  • -o by itself sends the output to /dev/null
  • the -q switch is a shortcut for -f QualifiedFilter

Clone this wiki locally