Commit ebe2362b authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Equip the LTL parser with printers for formulas and other token.

* src/ltlparse/ltlparse.yy: Add new printers.  Suggested by Akim
Demaille.
parent 509edaba
We are grateful to these people for their comments, help, or
suggestions.
Akim Demaille
Christian Dax
Étienne Renault
Felix Klaedtke
......
......@@ -35,6 +35,7 @@
#include <string>
#include "public.hh"
#include "ltlast/allnodes.hh"
#include "ltlvisit/tostring.hh"
struct minmax_t { unsigned min, max; };
}
......@@ -144,6 +145,10 @@ using namespace spot::ltl;
%destructor { $$->destroy(); } <ltl>
%printer { debug_stream() << *$$; } <str>
%printer { spot::ltl::to_string($$, debug_stream()); } <ltl>
%printer { spot::ltl::to_string($$, debug_stream(), false, true); } sere bracedsere
%printer { debug_stream() << $$; } <num>
%printer { debug_stream() << $$.min << ".." << $$.max; } <minmax>
%%
result: START_LTL subformula END_OF_INPUT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment